Skip to content

Commit 586e3cb

Browse files
jmberg-intelMiriam-Rachel
authored andcommitted
wifi: iwlwifi: fix byte count table for old devices
For devices handled by iwldvm, bc_table_dword was never set, but I missed that during the removal thereof. Change the logic to not treat the byte count table as dwords for devices older than 9000 series to fix that. Fixes: 6570ea2 ("wifi: iwlwifi: remove bc_table_dword transport config") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250828095500.eccd7d3939f1.Ibaffa06d0b3aa5f35a9451d94af34de208b8a2bc@changeid
1 parent 22e6bdb commit 586e3cb

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/pcie/gen1_2

1 file changed

+2
-1
lines changed

drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,8 @@ static void iwl_txq_gen1_update_byte_cnt_tbl(struct iwl_trans *trans,
20922092
break;
20932093
}
20942094

2095-
if (trans->mac_cfg->device_family < IWL_DEVICE_FAMILY_AX210)
2095+
if (trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_9000 &&
2096+
trans->mac_cfg->device_family < IWL_DEVICE_FAMILY_AX210)
20962097
len = DIV_ROUND_UP(len, 4);
20972098

20982099
if (WARN_ON(len > 0xFFF || write_ptr >= TFD_QUEUE_SIZE_MAX))

0 commit comments

Comments
 (0)