mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 22:53:20 +00:00
staging: ks7010: use ether_addr_copy in ks_wlan_set_mac_address
Use ether_addr_copy to copy ethernet address instad of using memcpy in ks_wlan_set_mac_address function. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d87e9626c0
commit
3ec51bb250
@ -2500,7 +2500,7 @@ int ks_wlan_set_mac_address(struct net_device *dev, void *addr)
|
||||
if (netif_running(dev))
|
||||
return -EBUSY;
|
||||
memcpy(dev->dev_addr, mac_addr->sa_data, dev->addr_len);
|
||||
memcpy(priv->eth_addr, mac_addr->sa_data, ETH_ALEN);
|
||||
ether_addr_copy(priv->eth_addr, mac_addr->sa_data);
|
||||
|
||||
priv->mac_address_valid = false;
|
||||
hostif_sme_enqueue(priv, SME_MACADDRESS_SET_REQUEST);
|
||||
|
Loading…
Reference in New Issue
Block a user