]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Immediate group removal in GC in case of deauthentication
authorSreenath Sharma <sreenats@broadcom.com>
Sat, 31 Aug 2013 08:11:41 +0000 (11:11 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 31 Aug 2013 08:11:41 +0000 (11:11 +0300)
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>

wpa_supplicant/events.c

index 40c6adf9713ec7c75980160741c7f31a77ec6272..8d6c23496d29524a17453066215453667450f49c 100644 (file)
@@ -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) {
                        /*