wifi: iwlwifi: mvm: Fix _iwl_mvm_get_scan_type()
authorIlan Peer <ilan.peer@intel.com>
Sun, 16 Apr 2023 12:47:28 +0000 (15:47 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 17 Apr 2023 07:53:23 +0000 (09:53 +0200)
commit69e1089316271f7651a3a7ce3b3509405f5b2b8a
tree63d29b5feda583ba6ff1aff20385c125505c422c
parent0af637b5719fee09d006e83e1eecd235f7bc62f3
wifi: iwlwifi: mvm: Fix _iwl_mvm_get_scan_type()

The usage of the 'dtim_period' value was wrong, as it is only
a multiplier of the beacon interval, and thus, beacon interval should
also be considered. Fix it.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230416154301.e08293d6cace.I25f8cea3189472bd714676ca38b121d7c60fb9d9@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c