Skip to content

Commit

Permalink
ath6kl: Clear WPS ctrl flag if zero length IE is received from cfg80211
Browse files Browse the repository at this point in the history
Connect control flag CONNECT_WPS_FLAG has to be cleared
by default even if the driver receives zero length IE
from cfg80211.

Otherwise this flag would be always set after WPS exchange
which would lead wpa_supplicant to fail to connect with
the received WPS credentials. This issue is observed only
in OPEN security.

kvalo: use cfg80211 instead of CFG in the commit log

Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Raja Mani authored and Kalle Valo committed Nov 16, 2011
1 parent 368b1b0 commit 542c519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ static int ath6kl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len);
if (status)
return status;
}
} else
ar->connect_ctrl_flags &= ~CONNECT_WPS_FLAG;

if (test_bit(CONNECTED, &vif->flags) &&
vif->ssid_len == sme->ssid_len &&
Expand Down

0 comments on commit 542c519

Please sign in to comment.