From: Ashok Kumar Date: Fri, 24 May 2019 11:50:58 +0000 (+0530) Subject: SAE: Fix external_auth status in driver-SME STA case with AP SME support X-Git-Tag: hostap_2_9~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2552a3735a13446fae321509ace4d6888b8dd830;p=thirdparty%2Fhostap.git SAE: Fix external_auth status in driver-SME STA case with AP SME support A driver that uses internal AP SME may need to be able to use the external_auth status operation in station mode, so do not skip this solely based on drv->device_ap_sme; instead, use that condition only when operating in AP mode. Fix external_auth status in non SME case. Signed-off-by: Ashok Kumar --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index ca8e0d26b..96fd0aadd 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -10899,7 +10899,7 @@ static int nl80211_send_external_auth_status(void *priv, * SAE) to hostapd/wpa_supplicant. Do nott send the status to drivers * which do not support AP SME or use wpa_supplicant/hostapd SME. */ - if (!bss->drv->device_ap_sme || + if ((is_ap_interface(drv->nlmode) && !bss->drv->device_ap_sme) || (drv->capa.flags & WPA_DRIVER_FLAGS_SME)) return -1;