From a5f7d6531ea825d0a95ce10eb75488577d075b1b Mon Sep 17 00:00:00 2001 From: Sergio Paracuellos Date: Fri, 4 May 2018 06:16:31 +0200 Subject: [PATCH] staging: ks7010: use ether_addr_copy in get_ap_information function This commit make use of ether_addr_copy to copy ethernet address instead of copy it using memcpy. Signed-off-by: Sergio Paracuellos Signed-off-by: Greg Kroah-Hartman --- drivers/staging/ks7010/ks_hostif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 00d631828436..366801f57676 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -200,7 +200,7 @@ int get_ap_information(struct ks_wlan_private *priv, struct ap_info *ap_info, memset(ap, 0, sizeof(struct local_ap)); - memcpy(ap->bssid, ap_info->bssid, ETH_ALEN); + ether_addr_copy(ap->bssid, ap_info->bssid); ap->rssi = ap_info->rssi; ap->sq = ap_info->sq; ap->noise = ap_info->noise; -- 2.30.2