diff mbox series

[11/11] wifi: iwlwifi: mvm: enable VLP AP on VLP channels

Message ID 20240618194245.e15f24fc6bc8.I33ed7d141fec731e79370ba6c7cfbe28776944a0@changeid (mailing list archive)
State Accepted
Delegated to: Johannes Berg
Headers show
Series wifi: iwlwifi: updates - 18-06-24 | expand

Commit Message

Korenblit, Miriam Rachel June 18, 2024, 4:44 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

If channels are marked VLP, then we're actually also
allowed to be VLP AP/GO. Enable this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
index 712dabb30acc..c2656dee5a86 100644
--- a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
@@ -370,7 +370,9 @@  static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, enum nl80211_band band,
 		flags |= IEEE80211_CHAN_IR_CONCURRENT;
 
 	/* Set the AP type for the UHB case. */
-	if (!(nvm_flags & NVM_CHANNEL_VLP))
+	if (nvm_flags & NVM_CHANNEL_VLP)
+		flags |= IEEE80211_CHAN_ALLOW_6GHZ_VLP_AP;
+	else
 		flags |= IEEE80211_CHAN_NO_6GHZ_VLP_CLIENT;
 	if (!(nvm_flags & NVM_CHANNEL_AFC))
 		flags |= IEEE80211_CHAN_NO_6GHZ_AFC_CLIENT;
@@ -1661,7 +1663,9 @@  static u32 iwl_nvm_get_regdom_bw_flags(const u16 *nvm_chan,
 
 	/* Set the AP type for the UHB case. */
 	if (uats_enabled) {
-		if (!(nvm_flags & NVM_CHANNEL_VLP))
+		if (nvm_flags & NVM_CHANNEL_VLP)
+			flags |= NL80211_RRF_ALLOW_6GHZ_VLP_AP;
+		else
 			flags |= NL80211_RRF_NO_6GHZ_VLP_CLIENT;
 
 		if (!(nvm_flags & NVM_CHANNEL_AFC))