aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_roboswitch.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_roboswitch.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_roboswitch.c')
-rw-r--r--src/drivers/driver_roboswitch.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/drivers/driver_roboswitch.c b/src/drivers/driver_roboswitch.c
index aab6bc0..fe63bc1 100644
--- a/src/drivers/driver_roboswitch.c
+++ b/src/drivers/driver_roboswitch.c
@@ -180,8 +180,12 @@ static void wpa_driver_roboswitch_receive(void *priv, const u8 *src_addr,
if (len > 14 && WPA_GET_BE16(buf + 12) == ETH_P_EAPOL &&
os_memcmp(buf, drv->own_addr, ETH_ALEN) == 0) {
- wpa_supplicant_rx_eapol(drv->ctx, src_addr, buf + 14,
- len - 14);
+ union wpa_event_data event;
+ os_memset(&event, 0, sizeof(event));
+ event.eapol_rx.src = src_addr;
+ event.eapol_rx.data = buf + 14;
+ event.eapol_rx.data_len = len - 14;
+ wpa_supplicant_event(drv->ctx, EVENT_EAPOL_RX, &event);
}
}