staging: ks7010: use ether_addr_copy in get_ap_information function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 4 May 2018 04:16:31 +0000 (06:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 01:58:39 +0000 (18:58 -0700)
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>
drivers/staging/ks7010/ks_hostif.c

index 00d631828436dc68d326caf1ff64d34ce66098ab..366801f57676bf1b5380d66d075027db11d552c7 100644 (file)
@@ -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;