aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_roboswitch.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-03 16:35:01 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-03 16:35:01 (GMT)
commitbaac649094e18dcf1bc47043f983560ee50e07be (patch)
treeaaa55dc4040ad5f1dbe25dc3f58f4cabcbce3c15 /src/drivers/driver_roboswitch.c
parent1d041bec843d55cd6be7be61ba83ddf96c5e2368 (diff)
downloadhostap-baac649094e18dcf1bc47043f983560ee50e07be.zip
hostap-baac649094e18dcf1bc47043f983560ee50e07be.tar.gz
hostap-baac649094e18dcf1bc47043f983560ee50e07be.tar.bz2
Add drv_event_eapol_rx() helper
Diffstat (limited to 'src/drivers/driver_roboswitch.c')
-rw-r--r--src/drivers/driver_roboswitch.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/drivers/driver_roboswitch.c b/src/drivers/driver_roboswitch.c
index fe63bc1..6877eda 100644
--- a/src/drivers/driver_roboswitch.c
+++ b/src/drivers/driver_roboswitch.c
@@ -179,14 +179,8 @@ static void wpa_driver_roboswitch_receive(void *priv, const u8 *src_addr,
struct wpa_driver_roboswitch_data *drv = priv;
if (len > 14 && WPA_GET_BE16(buf + 12) == ETH_P_EAPOL &&
- os_memcmp(buf, drv->own_addr, ETH_ALEN) == 0) {
- 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);
- }
+ os_memcmp(buf, drv->own_addr, ETH_ALEN) == 0)
+ drv_event_eapol_rx(drv->ctx, src_addr, buf + 14, len - 14);
}