From: Jouni Malinen Date: Fri, 1 Nov 2013 09:34:57 +0000 (+0200) Subject: AOSP: Skip ieee802_1x_finished disconnect on auth failure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26f58d99b583cbc7bcaebea62dabb31b3a07b6b9;p=thirdparty%2Fhostap.git AOSP: Skip ieee802_1x_finished disconnect on auth failure This is part of the following AOSP commit: commit ad266fb3da6083126e7619e525153839b918aa44 Author: Dmitry Shmidt 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 --- diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c index 01fcf2c29..9867581cb 100644 --- a/src/ap/ieee802_1x.c +++ b/src/ap/ieee802_1x.c @@ -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 } }