mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Reduce scan time when in GO+STA MCC
Scan on STA interface is taking around 10 secs to complete. There is a 7secs expiry time used in nl which could result in scan results received for the first 3secs, which are from 2G channels, to be flushed. Fix is to not set offchannel simultaneous feature capability, decrease the active dwell time for 2G channels to 40msecs and increase burst duration to 240msecs when GO is active. Change-Id: If014b2115048018432943d863bbe184beb498408 CRs-Fixed: 2340516
This commit is contained in:
parent
ae6a73dac7
commit
d8ee7699e6
3 changed files with 11 additions and 6 deletions
|
|
@ -3025,7 +3025,8 @@ bool policy_mgr_is_scan_simultaneous_capable(struct wlan_objmgr_psoc *psoc)
|
|||
(ENABLE_DBS_CXN_AND_DISABLE_DBS_SCAN ==
|
||||
wlan_objmgr_psoc_get_dual_mac_disable(psoc)) ||
|
||||
(ENABLE_DBS_CXN_AND_DISABLE_SIMULTANEOUS_SCAN ==
|
||||
wlan_objmgr_psoc_get_dual_mac_disable(psoc)))
|
||||
wlan_objmgr_psoc_get_dual_mac_disable(psoc)) ||
|
||||
!policy_mgr_is_hw_dbs_capable(psoc))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -85,8 +85,9 @@
|
|||
#define SCAN_ROAM_SCAN_CHANNEL_SWITCH_TIME (4)
|
||||
#define SCAN_DWELL_TIME_PROBE_TIME_MAP_SIZE (11)
|
||||
#define SCAN_GO_MIN_ACTIVE_SCAN_BURST_DURATION (40)
|
||||
#define SCAN_GO_MAX_ACTIVE_SCAN_BURST_DURATION (120)
|
||||
#define SCAN_P2P_SCAN_MAX_BURST_DURATION (180)
|
||||
#define SCAN_GO_MAX_ACTIVE_SCAN_BURST_DURATION (240)
|
||||
#define SCAN_P2P_SCAN_MAX_BURST_DURATION (240)
|
||||
#define SCAN_GO_BURST_SCAN_MAX_NUM_OFFCHANNELS (6)
|
||||
|
||||
/**
|
||||
* struct probe_time_dwell_time - probe time, dwell time map
|
||||
|
|
|
|||
|
|
@ -561,8 +561,9 @@ int ucfg_scan_get_burst_duration(int max_ch_time,
|
|||
* If miracast is not running, accommodate max
|
||||
* stations to make the scans faster
|
||||
*/
|
||||
burst_duration = SCAN_BURST_SCAN_MAX_NUM_OFFCHANNELS *
|
||||
max_ch_time;
|
||||
burst_duration = SCAN_GO_BURST_SCAN_MAX_NUM_OFFCHANNELS *
|
||||
max_ch_time;
|
||||
|
||||
if (burst_duration > SCAN_GO_MAX_ACTIVE_SCAN_BURST_DURATION) {
|
||||
uint8_t channels = SCAN_P2P_SCAN_MAX_BURST_DURATION /
|
||||
max_ch_time;
|
||||
|
|
@ -628,8 +629,10 @@ static void ucfg_scan_req_update_concurrency_params(
|
|||
* firmware spends more time on home channel which will increase the
|
||||
* probability of sending beacon at TBTT
|
||||
*/
|
||||
if (ap_present || go_present)
|
||||
if (ap_present || go_present) {
|
||||
req->scan_req.dwell_time_active_2g = 0;
|
||||
req->scan_req.min_rest_time = req->scan_req.max_rest_time;
|
||||
}
|
||||
|
||||
if (req->scan_req.p2p_scan_type == SCAN_NON_P2P_DEFAULT) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue