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

Commit 76b91c6f authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman
Browse files

staging: ks7010: use ether_addr_copy in get_current_ap



Instead of use memcpy to copy ethernet addresses use
ether_addr_copy created for that.

Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8ce76bff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;