wifi: iwlwifi: mld: enable OMI bandwidth reduction on 6 GHz
authorJohannes Berg <johannes.berg@intel.com>
Sun, 9 Mar 2025 05:36:47 +0000 (07:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Mar 2025 15:29:25 +0000 (16:29 +0100)
commitfd04fbee7f0f8ec986772d41a1e1717f5bcf941c
tree8bde8d81a6f26470f7457d05801198a7e029e03e
parentb807dec3e82ae623e0ec45a26e485548d91bbe9c
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>
drivers/net/wireless/intel/iwlwifi/mld/link.c
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
drivers/net/wireless/intel/iwlwifi/mld/phy.c
drivers/net/wireless/intel/iwlwifi/mld/phy.h
drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c