iwlwifi: mvm: support MONITOR vif in DQA mode
authorLiad Kaufman <liad.kaufman@intel.com>
Tue, 27 Sep 2016 12:17:29 +0000 (15:17 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 19 Oct 2016 08:31:28 +0000 (11:31 +0300)
In DQA mode the TXQs are allocated on demand, so make
sure the sniffer STA tfd_queue_msk isn't set.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c

index 6b962d6b067a2017d5bd1f3e855aa8af8a11822b..9a91203195102d86681e2fa244c46b228fcbe0f2 100644 (file)
@@ -899,9 +899,11 @@ static int iwl_mvm_mac_ctxt_cmd_listener(struct iwl_mvm *mvm,
 
        iwl_mvm_mac_ctxt_cmd_common(mvm, vif, &cmd, NULL, action);
 
-       for (i = 0; i < IEEE80211_NUM_ACS; i++)
-               if (vif->hw_queue[i] != IEEE80211_INVAL_HW_QUEUE)
-                       tfd_queue_msk |= BIT(vif->hw_queue[i]);
+       if (!iwl_mvm_is_dqa_supported(mvm)) {
+               for (i = 0; i < IEEE80211_NUM_ACS; i++)
+                       if (vif->hw_queue[i] != IEEE80211_INVAL_HW_QUEUE)
+                               tfd_queue_msk |= BIT(vif->hw_queue[i]);
+       }
 
        cmd.filter_flags = cpu_to_le32(MAC_FILTER_IN_PROMISC |
                                       MAC_FILTER_IN_CONTROL_AND_MGMT |