#include <sys/select.h>
#ifdef USE_KERNEL_HEADERS
+/* compat-wireless does not include linux/compiler.h to define __user, so
+ * define it here */
+#ifndef __user
+#define __user
+#endif /* __user */
#include <asm/types.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h> /* The L2 protocols */
resp = WLAN_STATUS_UNSPECIFIED_FAILURE;
goto fail;
}
- if (ieee802_11_parse_elems(drv->hapd, cb + ieofs,
+ if (ieee802_11_parse_elems(cb + ieofs,
le_to_host16(mlme->size) - ieofs,
&elems, 1) == ParseFailed) {
printf("STA " MACSTR " sent invalid association "
return;
}
if (hdr->type == htons(ETH_P_PAE)) {
- ieee802_1x_receive(hapd, (u8 *) &hdr->sa[0], (u8 *) &hdr[1],
- len - sizeof(*hdr));
+ hostapd_eapol_receive(hapd, (u8 *) &hdr->sa[0], (u8 *) &hdr[1],
+ len - sizeof(*hdr));
}
free(hdr);
}
}
prism54_init_1x(drv);
/* must clean previous elems */
- hostapd_set_generic_elem(hapd, NULL, 0);
+ prism54_set_generic_elem(drv->iface, drv, NULL, 0);
return drv;
}