[PATCH] clear wdev->connect_keys from cfg layer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux