Skip to content

Commit fcc3560

Browse files
AyalaBkrjmberg-intel
authored andcommitted
wifi: iwlwifi: scan: correctly check if PSC listen period is needed
The flags variable is incorrectly checked while it is still cleared and has not been assigned any value yet. Fix it. Fixes: a615323 ("wifi: iwlwifi: mvm: always apply 6 GHz probe limitations") Signed-off-by: Ayala Beker <[email protected]> Reviewed-by: Benjamin Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://msgid.link/20240605140556.291c33f9a283.Id651fe69828aebce177b49b2316c5780906f1b37@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 4c2bed6 commit fcc3560

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@ iwl_mvm_umac_scan_cfg_channels_v7_6g(struct iwl_mvm *mvm,
18301830
*/
18311831
if (!iwl_mvm_is_scan_fragmented(params->type)) {
18321832
if (!cfg80211_channel_is_psc(params->channels[i]) ||
1833-
flags & IWL_UHB_CHAN_CFG_FLAG_PSC_CHAN_NO_LISTEN) {
1833+
psc_no_listen) {
18341834
if (unsolicited_probe_on_chan) {
18351835
max_s_ssids = 2;
18361836
max_bssids = 6;

0 commit comments

Comments
 (0)