forked from Minki/linux
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
@ -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 New Issue
Block a user