aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/dvm/mac80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/mac80211.c')
-rw-r--r--drivers/net/wireless/iwlwifi/dvm/mac80211.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/mac80211.c b/drivers/net/wireless/iwlwifi/dvm/mac80211.c
index 9d2374862314..2f10346c6ba1 100644
--- a/drivers/net/wireless/iwlwifi/dvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/dvm/mac80211.c
@@ -801,6 +801,18 @@ static int iwlagn_mac_sta_state(struct ieee80211_hw *hw,
801 switch (op) { 801 switch (op) {
802 case ADD: 802 case ADD:
803 ret = iwlagn_mac_sta_add(hw, vif, sta); 803 ret = iwlagn_mac_sta_add(hw, vif, sta);
804 if (ret)
805 break;
806 /*
807 * Clear the in-progress flag, the AP station entry was added
808 * but we'll initialize LQ only when we've associated (which
809 * would also clear the in-progress flag). This is necessary
810 * in case we never initialize LQ because association fails.
811 */
812 spin_lock_bh(&priv->sta_lock);
813 priv->stations[iwl_sta_id(sta)].used &=
814 ~IWL_STA_UCODE_INPROGRESS;
815 spin_unlock_bh(&priv->sta_lock);
804 break; 816 break;
805 case REMOVE: 817 case REMOVE:
806 ret = iwlagn_mac_sta_remove(hw, vif, sta); 818 ret = iwlagn_mac_sta_remove(hw, vif, sta);