ath10k: use ether_addr_copy()
authorKalle Valo <kvalo@qca.qualcomm.com>
Sun, 14 Sep 2014 09:50:49 +0000 (12:50 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 18 Sep 2014 07:47:03 +0000 (10:47 +0300)
commitb25f32cb02155d68c690255ba846796a1c248fd3
tree67bfbd65920ced68f7e8ea96749587bfee55294b
parent75cb96d3eb6d1eb16e48931e987c1a7770b4758e
ath10k: use ether_addr_copy()

As suggeested by checkpatch:

WARNING: Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)

In wmi.c I had to change due to sparse warnings copying of struct wmi_mac_addr
from form &cmd->peer_macaddr.addr to cmd->peer_macaddr.addr. In
ath10k_wmi_set_ap_ps_param() I also added the missing ".addr" to the copy
command.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_rx.c
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/txrx.c
drivers/net/wireless/ath/ath10k/wmi.c