aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorSreenath Sharma <sreenats@broadcom.com>2013-08-31 08:11:41 (GMT)
committerJouni Malinen <j@w1.fi>2013-08-31 08:11:41 (GMT)
commit43ee470494a78440db8eb675ed67dc0e9f9e4cf9 (patch)
treeb4fbf279efafee15cb91332e32159e7ad87e4b36 /wpa_supplicant/events.c
parentfcf20528a029ec382ce8bbcacd37393eae208f0b (diff)
downloadhostap-43ee470494a78440db8eb675ed67dc0e9f9e4cf9.zip
hostap-43ee470494a78440db8eb675ed67dc0e9f9e4cf9.tar.gz
hostap-43ee470494a78440db8eb675ed67dc0e9f9e4cf9.tar.bz2
P2P: Immediate group removal in GC in case of deauthentication
Right now in case of deauthentication from GO, immediate group removal will happen in GC only if the deauthentication packet has a valid IE. However, the IE in deauthentication packet is mandated only for managed P2P group. So in normal P2P group the group removal is delayed and will happen later only in group idle timeout. This fixes a regression from commit d7df0fa727a2a79d7b22df6c68961220349ab2e3 that changed the previous check for data->deauth_info != NULL to data->deauth_info->ie != NULL. Signed-hostap: Sreenath Sharma <sreenats@broadcom.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 40c6adf..8d6c234 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -2473,7 +2473,7 @@ static void wpas_event_disconnect(struct wpa_supplicant *wpa_s, const u8 *addr,
wpas_auth_failed(wpa_s);
#ifdef CONFIG_P2P
- if (deauth && ie && ie_len > 0) {
+ if (deauth && reason_code > 0) {
if (wpas_p2p_deauth_notif(wpa_s, addr, reason_code, ie, ie_len,
locally_generated) > 0) {
/*