mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 10:46:33 +00:00
wifi: iwlwifi: mvm: fix the TXF mapping for BZ devices
Those devices' fifos are numbered differently. Because of that, we were looking at the size of the VO fifo size to determine the size of the A-MSDU which led to a lower throughput. Note that for those devices the only user of the AC -> fifo mapping is the size limitation of A-MSDU. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240218194912.da336ca2fa0a.I73e44d5fc474ebb6f275b9008950e59c012f33b2@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
78f65fbf42
commit
d3433d1bb7
@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
||||
/*
|
||||
* Copyright (C) 2005-2014, 2019-2021, 2023 Intel Corporation
|
||||
* Copyright (C) 2005-2014, 2019-2021, 2023-2024 Intel Corporation
|
||||
* Copyright (C) 2013-2015 Intel Mobile Communications GmbH
|
||||
* Copyright (C) 2016-2017 Intel Deutschland GmbH
|
||||
*/
|
||||
@ -66,6 +66,16 @@ enum iwl_gen2_tx_fifo {
|
||||
IWL_GEN2_TRIG_TX_FIFO_VO,
|
||||
};
|
||||
|
||||
enum iwl_bz_tx_fifo {
|
||||
IWL_BZ_EDCA_TX_FIFO_BK,
|
||||
IWL_BZ_EDCA_TX_FIFO_BE,
|
||||
IWL_BZ_EDCA_TX_FIFO_VI,
|
||||
IWL_BZ_EDCA_TX_FIFO_VO,
|
||||
IWL_BZ_TRIG_TX_FIFO_BK,
|
||||
IWL_BZ_TRIG_TX_FIFO_BE,
|
||||
IWL_BZ_TRIG_TX_FIFO_VI,
|
||||
IWL_BZ_TRIG_TX_FIFO_VO,
|
||||
};
|
||||
/**
|
||||
* enum iwl_tx_queue_cfg_actions - TXQ config options
|
||||
* @TX_QUEUE_CFG_ENABLE_QUEUE: enable a queue
|
||||
|
@ -31,6 +31,17 @@ const u8 iwl_mvm_ac_to_gen2_tx_fifo[] = {
|
||||
IWL_GEN2_TRIG_TX_FIFO_BK,
|
||||
};
|
||||
|
||||
const u8 iwl_mvm_ac_to_bz_tx_fifo[] = {
|
||||
IWL_BZ_EDCA_TX_FIFO_VO,
|
||||
IWL_BZ_EDCA_TX_FIFO_VI,
|
||||
IWL_BZ_EDCA_TX_FIFO_BE,
|
||||
IWL_BZ_EDCA_TX_FIFO_BK,
|
||||
IWL_BZ_TRIG_TX_FIFO_VO,
|
||||
IWL_BZ_TRIG_TX_FIFO_VI,
|
||||
IWL_BZ_TRIG_TX_FIFO_BE,
|
||||
IWL_BZ_TRIG_TX_FIFO_BK,
|
||||
};
|
||||
|
||||
struct iwl_mvm_mac_iface_iterator_data {
|
||||
struct iwl_mvm *mvm;
|
||||
struct ieee80211_vif *vif;
|
||||
|
@ -1581,12 +1581,16 @@ static inline int iwl_mvm_max_active_links(struct iwl_mvm *mvm,
|
||||
|
||||
extern const u8 iwl_mvm_ac_to_tx_fifo[];
|
||||
extern const u8 iwl_mvm_ac_to_gen2_tx_fifo[];
|
||||
extern const u8 iwl_mvm_ac_to_bz_tx_fifo[];
|
||||
|
||||
static inline u8 iwl_mvm_mac_ac_to_tx_fifo(struct iwl_mvm *mvm,
|
||||
enum ieee80211_ac_numbers ac)
|
||||
{
|
||||
return iwl_mvm_has_new_tx_api(mvm) ?
|
||||
iwl_mvm_ac_to_gen2_tx_fifo[ac] : iwl_mvm_ac_to_tx_fifo[ac];
|
||||
if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ)
|
||||
return iwl_mvm_ac_to_bz_tx_fifo[ac];
|
||||
if (iwl_mvm_has_new_tx_api(mvm))
|
||||
return iwl_mvm_ac_to_gen2_tx_fifo[ac];
|
||||
return iwl_mvm_ac_to_tx_fifo[ac];
|
||||
}
|
||||
|
||||
struct iwl_rate_info {
|
||||
|
Loading…
x
Reference in New Issue
Block a user