|
@@ -59,6 +59,7 @@
|
|
|
#include <linux/netdevice.h>
|
|
|
#include <linux/workqueue.h>
|
|
|
#include <linux/byteorder/generic.h>
|
|
|
+#include <linux/etherdevice.h>
|
|
|
|
|
|
#include <linux/io.h>
|
|
|
#include <linux/delay.h>
|
|
@@ -1544,7 +1545,7 @@ static void prism2sta_inf_authreq_defer(wlandevice_t *wlandev,
|
|
|
** authentication.
|
|
|
*/
|
|
|
|
|
|
- memcpy(rec.address, inf->info.authreq.sta_addr, ETH_ALEN);
|
|
|
+ ether_addr_copy(rec.address, inf->info.authreq.sta_addr);
|
|
|
rec.status = P80211ENUM_status_unspec_failure;
|
|
|
|
|
|
/*
|
|
@@ -1657,8 +1658,8 @@ static void prism2sta_inf_authreq_defer(wlandevice_t *wlandev,
|
|
|
if (hw->authlist.cnt >= WLAN_AUTH_MAX) {
|
|
|
rec.status = P80211ENUM_status_ap_full;
|
|
|
} else {
|
|
|
- memcpy(hw->authlist.addr[hw->authlist.cnt],
|
|
|
- rec.address, ETH_ALEN);
|
|
|
+ ether_addr_copy(hw->authlist.addr[hw->authlist.cnt],
|
|
|
+ rec.address);
|
|
|
hw->authlist.cnt++;
|
|
|
added = 1;
|
|
|
}
|