Skip to contentSkip to conversation

ath6kl: Fix connect command to clear previously used IEs

PATCH Applied Jouni Malinen 2 participants 2 messages Dec 15, 2011 – Dec 23, 2011 Atheros ATH6KL wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath6kl: Fix connect command to clear previously used IEs

Empty IE buffer means that the new association is not supposed to include extra IEs. Make sure any previously configured (Re)Association Request frame IEs get cleared in such a case. This is based on a patch from Shuibing.

---
 drivers/net/wireless/ath/ath6kl/cfg80211.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
drivers/net/wireless/ath/ath6kl/cfg80211.c +7 -7
index 6c59a21..ac764c1 100644
@@ -461,13 +461,13 @@ static int ath6kl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
 		}
 	}
 
-	if (sme->ie && (sme->ie_len > 0)) {
-		status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len);
-		if (status) {
-			up(&ar->sem);
-			return status;
-		}
-	} else
+	status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len);
+	if (status) {
+		up(&ar->sem);
+		return status;
+	}
+
+	if (sme->ie == NULL || sme->ie_len == 0)
 		ar->connect_ctrl_flags &= ~CONNECT_WPS_FLAG;
 
 	if (test_bit(CONNECTED, &vif->flags) &&
Signature · 5 lines
1.7.4.1


-- 
Jouni Malinen                                            PGP id EFC895FA
Applied
#1 lore raw
Quoted 7 lines · Jouni Malinen

Empty IE buffer means that the new association is not supposed to include extra IEs. Make sure any previously configured (Re)Association Request frame IEs get cleared in such a case. This is based on a patch from Shuibing.

Thanks, applied.

Kalle