Commit dd273e8a authored by Ayala Beker's avatar Ayala Beker Committed by Johannes Berg

wifi: iwlwifi: mvm: use fast balance scan in case of an active P2P GO

Set fast balance scan in case of active P2P GO, regardless of the
BSS DTIM interval.
This will increase the chances of scheduler to successfully schedule
out-of-channel events.
Signed-off-by: default avatarAyala Beker <ayala.beker@intel.com>
Reviewed-by: default avatarIlan Peer <ilan.peer@intel.com>
Signed-off-by: default avatarMiri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240201155157.310a00388e11.Ib136140dffa8704e68ff14e8fb69d35b97057171@changeidSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 61ff8444
...@@ -241,13 +241,11 @@ iwl_mvm_scan_type _iwl_mvm_get_scan_type(struct iwl_mvm *mvm, ...@@ -241,13 +241,11 @@ iwl_mvm_scan_type _iwl_mvm_get_scan_type(struct iwl_mvm *mvm,
return IWL_SCAN_TYPE_FRAGMENTED; return IWL_SCAN_TYPE_FRAGMENTED;
/* /*
* in case of DCM with GO where BSS DTIM interval < 220msec * in case of DCM with P2P GO set all scan requests as
* set all scan requests as fast-balance scan * fast-balance scan
*/ */
if (vif && vif->type == NL80211_IFTYPE_STATION && if (vif && vif->type == NL80211_IFTYPE_STATION &&
data.is_dcm_with_p2p_go && data.is_dcm_with_p2p_go)
((vif->bss_conf.beacon_int *
vif->bss_conf.dtim_period) < 220))
return IWL_SCAN_TYPE_FAST_BALANCE; return IWL_SCAN_TYPE_FAST_BALANCE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment