Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77b948df authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman
Browse files

staging: ks7010: use ether_addr_copy in ks_wlan_get_aplist



Use ether_addr_copy to copy ethernet addresses instead of
using custom memcpy for that.

Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1df964ac
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1101,8 +1101,7 @@ static int ks_wlan_get_aplist(struct net_device *dev,
		return -EPERM;
	/* for SLEEP MODE */
	for (i = 0; i < priv->aplist.size; i++) {
		memcpy(address[i].sa_data, &(priv->aplist.ap[i].bssid[0]),
		       ETH_ALEN);
		ether_addr_copy(address[i].sa_data, priv->aplist.ap[i].bssid);
		address[i].sa_family = ARPHRD_ETHER;
		qual[i].level = 256 - priv->aplist.ap[i].rssi;
		qual[i].qual = priv->aplist.ap[i].sq;