staging: ks7010: use ether_addr_copy in get_current_ap
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 4 May 2018 04:16:25 +0000 (06:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 01:58:38 +0000 (18:58 -0700)
Instead of use memcpy to copy ethernet addresses use
ether_addr_copy created for that.

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 b22dc0c..f8bca54 100644 (file)
@@ -110,7 +110,7 @@ int get_current_ap(struct ks_wlan_private *priv, struct link_ap_info *ap_info)
                return -EPERM;
        }
 
-       memcpy(ap->bssid, ap_info->bssid, ETH_ALEN);
+       ether_addr_copy(ap->bssid, ap_info->bssid);
        memcpy(ap->ssid.body, priv->reg.ssid.body,
               priv->reg.ssid.size);
        ap->ssid.size = priv->reg.ssid.size;