diff options
-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) && |