aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-13 19:17:11 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-13 19:17:11 (GMT)
commit1cd973d5015bfe97c2752b3d2fff7765b6cc350c (patch)
tree1e108077abac461b760ecf79f8a5505355682344 /src/drivers/driver_atheros.c
parentac7043f265f57264a53ae63a5350f0368dab5a7e (diff)
downloadhostap-1cd973d5015bfe97c2752b3d2fff7765b6cc350c.zip
hostap-1cd973d5015bfe97c2752b3d2fff7765b6cc350c.tar.gz
hostap-1cd973d5015bfe97c2752b3d2fff7765b6cc350c.tar.bz2
Replace hostapd_michael_mic_failure() with generic driver event
Diffstat (limited to 'src/drivers/driver_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index 0db58e2..8759b01 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -807,7 +807,12 @@ madwifi_wireless_event_wireless_custom(struct madwifi_driver_data *drv,
}
pos += 5;
if (hwaddr_aton(pos, addr) == 0) {
- hostapd_michael_mic_failure(drv->hapd, addr);
+ union wpa_event_data data;
+ os_memset(&data, 0, sizeof(data));
+ data.michael_mic_failure.unicast = 1;
+ data.michael_mic_failure.src = addr;
+ wpa_supplicant_event(drv->hapd,
+ EVENT_MICHAEL_MIC_FAILURE, &data);
} else {
wpa_printf(MSG_DEBUG,
"MLME-MICHAELMICFAILURE.indication "