qcacmn: Add 6G scan dwell time parameter in scan request command

Add 6G scan active and passive dwell time parameter to scan request

Change-Id: Idf50aa23d9dd856c076b1bc3f84e2b3c0ef2b289
CRs-Fixed: 2530498
This commit is contained in:
Sandeep Puligilla
2019-08-02 14:03:46 -07:00
committed by nshrivas
父節點 591b333f00
當前提交 5e0d7addc7
共有 5 個文件被更改,包括 60 次插入0 次删除

查看文件

@@ -128,6 +128,48 @@
0, 10000, PLATFORM_VALUE(80, 0),\
CFG_VALUE_OR_DEFAULT, "active dwell time for 2G channels")
/*
* <ini>
* active_max_channel_time_6g - Set max time for active 6G channel scan
* @Min: 0
* @Max: 10000
* @Default: 40
*
* This ini is used to set maximum time in msecs spent in active 6G channel scan
*
*
* Related: None
*
* Usage: External
*
* </ini>
*/
#define CFG_ACTIVE_MAX_6G_CHANNEL_TIME CFG_INI_UINT(\
"active_max_channel_time_6g",\
0, 10000, 40,\
CFG_VALUE_OR_DEFAULT, "active dwell time for 6G channels")
/*
* <ini>
* passive_max_channel_time_6g - Set max time for passive 6G channel scan
* @Min: 0
* @Max: 10000
* @Default: 30
*
* This ini is used to set maximum time in msecs spent in passive 6G chan scan
*
*
* Related: None
*
* Usage: External
*
* </ini>
*/
#define CFG_PASSIVE_MAX_6G_CHANNEL_TIME CFG_INI_UINT(\
"passive_max_channel_time_6g",\
0, 10000, 30,\
CFG_VALUE_OR_DEFAULT, "passive dwell time for 6G channels")
/*
* <ini>
* gPassiveMaxChannelTime - Set max channel time for passive scan
@@ -1156,6 +1198,8 @@
CFG(CFG_INITIAL_NO_DFS_SCAN) \
CFG(CFG_ACTIVE_MAX_2G_CHANNEL_TIME) \
CFG(CFG_PASSIVE_MAX_CHANNEL_TIME) \
CFG(CFG_ACTIVE_MAX_6G_CHANNEL_TIME) \
CFG(CFG_PASSIVE_MAX_6G_CHANNEL_TIME) \
CFG(CFG_SCAN_NUM_PROBES) \
CFG(CFG_SCAN_PROBE_REPEAT_TIME) \
CFG(CFG_ADAPTIVE_SCAN_DWELL_MODE) \

查看文件

@@ -803,6 +803,8 @@ enum scan_request_type {
* @dwell_time_active: active dwell time
* @dwell_time_active_2g: active dwell time for 2G channels, if it's not zero
* @dwell_time_passive: passive dwell time
* @dwell_time_active_6g: 6Ghz active dwell time
* @dwell_time_passive_6g: 6Ghz passive dwell time
* @min_rest_time: min rest time
* @max_rest_time: max rest time
* @repeat_probe_time: repeat probe time
@@ -882,6 +884,8 @@ struct scan_req_params {
uint32_t dwell_time_active;
uint32_t dwell_time_active_2g;
uint32_t dwell_time_passive;
uint32_t dwell_time_active_6g;
uint32_t dwell_time_passive_6g;
uint32_t min_rest_time;
uint32_t max_rest_time;
uint32_t repeat_probe_time;