aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.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_bsd.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_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index ab01370..276588c 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -736,12 +736,8 @@ static void
handle_read(void *ctx, const u8 *src_addr, const u8 *buf, size_t len)
{
struct bsd_driver_data *drv = ctx;
- 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);
+ drv_event_eapol_rx(drv->hapd, src_addr, buf + sizeof(struct l2_ethhdr),
+ len - sizeof(struct l2_ethhdr));
}
static int