[PATCH 1/1] net/wireless/scan.c: replace memcpy by ether_addr_copy

From: Fabian Frederick
Date: Mon May 12 2014 - 13:37:55 EST


Cc: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
Cc: "John W. Linville" <linville@xxxxxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
---
net/wireless/scan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index 7d09a71..6e321ee 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -893,7 +893,7 @@ cfg80211_inform_bss_width(struct wiphy *wiphy,
if (!channel)
return NULL;

- memcpy(tmp.pub.bssid, bssid, ETH_ALEN);
+ ether_addr_copy(tmp.pub.bssid, bssid);
tmp.pub.channel = channel;
tmp.pub.scan_width = scan_width;
tmp.pub.signal = signal;
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/