iwlwifi: mvm: disable P2P queue on mac context release
authorSara Sharon <sara.sharon@intel.com>
Thu, 18 Aug 2016 17:14:38 +0000 (20:14 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 19 Sep 2016 07:09:41 +0000 (10:09 +0300)
AP queue is properly released, but P2P queue isn't.

Fixes: commit 4c965139a3cd ("iwlwifi: mvm: support p2p device frames tx on dqa queue #2")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c

index 69c42ce45b8a83dc8270da395ec28e48c6a1dbd5..d742d27d8de0aa22f469a0d55d673df6f4aef1bc 100644 (file)
@@ -539,6 +539,11 @@ void iwl_mvm_mac_ctxt_release(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
                        iwl_mvm_disable_txq(mvm, IWL_MVM_OFFCHANNEL_QUEUE,
                                            IWL_MVM_OFFCHANNEL_QUEUE,
                                            IWL_MAX_TID_COUNT, 0);
+               else
+                       iwl_mvm_disable_txq(mvm,
+                                           IWL_MVM_DQA_P2P_DEVICE_QUEUE,
+                                           vif->hw_queue[0], IWL_MAX_TID_COUNT,
+                                           0);
 
                break;
        case NL80211_IFTYPE_AP: