Skip to content

Commit 4614410

Browse files
Miriam-Racheljmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: don't skip link selection
If we exit EMLSR due to a IWL_MVM_ESR_EXIT*, a MLO scan followed by a link selection is scheduled with a delay of 30 seconds. If during that 30 seconds EMLSR was blocked and unblocked (IWL_MVM_ESR_BLOCKED*), we would still want to get the needed data from the MLO scan and select link accordingly, and not return immediately to EMLSR. Fixes: 2f33561 ("wifi: iwlwifi: mvm: trigger link selection after exiting EMLSR") Signed-off-by: Miri Korenblit <[email protected]> Reviewed-by: Johannes Berg <[email protected]> Link: https://msgid.link/20240512152312.caab27a8dd8f.I63f67e213d5e05416f71513a8d914917d59aa44f@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 3f31265 commit 4614410

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/link.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,13 @@ static void iwl_mvm_esr_unblocked(struct iwl_mvm *mvm,
10761076

10771077
IWL_DEBUG_INFO(mvm, "EMLSR is unblocked\n");
10781078

1079+
/* We exited due to an EXIT reason, so MLO scan was scheduled already */
1080+
if (mvmvif->last_esr_exit.reason &&
1081+
!(mvmvif->last_esr_exit.reason & IWL_MVM_BLOCK_ESR_REASONS)) {
1082+
IWL_DEBUG_INFO(mvm, "Wait for MLO scan\n");
1083+
return;
1084+
}
1085+
10791086
/*
10801087
* If EMLSR was blocked for more than 30 seconds, or the last link
10811088
* selection decided to not enter EMLSR, trigger a new scan.

0 commit comments

Comments
 (0)