aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2025-03-09 07:36:47 +0200
committerJohannes Berg <johannes.berg@intel.com>2025-03-11 16:29:25 +0100
commitfd04fbee7f0f8ec986772d41a1e1717f5bcf941c (patch)
tree8bde8d81a6f26470f7457d05801198a7e029e03e /drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c
parentwifi: iwlwifi: mld: fix OMI time protection logic (diff)
downloadwireguard-linux-fd04fbee7f0f8ec986772d41a1e1717f5bcf941c.tar.xz
wireguard-linux-fd04fbee7f0f8ec986772d41a1e1717f5bcf941c.zip
wifi: iwlwifi: mld: enable OMI bandwidth reduction on 6 GHz
Due to the iwl_mld_get_chandef_from_chanctx() logic, even after the OMI handshake to reduce bandwidth the driver wouldn't apply that to the PHY context, since it always uses the normal, not the reduced, configuration on 6 GHz (not strictly always, but OMI will only apply if the original bandwidth is > 80 MHz.) Fix this by making that selection contingent on AP mode. Refactor the code a bit to also make it clearer why the min_def isn't used in that case (for FILS.) Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250309073442.2706cbd0b100.Ic34636b1aee81a140eb690fca8139909a58f8e8b@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c b/drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c
index b6049918b5db..6331cd91cdf6 100644
--- a/drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c
+++ b/drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c
@@ -169,7 +169,7 @@ iwlmld_kunit_add_chanctx_from_def(struct cfg80211_chan_def *def)
phy->fw_id = fw_id;
phy->mld = mld;
- phy->chandef = *iwl_mld_get_chandef_from_chanctx(ctx);
+ phy->chandef = *def;
return ctx;
}