mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
staging: ks7010: use ether_addr_copy in ks_wlan_get_wap
Use ether_addr_copy to copy ethernet addresses instead of a custom memcpy. This improves readability. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
90db591233
commit
afa10db0e1
1 changed files with 1 additions and 1 deletions
|
|
@ -346,7 +346,7 @@ static int ks_wlan_get_wap(struct net_device *dev, struct iw_request_info *info,
|
|||
|
||||
/* for SLEEP MODE */
|
||||
if (is_connect_status(priv->connect_status))
|
||||
memcpy(awrq->ap_addr.sa_data, priv->current_ap.bssid, ETH_ALEN);
|
||||
ether_addr_copy(awrq->ap_addr.sa_data, priv->current_ap.bssid);
|
||||
else
|
||||
eth_zero_addr(awrq->ap_addr.sa_data);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue