]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: mvm: don't count mgmt frames as MPDU
authorDaniel Gabay <daniel.gabay@intel.com>
Sun, 29 Dec 2024 14:44:38 +0000 (16:44 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2025 14:26:41 +0000 (15:26 +0100)
When handling TX_CMD notification, for mgmt frames tid is equal
to IWL_MAX_TID_COUNT, so with the current logic we'll count
that as MPDU, fix that.

Fixes: ec0d43d26f2c ("wifi: iwlwifi: mvm: Activate EMLSR based on traffic volume")
Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241229164246.80b119bb5d08.I31b1e8ba25cce15819225e5ac80332e4eaa20c13@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c

index bd09bd0ca930442ee1f8f4f049e82ab75f43323f..f67afb66ef2b14831efbad13c9d4e4b7762d1f3e 100644 (file)
@@ -1808,7 +1808,9 @@ static void iwl_mvm_rx_tx_cmd_single(struct iwl_mvm *mvm,
                                IWL_DEBUG_TX_REPLY(mvm,
                                                   "Next reclaimed packet:%d\n",
                                                   next_reclaimed);
-                               iwl_mvm_count_mpdu(mvmsta, sta_id, 1, true, 0);
+                               if (tid < IWL_MAX_TID_COUNT)
+                                       iwl_mvm_count_mpdu(mvmsta, sta_id, 1,
+                                                          true, 0);
                        } else {
                                IWL_DEBUG_TX_REPLY(mvm,
                                                   "NDP - don't update next_reclaimed\n");