qcacld-3.0: configure valid range of value for aliasing INI

There are two different names with different range of
value for aliasing INI's.
So, it should pick the valid range of value wrt INI
name.

Change-Id: I58d4797a0fa598a1e44349c8954dac3378f1a751
CRs-Fixed: 3352412
This commit is contained in:
Divyajyothi Goparaju
2022-12-07 14:52:45 +05:30
committato da Madan Koyyalamudi
parent 8e09eaace8
commit 017f34dd8d
3 ha cambiato i file con 159 aggiunte e 15 eliminazioni

Vedi File

@@ -22,6 +22,16 @@
#include "wlan_pmo_common_public_struct.h"
#ifdef CONNECTION_ROAMING_CFG
# define CONDTIMSKIPPING_NUMBER_MIN 0
# define CONDTIMSKIPPING_NUMBER_MAX 10
# define CONDTIMSKIPPING_NUMBER_DEFAULT 3
#else
# define CONDTIMSKIPPING_NUMBER_MIN 0
# define CONDTIMSKIPPING_NUMBER_MAX 10
# define CONDTIMSKIPPING_NUMBER_DEFAULT 0
#endif
/*
* <ini>
* hostArpOffload - Enable/disable host ARP offload
@@ -156,6 +166,31 @@
CFG_VALUE_OR_DEFAULT, \
"Enable Dynamic DTIM")
/*
* <ini>
* gEnableModulatedDTIM/ConDTIMSkipping_Number - Enable/Disable modulated DTIM
* feature
* @Min: 0
* @Max: 10
* @Default: 0
*
* This ini is used to enable/disable modulated DTIM feature.
*
* 0 - Disable modulated DTIM.
* 1 to 10 - The maximum No. of modulated DTIM period used for calculating the
* target listen interval.
*
* The target listen interval will be updated to firmware when host driver is
* setting the suspend DTIM parameters.
*
* This configuration will be ignored when dynamic DTIM is enabled(by
* gEnableDynamicDTIM).
*
* Usage: External
*
* </ini>
*/
/*
* <ini>
* gEnableModulatedDTIM/ConDTIMSkipping_Number - Enable/Disable modulated DTIM
@@ -182,9 +217,9 @@
*/
#define CFG_PMO_ENABLE_MODULATED_DTIM CFG_INI_UINT( \
"gEnableModulatedDTIM ConDTIMSkipping_Number", \
0, \
10, \
0, \
CONDTIMSKIPPING_NUMBER_MIN, \
CONDTIMSKIPPING_NUMBER_MAX, \
CONDTIMSKIPPING_NUMBER_DEFAULT, \
CFG_VALUE_OR_DEFAULT, \
"Enable/disable modulated DTIM feature")