diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-03-04 14:27:26 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-04 14:27:26 -0500 |
commit | 4f21e7e4414c91cc9a3e37b93574aa98db66894d (patch) | |
tree | 2b729d4435b4c6856381d88ea72080a27f8cda72 /drivers/net/wireless/iwlwifi/mvm/sta.c | |
parent | 5ba0eb4ad1d06f3d8f36dae02a0f2bf595d16ee4 (diff) | |
parent | 2470b36e84a2e680d7a7e3809cbceae5bfae3606 (diff) |
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/sta.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/sta.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/sta.c b/drivers/net/wireless/iwlwifi/mvm/sta.c index 861a7f9f8e7f..274f44e2ef60 100644 --- a/drivers/net/wireless/iwlwifi/mvm/sta.c +++ b/drivers/net/wireless/iwlwifi/mvm/sta.c @@ -770,6 +770,16 @@ int iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u16 txq_id; int err; + + /* + * If mac80211 is cleaning its state, then say that we finished since + * our state has been cleared anyway. + */ + if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) { + ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid); + return 0; + } + spin_lock_bh(&mvmsta->lock); txq_id = tid_data->txq_id; |