diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-01 05:23:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-05 15:24:14 -0500 |
commit | 4d196e4b2ffd734393b54f351507462f19d737b5 (patch) | |
tree | 8a5f30e67ce97bf072c54659f7a945341deb446a /net/mac80211/ieee80211_i.h | |
parent | 380aeef8941c6b8a3e8de86b5ca000ca986e3b17 (diff) |
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>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index cee0c7493fd0..c4130588b035 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -480,7 +480,7 @@ struct ieee80211_if_ibss { | |||
480 | 480 | ||
481 | bool control_port; | 481 | bool control_port; |
482 | 482 | ||
483 | u8 bssid[ETH_ALEN]; | 483 | u8 bssid[ETH_ALEN] __aligned(2); |
484 | u8 ssid[IEEE80211_MAX_SSID_LEN]; | 484 | u8 ssid[IEEE80211_MAX_SSID_LEN]; |
485 | u8 ssid_len, ie_len; | 485 | u8 ssid_len, ie_len; |
486 | u8 *ie; | 486 | u8 *ie; |