qcacld-3.0: Ini bitmap to enable/disable a particular NAN feature
NAN protocol runs in firmware and controlled by framework. Framework configures multiple NAN discovery params while enabling NAN. Framework configurations would be based on the framework constraints or realtime scenarios like resource(memory/power/..) consumption. But some of these params might need to be controlled explicitly based on the usage. NAN DW is one such parameter, which is configured as 4 seconds when the device is in sync role and the screen is off. But for some usecases, this param might have to be 512ms always irrespective of screen off/on for some targets. Add an ini param "nan_feature_config" to set a bit to indicate firmware whether to honor framework configured DW value or the firmware default value. Send the vdev param on NAN supported vdev by setting the "bit 0" to indicate firmware to allow framework configured DW value. If this bit is not set, firmware shall consider its default value. Change-Id: I0476bca2bbe676beccfff207f5b4ea31e89031e2 CRs-Fixed: 2721970
This commit is contained in:

committed by
nshrivas

parent
d001e72975
commit
c2b4e154f3
@@ -239,6 +239,38 @@
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Max number of NDI host supports")
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* nan_feature_config - Bitmap to enable/disable a particular NAN/NDP feature
|
||||
*
|
||||
* @Min: 0
|
||||
* @Max: 0xFFFF
|
||||
* @Default: 0x1
|
||||
*
|
||||
* This parameter helps to enable/disable a particular feature config by setting
|
||||
* corresponding bit and send to firmware through the VDEV param
|
||||
* WMI_VDEV_PARAM_ENABLE_DISABLE_NAN_CONFIG_FEATURES
|
||||
* Acceptable values for this:
|
||||
* BIT(0): Allow DW configuration from framework in sync role.
|
||||
* If this is not set, firmware shall follow the spec/default behavior.
|
||||
* BIT(1) to BIT(31): Reserved
|
||||
*
|
||||
* Related: None
|
||||
*
|
||||
* Supported Feature: NAN
|
||||
*
|
||||
* Usage: External
|
||||
*
|
||||
* </ini>
|
||||
*/
|
||||
#define CFG_NAN_FEATURE_CONFIG CFG_INI_UINT( \
|
||||
"nan_feature_config", \
|
||||
0, \
|
||||
0xFFFF, \
|
||||
1, \
|
||||
CFG_VALUE_OR_DEFAULT, \
|
||||
"Enable the specified NAN features in firmware")
|
||||
|
||||
#ifdef WLAN_FEATURE_NAN
|
||||
#define CFG_NAN_DISC CFG(CFG_NAN_ENABLE) \
|
||||
CFG(CFG_NDP_KEEP_ALIVE_PERIOD) \
|
||||
@@ -255,6 +287,7 @@
|
||||
#define CFG_NAN_ALL CFG_NAN_DISC \
|
||||
CFG_NAN_DP \
|
||||
CFG(CFG_NDP_MAX_SESSIONS) \
|
||||
CFG(CFG_NDI_MAX_SUPPORT)
|
||||
CFG(CFG_NDI_MAX_SUPPORT) \
|
||||
CFG(CFG_NAN_FEATURE_CONFIG)
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user