diff options
| author | Yedidya Benshimol <[email protected]> | 2024-05-05 06:19:54 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2024-05-06 14:33:24 +0000 |
| commit | ae7fe563e572dde754e905c85ae575a4a2726eaa (patch) | |
| tree | 85601569b994e121b183f5f4c73b92859665f11e /drivers/net/wireless/intel/iwlwifi/mvm/link.c | |
| parent | wifi: iwlwifi: mvm: avoid always prefering single-link (diff) | |
| download | kernel-ae7fe563e572dde754e905c85ae575a4a2726eaa.tar.gz kernel-ae7fe563e572dde754e905c85ae575a4a2726eaa.zip | |
wifi: iwlwifi: mvm: Disable/enable EMLSR due to link's bandwidth/band
Enable EMLSR when bandwidth settings meet the criteria in
both band and width, otherwise disable.
Signed-off-by: Yedidya Benshimol <[email protected]>
Signed-off-by: Miri Korenblit <[email protected]>
Link: https://msgid.link/20240505091420.4e473d4f7f5c.I3adf5619b60bfba8af0cd7eae9dac947419603b6@changeid
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/link.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/link.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/link.c b/drivers/net/wireless/intel/iwlwifi/mvm/link.c index 9d7f9e5be253..b2a52e7b4a1c 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/link.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/link.c @@ -629,6 +629,13 @@ bool iwl_mvm_mld_valid_link_pair(struct ieee80211_vif *vif, iwl_mvm_esr_disallowed_with_link(vif, b, false)) return false; + if (a->chandef->width != b->chandef->width) + return false; + + if (!(a->chandef->chan->band == NL80211_BAND_6GHZ && + b->chandef->chan->band == NL80211_BAND_5GHZ)) + return false; + /* Per-combination considerations */ return a->chandef->chan->band != b->chandef->chan->band; } |
