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 <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2012-04-03 17:11:22 +03:00 committed by Jouni Malinen
parent 3fc14102f8
commit 2e9f078c8d
1 changed files with 3 additions and 3 deletions

View 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);
}