diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2014-10-17 02:10:20 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-10-27 18:16:16 (GMT) |
commit | 62ae1aef2070e9d281e2daab2447ab85d30df99a (patch) | |
tree | a804b16e5986e172c5619f9bf57739bcd326ab5b /drivers/net/wireless/ath/ath9k/ath9k.h | |
parent | 91e6ceb354289ef1b143735b218599b5ad1b58c8 (diff) | |
download | linux-62ae1aef2070e9d281e2daab2447ab85d30df99a.tar.xz |
ath9k: Fix address management
Since both the arguments need to satisfy
the alignment requirements of ether_addr_copy(),
use memcpy() in cases where there will be no
big performance benefit and make sure that
ether_addr_copy() calls use properly aligned
arguments.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index d4b71ed..9e92cb21 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h @@ -595,7 +595,7 @@ struct ath_vif { u16 seq_no; /* BSS info */ - u8 bssid[ETH_ALEN]; + u8 bssid[ETH_ALEN] __aligned(2); u16 aid; bool assoc; |