]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Indicate disconnect event as deauthentication
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 3 Apr 2012 14:11:22 +0000 (17:11 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 3 Apr 2012 14:11:22 +0000 (17:11 +0300)
This was previously indicated as disassociation, but the P2P group
session ending case expect a deauthentication notification. Since the
cfg80211 disconnection event does not really indicate which frame was
used, the easiest approach for now seems to be to just indicate these
as deauthentication events.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/drivers/driver_nl80211.c

index 6f456779b2a7b6200bc18ea3379f32d2c417eefd..f369c956b5d6507d21478f17dbebb04a3297c8a0 100644 (file)
@@ -1189,9 +1189,9 @@ static void mlme_event_disconnect(struct wpa_driver_nl80211_data *drv,
        drv->associated = 0;
        os_memset(&data, 0, sizeof(data));
        if (reason)
-               data.disassoc_info.reason_code = nla_get_u16(reason);
-       data.disassoc_info.locally_generated = by_ap == NULL;
-       wpa_supplicant_event(drv->ctx, EVENT_DISASSOC, &data);
+               data.deauth_info.reason_code = nla_get_u16(reason);
+       data.deauth_info.locally_generated = by_ap == NULL;
+       wpa_supplicant_event(drv->ctx, EVENT_DEAUTH, &data);
 }