aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-03 15:44:40 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-03 15:44:40 (GMT)
commita8e0505bf0576ec014149130544a849b3d46e23d (patch)
tree0d37f501011e0c67cee273a1d71ad1183f151b16 /src/drivers/driver_atheros.c
parenta70a5d6d0644c623346af907292157a03f2297ed (diff)
downloadhostap-a8e0505bf0576ec014149130544a849b3d46e23d.zip
hostap-a8e0505bf0576ec014149130544a849b3d46e23d.tar.gz
hostap-a8e0505bf0576ec014149130544a849b3d46e23d.tar.bz2
Use driver event, EVENT_EAPOL_RX, for EAPOL frame indication
Diffstat (limited to 'src/drivers/driver_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index 58834b4..e3a7e7d 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -1073,9 +1073,12 @@ static void
handle_read(void *ctx, const u8 *src_addr, const u8 *buf, size_t len)
{
struct madwifi_driver_data *drv = ctx;
- hostapd_eapol_receive(drv->hapd, src_addr,
- buf + sizeof(struct l2_ethhdr),
- len - sizeof(struct l2_ethhdr));
+ union wpa_event_data event;
+ os_memset(&event, 0, sizeof(event));
+ event.eapol_rx.src = src_addr;
+ event.eapol_rx.data = buf + sizeof(struct l2_ethhdr);
+ event.eapol_rx.data_len = len - sizeof(struct l2_ethhdr);
+ wpa_supplicant_event(drv->hapd, EVENT_EAPOL_RX, &event);
}
static void *