Skip to content

Commit 4bbf0a9

Browse files
ilanpeer2gregkh
authored andcommitted
iwlwifi: mvm: Fix scan channel flags settings
[ Upstream commit 090f1be ] The iwl_mvm_scan_ch_n_aps_flag() is called with a variable before the value of the variable is set. Fix it. Signed-off-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/iwlwifi.20210826224715.f6f188980a5e.Ie7331a8b94004d308f6cbde44e519155a5be91dd@changeid Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a693aff commit 4bbf0a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/wireless/intel/iwlwifi/mvm

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ iwl_mvm_umac_scan_cfg_channels_v6(struct iwl_mvm *mvm,
16821682
struct iwl_scan_channel_cfg_umac *cfg = &cp->channel_config[i];
16831683
u32 n_aps_flag =
16841684
iwl_mvm_scan_ch_n_aps_flag(vif_type,
1685-
cfg->v2.channel_num);
1685+
channels[i]->hw_value);
16861686

16871687
cfg->flags = cpu_to_le32(flags | n_aps_flag);
16881688
cfg->v2.channel_num = channels[i]->hw_value;

0 commit comments

Comments
 (0)