diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2011-12-15 07:16:00 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-12-23 07:42:44 -0500 |
commit | 6e786cb1e514dc87647beccaa96bd8a255d97a0c (patch) | |
tree | 522a0c07641cd0316e4d2ff02f23c92592497c8f /drivers/net/wireless/ath/ath6kl/cfg80211.c | |
parent | 5e13fd354a39d637df9b25edcb2964edf4a7c534 (diff) |
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.
Cc: Dai Shuibing <shuibing@qca.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 85c24dd01565..1a06a04c5106 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -461,13 +461,13 @@ static int ath6kl_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev, | |||
461 | } | 461 | } |
462 | } | 462 | } |
463 | 463 | ||
464 | if (sme->ie && (sme->ie_len > 0)) { | 464 | status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len); |
465 | status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len); | 465 | if (status) { |
466 | if (status) { | 466 | up(&ar->sem); |
467 | up(&ar->sem); | 467 | return status; |
468 | return status; | 468 | } |
469 | } | 469 | |
470 | } else | 470 | if (sme->ie == NULL || sme->ie_len == 0) |
471 | ar->connect_ctrl_flags &= ~CONNECT_WPS_FLAG; | 471 | ar->connect_ctrl_flags &= ~CONNECT_WPS_FLAG; |
472 | 472 | ||
473 | if (test_bit(CONNECTED, &vif->flags) && | 473 | if (test_bit(CONNECTED, &vif->flags) && |