From: Jouni Malinen Date: Tue, 3 Apr 2012 14:11:22 +0000 (+0300) Subject: nl80211: Indicate disconnect event as deauthentication X-Git-Tag: hostap_2_0~765 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e9f078c8dde5abfe7025513deb417c679502e99;p=thirdparty%2Fhostap.git nl80211: Indicate disconnect event as deauthentication 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 --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 6f456779b..f369c956b 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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); }