Skip to content

Commit 8ecdc57

Browse files
Miriam-Racheljmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: avoid always prefering single-link
The new link selection algorithm uses defaults values for BSS load if the BSS Load element was not published by the AP. For 6 GHz, that value is 0. So if the best link is 6 GHz, the EMLSR grade to always be equal to the grade of the best link, and then the best link grade is getting a bonus of 10 percent, meaning that we will never activate EMLSR. Change the logic to not give a bonus for the best link. Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240505091420.4614e6891dbd.Ie40eae0dd99d82ba60dea5b6dbcd42dcdf16b90d@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent bc6a7fa commit 8ecdc57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/net/wireless/intel/iwlwifi/mvm

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,8 @@ void iwl_mvm_select_links(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
727727
if (hweight16(new_active_links) <= 1)
728728
goto set_active;
729729

730-
/* prefer single link over marginal eSR improvement */
731-
if (best_link->grade * 110 / 100 >= max_esr_grade) {
730+
/* For equal grade - prefer EMLSR */
731+
if (best_link->grade > max_esr_grade) {
732732
primary_link = best_link->link_id;
733733
new_active_links = BIT(best_link->link_id);
734734
}

0 commit comments

Comments
 (0)