]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AOSP: Skip ieee802_1x_finished disconnect on auth failure
authorJouni Malinen <j@w1.fi>
Fri, 1 Nov 2013 09:34:57 +0000 (11:34 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 1 Nov 2013 14:34:57 +0000 (16:34 +0200)
This is part of the following AOSP commit:

commit ad266fb3da6083126e7619e525153839b918aa44
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Fri Aug 24 17:03:35 2012 -0700

    wpa_supplicant: Update to BRCM version 0.8.0-37

    - Allow AP_SME support
    - Do not send disassoc after EAP failure since AP_SME is enabled
      and del_station will be called
    - Allow group idle timeout to run during WPS disconnect

    Change-Id: I7e9e15b9c44804196bc98c01d51a71e24412b91d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
src/ap/ieee802_1x.c

index 01fcf2c29bbbfa85dcfc992dd6412e1e1f9c1671..9867581cb7c80d3876236645dbcbf30979abdac8 100644 (file)
@@ -2127,7 +2127,12 @@ static void ieee802_1x_finished(struct hostapd_data *hapd,
                 * driver reorder operations.
                 */
                os_sleep(0, 10000);
+#ifndef ANDROID_P2P
+               /* We need not do this for driver. For AP-SME flags if we send this disassoc,
+                 * the p2p_client is gettig disassoc after it has completed the assoc
+                 */
                ap_sta_disconnect(hapd, sta, sta->addr,
                                  WLAN_REASON_IEEE_802_1X_AUTH_FAILED);
+#endif
        }
 }