staging: ks7010: use ether_addr_copy in hostif_sme_multicast_set
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 24 Apr 2018 13:50:06 +0000 (15:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2018 13:50:20 +0000 (15:50 +0200)
Use ether_addr_copy to copy ethernet addresses in function
hostif_sme_multicast_set instead of 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 fb01594..8476ec8 100644 (file)
@@ -1928,7 +1928,7 @@ void hostif_sme_multicast_set(struct ks_wlan_private *priv)
        if (priv->sme_i.sme_flag & SME_MULTICAST) {
                mc_count = netdev_mc_count(dev);
                netdev_for_each_mc_addr(ha, dev) {
-                       memcpy(&set_address[i * ETH_ALEN], ha->addr, ETH_ALEN);
+                       ether_addr_copy(&set_address[i * ETH_ALEN], ha->addr);
                        i++;
                }
                priv->sme_i.sme_flag &= ~SME_MULTICAST;