Skip to content

Commit 3c2f4db

Browse files
AviSterngregkh
authored andcommitted
wifi: iwlwifi: mvm: allow 6 GHz channels in MLO scan
[ Upstream commit 454f630 ] MLO internal scan may include 6 GHz channels. Since the 6 GHz scan indication is not set, the channel flags are set incorrectly, which leads to a firmware assert. Since the MLO scan may include 6 GHz and non 6 GHz channels in one request, add support for non-PSC 6 GHz channels (PSC channels are already supported) when the 6 GHz indication is not set. Fixes: 38b3998 ("wifi: iwlwifi: mvm: Introduce internal MLO passive scan") Signed-off-by: Avraham Stern <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20240825191257.04807f8213b2.Idd09d4366df92a74853649c1a520b7f0f752d1ac@changeid Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 6542979 commit 3c2f4db

File tree

1 file changed

+11
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+11
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/scan.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,17 @@ iwl_mvm_umac_scan_cfg_channels_v7(struct iwl_mvm *mvm,
16591659
cfg->v2.channel_num = channels[i]->hw_value;
16601660
if (cfg80211_channel_is_psc(channels[i]))
16611661
cfg->flags = 0;
1662+
1663+
if (band == NL80211_BAND_6GHZ) {
1664+
/* 6 GHz channels should only appear in a scan request
1665+
* that has scan_6ghz set. The only exception is MLO
1666+
* scan, which has to be passive.
1667+
*/
1668+
WARN_ON_ONCE(cfg->flags != 0);
1669+
cfg->flags =
1670+
cpu_to_le32(IWL_UHB_CHAN_CFG_FLAG_FORCE_PASSIVE);
1671+
}
1672+
16621673
cfg->v2.iter_count = 1;
16631674
cfg->v2.iter_interval = 0;
16641675
if (version < 17)

0 commit comments

Comments
 (0)