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>
这个提交包含在:
Sujith Manoharan
2014-10-17 07:40:20 +05:30
提交者 John W. Linville
父节点 91e6ceb354
当前提交 62ae1aef20
修改 3 个文件,包含 5 行新增5 行删除

查看文件

@@ -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;