]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: use 16 bit alignment for the if_ibss bssid field
authorFelix Fietkau <nbd@openwrt.org>
Thu, 1 Mar 2012 10:23:37 +0000 (11:23 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 5 Mar 2012 20:24:14 +0000 (15:24 -0500)
commit3213bc3b92b7984db9f7f2335c1c888f0dbe7b9a
tree8a5f30e67ce97bf072c54659f7a945341deb446a
parentd48107867949197d12005afd1d5d6e1d94da13c8
mac80211: use 16 bit alignment for the if_ibss bssid field

Several MAC address comparison functions assume 16 bit alignment for pointers
passed to them. Since the addition of the control_port field, alignment
for the IBSS bssid was off by one, causing a severe performance hit on
architectures without efficient unaligned access (e.g. MIPS).

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h