Commit be4e1341 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: ks7010: use ether_addr_copy in hostif_sme_multicast_set

Use ether_addr_copy to copy ethernet addresses in function
hostif_sme_multicast_set instead of memcpy.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f1e8524c
...@@ -1928,7 +1928,7 @@ void hostif_sme_multicast_set(struct ks_wlan_private *priv) ...@@ -1928,7 +1928,7 @@ void hostif_sme_multicast_set(struct ks_wlan_private *priv)
if (priv->sme_i.sme_flag & SME_MULTICAST) { if (priv->sme_i.sme_flag & SME_MULTICAST) {
mc_count = netdev_mc_count(dev); mc_count = netdev_mc_count(dev);
netdev_for_each_mc_addr(ha, 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++; i++;
} }
priv->sme_i.sme_flag &= ~SME_MULTICAST; priv->sme_i.sme_flag &= ~SME_MULTICAST;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment