]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix fast_tx header alignment
authorFelix Fietkau <nbd@nbd.name>
Thu, 19 May 2016 15:34:38 +0000 (17:34 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 31 May 2016 10:14:04 +0000 (12:14 +0200)
commit0b35b8b8496fa458372b5dac1aea5757fee25ad3
tree294d109c5107cae1833804802886c829352f7149
parent9ca679f6c4017deb32cb0ef3519bebfaf9fd4fca
mac80211: fix fast_tx header alignment

The header field is defined as u8[] but also accessed as struct
ieee80211_hdr. Enforce an alignment of 2 to prevent unnecessary
unaligned accesses, which can be very harmful for performance on many
platforms.

Fixes: 1e9c23431057 ("mac80211: extend fast-xmit for more ciphers")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.h