|
@@ -32,6 +32,7 @@
|
|
|
#include <linux/kmod.h>
|
|
|
#include <linux/slab.h>
|
|
|
#include <linux/module.h>
|
|
|
+#include <linux/etherdevice.h>
|
|
|
|
|
|
#include "ieee80211.h"
|
|
|
static const char *ieee80211_modes[] = {
|
|
@@ -53,7 +54,7 @@ static inline char *rtl818x_translate_scan(struct ieee80211_device *ieee,
|
|
|
/* First entry *MUST* be the AP MAC address */
|
|
|
iwe.cmd = SIOCGIWAP;
|
|
|
iwe.u.ap_addr.sa_family = ARPHRD_ETHER;
|
|
|
- memcpy(iwe.u.ap_addr.sa_data, network->bssid, ETH_ALEN);
|
|
|
+ ether_addr_copy(iwe.u.ap_addr.sa_data, network->bssid);
|
|
|
start = iwe_stream_add_event(info, start, stop, &iwe, IW_EV_ADDR_LEN);
|
|
|
|
|
|
/* Remaining entries will be displayed in the order we provide them */
|