Skip to content

Commit b31b77b

Browse files
Miriam-Racheljmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: don't request statistics in restart
During restart mac80211 notifies the driver about the association, (if we was associated before the restart) which causes the driver to request statistics from the FW. This causes to an immediate exit from EMLSR after the restart is done, when the statistics notif is handled. (too low TPT). There is no point in requesting statistics wnyway, since the FW just started and don't have any. Signed-off-by: Miri Korenblit <[email protected]> Reviewed-by: Johannes Berg <[email protected]> Link: https://msgid.link/20240506095953.16638dec9f7b.I093514312179bae566ad8d73ffb0355c6eee288a@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent df966c9 commit b31b77b

File tree

1 file changed

+7
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+7
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/utils.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,13 @@ int iwl_mvm_request_statistics(struct iwl_mvm *mvm, bool clear)
435435
IWL_FW_CMD_VER_UNKNOWN);
436436
int ret;
437437

438+
/*
439+
* Don't request statistics during restart, they'll not have any useful
440+
* information right after restart, nor is clearing needed
441+
*/
442+
if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status))
443+
return 0;
444+
438445
if (cmd_ver != IWL_FW_CMD_VER_UNKNOWN)
439446
return iwl_mvm_request_system_statistics(mvm, clear, cmd_ver);
440447

0 commit comments

Comments
 (0)