summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>2024-03-05 16:06:02 +0200
committeriwlwifi publisher <>2024-04-17 13:05:25 +0000
commit54e0a92ea35d0f957d5698de30d6484d3160ce00 (patch)
tree907131b7713ce798d772d4eb7ab2589fc477a181
parent08f5ed595246e2f6267fa24c9a1b0766447ba628 (diff)
downloadbackport-iwlwifi-54e0a92ea35d0f957d5698de30d6484d3160ce00.tar.gz
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. type=feature ticket=none Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Change-Id: Ie40eae0dd99d82ba60dea5b6dbcd42dcdf16b90d Reviewed-on: https://gerritwcs.ir.intel.com/c/iwlwifi-stack-dev/+/97617 automatic-review: iil_jenkins iil_jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM> tested: iil_jenkins iil_jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM> Tested-by: iil_jenkins iil_jenkins <EC.GER.UNIX.IIL.JENKINS@INTEL.COM> x-iwlwifi-stack-dev: e5f4905d1daf77e372f5061b0cc71e5cc1c988b4
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/link.c4
-rw-r--r--versions2
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/link.c b/drivers/net/wireless/intel/iwlwifi/mvm/link.c
index b91b3dd1f4..c15e0373a9 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/link.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/link.c
@@ -726,8 +726,8 @@ void iwl_mvm_select_links(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
if (hweight16(new_active_links) <= 1)
goto set_active;
- /* prefer single link over marginal eSR improvement */
- if (best_link->grade * 110 / 100 >= max_esr_grade) {
+ /* For equal grade - prefer EMLSR */
+ if (best_link->grade > max_esr_grade) {
primary_link = best_link->link_id;
new_active_links = BIT(best_link->link_id);
}
diff --git a/versions b/versions
index 68d3b2875c..146088f84a 100644
--- a/versions
+++ b/versions
@@ -2,4 +2,4 @@ BACKPORTS_VERSION="(see git)"
BACKPORTED_KERNEL_VERSION="(see git)"
BACKPORTED_KERNEL_NAME="iwlwifi"
BACKPORTS_BUILD_TSTAMP=__DATE__ \" \" __TIME__
-BACKPORTS_GIT_TRACKED="iwlwifi-stack-public:master:11976:dd4d29d5"
+BACKPORTS_GIT_TRACKED="iwlwifi-stack-public:master:11977:e5f4905d"