qcacld-3.0: Add additional HT Caps related INI Items to MLME CFG

Add the following HT Caps related INI/CFG items to MLME component.

gShortPreamble, CFG_HT_AMPDU_PARAMS, CFG_EXT_HT_CAP_INFO,
CFG_HT_INFO_FIELD, gEnableAMPDUPS and gMaxAmsduNum.

Change-Id: I019961016a2f0e39c7c62066c04788d3bd3d37e7
CRs-Fixed: 2318579
This commit is contained in:
Vignesh Viswanathan
2018-11-02 18:43:42 +05:30
committed by nshrivas
parent 56b4f86e48
commit 9b449ad2e1
6 changed files with 585 additions and 10 deletions

View File

@@ -173,6 +173,203 @@
CFG_VALUE_OR_DEFAULT, \
"HT cap info")
/*
* <ini>
* gShortPreamble - Set Short Preamble
* @Min: 0
* @Max: 1
* @Default: 1
*
* This ini is used to set default short Preamble
*
* Related: None
*
* Supported Feature: STA
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_SHORT_PREAMBLE CFG_INI_BOOL( \
"gShortPreamble", \
1, \
"Short Preamble")
#define CFG_HT_AMPDU_PARAMS CFG_UINT( \
"ht_ampdu_params", \
0, \
255, \
0, \
CFG_VALUE_OR_DEFAULT, \
"HT AMPDU Params")
#define CFG_EXT_HT_CAP_INFO CFG_UINT( \
"ext_ht_cap_info", \
0, \
65535, \
1024, \
CFG_VALUE_OR_DEFAULT, \
"HT Ext Cap Info")
#define CFG_HT_INFO_FIELD_1 CFG_UINT( \
"ht_info_field_1", \
0, \
255, \
15, \
CFG_VALUE_OR_DEFAULT, \
"HT Info Field 1")
#define CFG_HT_INFO_FIELD_2 CFG_UINT( \
"ht_info_field_2", \
0, \
65535, \
0, \
CFG_VALUE_OR_DEFAULT, \
"HT Info Field 2")
#define CFG_HT_INFO_FIELD_3 CFG_UINT( \
"ht_info_field_3", \
0, \
65535, \
0, \
CFG_VALUE_OR_DEFAULT, \
"HT Info Field 3")
/*
* <ini>
* gEnableHtSMPS - Enable the SM Power Save
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to enable SM Power Save
*
* Related: None
*
* Supported Feature: STA
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_ENABLE_HT_SMPS CFG_INI_BOOL( \
"gEnableHtSMPS", \
0, \
"Enable HT SM PowerSave")
/*
* <ini>
* gHtSMPS - SMPS Mode
* @Min: 0
* @Max: 3
* @Default: 3
*
* This ini is used to set default SM Power Save Antenna mode
* 0 - Static
* 1 - Dynamic
* 2 - Reserved/Invalid
* 3 - Disabled
*
* Related: None
*
* Supported Feature: STA
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_HT_SMPS_MODE CFG_INI_UINT( \
"gHtSMPS", \
0, \
3, \
3, \
CFG_VALUE_OR_DEFAULT, \
"HT SM Power Save Config")
/*
* <ini>
* gMaxAmsduNum - Max number of MSDU's in aggregate
* @Min: 0
* @Max: 3
* @Default: 1
* gMaxAmsduNum is the number of MSDU's transmitted in the 11n aggregate
* frame. Setting it to a value larger than 1 enables transmit aggregation.
* It is a PHY parameter that applies to all vdev's in firmware.
*
* Supported Feature: 11n aggregation
*
* Usage: Internal
*
* </ini>
*/
#define CFG_MAX_AMSDU_NUM CFG_INI_UINT( \
"gMaxAmsduNum", \
0, \
3, \
1, \
CFG_VALUE_OR_DEFAULT, \
"Max AMSDU Number")
/*
* <ini>
* gMaxRxAmpduFactor - Provide the maximum ampdu factor.
* @Min: 0
* @Max: 3
* @Default: 3
*
* This ini is used to set default maxampdu factor
*
* Related: None
*
* Supported Feature: STA
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_MAX_RX_AMPDU_FACTOR CFG_INI_UINT( \
"gMaxRxAmpduFactor", \
0, \
3, \
3, \
CFG_VALUE_OR_DEFAULT, \
"Max Rx AMPDU Factor")
/*
* <ini>
* ght_mpdu_density - Configuration option for HT MPDU density
* @Min: 0
* @Max: 7
* @Default: 7
*
* This ini is used to set default MDPU Density
*
* Related: None
*
* Supported Feature: STA
*
* Usage: Internal/External
*
* As per (Table 8-125 802.11-2012)
* 0 for no restriction
* 1 for 1/4 micro sec
* 2 for 1/2 micro sec
* 3 for 1 micro sec
* 4 for 2 micro sec
* 5 for 4 micro sec
* 6 for 8 micro sec
* 7 for 16 micro sec
*
* </ini>
*/
#define CFG_MPDU_DENSITY CFG_INI_UINT( \
"ght_mpdu_density", \
0, \
7, \
7, \
CFG_VALUE_OR_DEFAULT, \
"MPDU Density")
#define CFG_HT_CAPS_ALL \
CFG(CFG_HT_CAP_INFO) \
CFG(CFG_TX_LDPC_ENABLE) \
@@ -180,6 +377,17 @@
CFG(CFG_TX_STBC_ENABLE) \
CFG(CFG_RX_STBC_ENABLE) \
CFG(CFG_SHORT_GI_20MHZ) \
CFG(CFG_SHORT_GI_40MHZ)
CFG(CFG_SHORT_GI_40MHZ) \
CFG(CFG_SHORT_PREAMBLE) \
CFG(CFG_HT_AMPDU_PARAMS) \
CFG(CFG_EXT_HT_CAP_INFO) \
CFG(CFG_HT_INFO_FIELD_1) \
CFG(CFG_HT_INFO_FIELD_2) \
CFG(CFG_HT_INFO_FIELD_3) \
CFG(CFG_ENABLE_HT_SMPS) \
CFG(CFG_HT_SMPS_MODE) \
CFG(CFG_MAX_AMSDU_NUM) \
CFG(CFG_MAX_RX_AMPDU_FACTOR) \
CFG(CFG_MPDU_DENSITY)
#endif /* __CFG_MLME_HT_CAPS_H */