staging: ks7010: use ether_addr_copy in get_ap_information function
This commit make use of ether_addr_copy to copy ethernet address instead of copy it using memcpy. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6663f11bd4
commit
a5f7d6531e
@ -200,7 +200,7 @@ int get_ap_information(struct ks_wlan_private *priv, struct ap_info *ap_info,
|
||||
|
||||
memset(ap, 0, sizeof(struct local_ap));
|
||||
|
||||
memcpy(ap->bssid, ap_info->bssid, ETH_ALEN);
|
||||
ether_addr_copy(ap->bssid, ap_info->bssid);
|
||||
ap->rssi = ap_info->rssi;
|
||||
ap->sq = ap_info->sq;
|
||||
ap->noise = ap_info->noise;
|
||||
|
Reference in New Issue
Block a user