diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-09-14 12:50:49 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-09-18 10:47:03 +0300 |
commit | b25f32cb02155d68c690255ba846796a1c248fd3 (patch) | |
tree | 67bfbd65920ced68f7e8ea96749587bfee55294b /drivers/net/wireless/ath/ath10k/txrx.c | |
parent | 75cb96d3eb6d1eb16e48931e987c1a7770b4758e (diff) | |
download | op-kernel-dev-b25f32cb02155d68c690255ba846796a1c248fd3.zip op-kernel-dev-b25f32cb02155d68c690255ba846796a1c248fd3.tar.gz |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/txrx.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/txrx.c b/drivers/net/wireless/ath/ath10k/txrx.c index 2eeec8a..a0cbc21 100644 --- a/drivers/net/wireless/ath/ath10k/txrx.c +++ b/drivers/net/wireless/ath/ath10k/txrx.c @@ -178,7 +178,7 @@ void ath10k_peer_map_event(struct ath10k_htt *htt, goto exit; peer->vdev_id = ev->vdev_id; - memcpy(peer->addr, ev->addr, ETH_ALEN); + ether_addr_copy(peer->addr, ev->addr); list_add(&peer->list, &ar->peers); wake_up(&ar->peer_mapping_wq); } |