1
0

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

Add min 6g scan dwell time parameter in scan request command.

Change-Id: I34d806399df0fdee9d1b9e3a0a8212d76db062d8
CRs-Fixed: 2984813
Este cometimento está contido em:
Deeksha Gupta
2021-07-06 12:21:54 +05:30
cometido por Madan Koyyalamudi
ascendente a33021b028
cometimento 7f738b2118
6 ficheiros modificados com 45 adições e 3 eliminações

Ver ficheiro

@@ -179,6 +179,32 @@ enum scan_mode_6ghz {
0, 10000, PLATFORM_VALUE(80, 0),\
CFG_VALUE_OR_DEFAULT, "active dwell time for 2G channels")
/*
* <ini>
* min_channel_time_6g - Set min dwell time for 6G channels scan
* @Min: 5
* @Max: 60
* @Default: 25
*
* This ini is used to set minimum time in msecs spent in 6G channels scan.
* Firmware will park on the 6G channel for this duration and if no FILS
* discovery, Beacon, Probe resp is received it will move to new channel after
* this duration. If found , it will wait for "active_max_channel_time_6g"
* duration
*
* Related: active_max_channel_time_6g
*
* Supported Feature: Scan
*
* Usage: External
*
* </ini>
*/
#define CFG_MIN_6G_CHANNEL_TIME CFG_INI_UINT(\
"min_dwell_time_6g",\
5, 60, 25,\
CFG_VALUE_OR_DEFAULT, "min dwell time for 6G channels")
/*
* <ini>
* active_max_channel_time_6g - Set max time for active 6G channel scan
@@ -191,6 +217,8 @@ enum scan_mode_6ghz {
*
* Related: None
*
* Supported Feature: Scan
*
* Usage: External
*
* </ini>
@@ -198,7 +226,7 @@ enum scan_mode_6ghz {
#define CFG_ACTIVE_MAX_6G_CHANNEL_TIME CFG_INI_UINT(\
"active_max_channel_time_6g",\
0, 10000, 60,\
CFG_VALUE_OR_DEFAULT, "active dwell time for 6G channels")
CFG_VALUE_OR_DEFAULT, "max active dwell time for 6G channels")
/*
* <ini>
@@ -209,9 +237,10 @@ enum scan_mode_6ghz {
*
* This ini is used to set maximum time in msecs spent in passive 6G chan scan
*
*
* Related: None
*
* Supported Feature: Scan
*
* Usage: External
*
* </ini>
@@ -219,7 +248,7 @@ enum scan_mode_6ghz {
#define CFG_PASSIVE_MAX_6G_CHANNEL_TIME CFG_INI_UINT(\
"passive_max_channel_time_6g",\
0, 10000, 60,\
CFG_VALUE_OR_DEFAULT, "passive dwell time for 6G channels")
CFG_VALUE_OR_DEFAULT, "max passive dwell time for 6G channels")
/*
* <ini>
@@ -234,6 +263,8 @@ enum scan_mode_6ghz {
*
* Related: None
*
* Supported Feature: Scan
*
* Usage: External
*
* </ini>
@@ -256,6 +287,8 @@ enum scan_mode_6ghz {
*
* Related: None
*
* Supported Feature: Scan
*
* Usage: External
*
* </ini>
@@ -1389,6 +1422,7 @@ enum scan_mode_6ghz {
CFG(CFG_INITIAL_NO_DFS_SCAN) \
CFG(CFG_ACTIVE_MAX_2G_CHANNEL_TIME) \
CFG(CFG_PASSIVE_MAX_CHANNEL_TIME) \
CFG(CFG_MIN_6G_CHANNEL_TIME) \
CFG(CFG_ACTIVE_MAX_6G_CHANNEL_TIME) \
CFG(CFG_PASSIVE_MAX_6G_CHANNEL_TIME) \
CFG(CFG_ACTIVE_MAX_6G_CHANNEL_TIME_CONC) \

Ver ficheiro

@@ -973,6 +973,7 @@ 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
* @min_dwell_time_6g: 6Ghz min dwell time
* @dwell_time_active_6g: 6Ghz active dwell time
* @dwell_time_passive_6g: 6Ghz passive dwell time
* @min_rest_time: min rest time
@@ -1058,6 +1059,7 @@ struct scan_req_params {
uint32_t dwell_time_active;
uint32_t dwell_time_active_2g;
uint32_t dwell_time_passive;
uint32_t min_dwell_time_6g;
uint32_t dwell_time_active_6g;
uint32_t dwell_time_passive_6g;
uint32_t min_rest_time;