]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
iwlwifi: mvm: set 512 TX queue slots for AX210 devices
authorShaul Triebitz <shaul.triebitz@intel.com>
Thu, 28 Feb 2019 15:17:58 +0000 (17:17 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 19 Apr 2019 07:26:21 +0000 (10:26 +0300)
AX210 devices support 256 BA (256 MPDUs in an AMPDU).
The firmware requires that the number of TFDs will be
minimum twice as big as the BA size (2 * 256 = 512).

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c

index eb452e9dce057823eec03bad00db2e6d42fedace..6c0e805eb81e85b16282162413f413f8b4c44bce 100644 (file)
@@ -746,7 +746,8 @@ static int iwl_mvm_find_free_queue(struct iwl_mvm *mvm, u8 sta_id,
 static int iwl_mvm_tvqm_enable_txq(struct iwl_mvm *mvm,
                                   u8 sta_id, u8 tid, unsigned int timeout)
 {
-       int queue, size = IWL_DEFAULT_QUEUE_SIZE;
+       int queue, size = max_t(u32, IWL_DEFAULT_QUEUE_SIZE,
+                               mvm->trans->cfg->min_256_ba_txq_size);
 
        if (tid == IWL_MAX_TID_COUNT) {
                tid = IWL_MGMT_TID;