diff options
| author | Somashekhar Puttagangaiah <somashekhar.puttagangaiah@intel.com> | 2025-04-30 15:23:15 +0300 |
|---|---|---|
| committer | Miri Korenblit <miriam.rachel.korenblit@intel.com> | 2025-05-06 20:23:02 +0300 |
| commit | 37808a3788fdf47af11ffa2f4f4033f3b1e0c9f2 (patch) | |
| tree | 84da24dd94cf96fdb592c543b0fa4e7385f73def /drivers/net/wireless/intel/iwlwifi/mld/tests | |
| parent | wifi: iwlwifi: implement TOP reset follower (diff) | |
| download | linux-37808a3788fdf47af11ffa2f4f4033f3b1e0c9f2.tar.gz linux-37808a3788fdf47af11ffa2f4f4033f3b1e0c9f2.zip | |
wifi: iwlwifi: mld: allow EMLSR with 2.4 GHz when BT is ON
When BT is ON, EMLSR with one of the links operating on 2.4 GHz
is allowed only if it meets following conditions.
In this patch:
1. during link selection, when BT is ON, allow emlsr only if BT
pentalty is < 7%.
2. exit EMLSR if BT is turned ON and one of the links is operating
on 2.4 GHz with BT penalty > 7%
Signed-off-by: Somashekhar Puttagangaiah <somashekhar.puttagangaiah@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250430151952.d30212ec3901.I48e3d5bd6b0b8583f98057c38d2ee30fff5abd8a@changeid
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mld/tests')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mld/tests/link-selection.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mld/tests/link-selection.c b/drivers/net/wireless/intel/iwlwifi/mld/tests/link-selection.c index 766c24db3613..94a037bec1fa 100644 --- a/drivers/net/wireless/intel/iwlwifi/mld/tests/link-selection.c +++ b/drivers/net/wireless/intel/iwlwifi/mld/tests/link-selection.c @@ -287,6 +287,7 @@ static void test_iwl_mld_link_pair_allows_emlsr(struct kunit *test) const struct link_pair_case *params = test->param_value; struct iwl_mld *mld = test->priv; struct ieee80211_vif *vif; + struct ieee80211_bss_conf *link; /* link A is the primary and link B is the secondary */ struct iwl_mld_link_sel_data a = { .chandef = params->chandef_a, @@ -310,6 +311,11 @@ static void test_iwl_mld_link_pair_allows_emlsr(struct kunit *test) wiphy_lock(mld->wiphy); + link = wiphy_dereference(mld->wiphy, vif->link_conf[a.link_id]); + KUNIT_ALLOC_AND_ASSERT(test, link->bss); + link = wiphy_dereference(mld->wiphy, vif->link_conf[b.link_id]); + KUNIT_ALLOC_AND_ASSERT(test, link->bss); + /* Simulate channel load */ if (params->primary_link_active) { struct iwl_mld_phy *phy = |
