[PATCH] clear wdev->connect_keys from cfg layer

Amit Khatri amit7861234 at gmail.com
Thu Jun 13 09:16:59 PDT 2019


if driver stuck in connection and not able to clear
wdev->conect_keys in cfg80211 layer.below error comes
at wpa_supplicant.
nl80211: MLME connect failed: ret=-115 (Operation now in progress)
This happens because cfg layer return 115 after chceking wdev->connect_keys.
now connct command will never reach to driver.
there is one way to clear wdev->connect_keys call
wpa_driver_nl80211_disconnect() explicitly and try to make connection.

Signed-off-by: Amit Khatri <amit7861234 at gmail.com>
---
 src/drivers/driver_nl80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 96fd0aadd..04bd36ad2 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5808,7 +5808,7 @@ static int wpa_driver_nl80211_connect(
 		os_memset(drv->auth_attempt_bssid, 0, ETH_ALEN);
 
 	ret = wpa_driver_nl80211_try_connect(drv, params, nl_connect);
-	if (ret == -EALREADY) {
+	if (ret == -EALREADY || ret == -EINPROGRESS) {
 		/*
 		 * cfg80211 does not currently accept new connections if
 		 * we are already connected. As a workaround, force
-- 
2.17.1




More information about the Hostap mailing list