qcacld-3.0: Defines five WNI cfg and one INI cfg

Based on new cfg framework, defines below five WNI cfg items and one
INI cfg:
 - WNI_CFG_APSD_ENABLED
 - WNI_CFG_OBSS_DETECTION_OFFLOAD
 - WNI_CFG_OBSS_COLOR_COLLISION_OFFLOAD
 - WNI_CFG_CURRENT_TX_POWER_LEVEL
 - WNI_CFG_LOCAL_POWER_CONSTRAINT
 - gTxPowerCap

Change-Id: I5546ea7a4efd142b546ad10a40712d40d2d3ea0d
CRs-Fixed: 2375857
This commit is contained in:
Wu Gao
2019-01-04 15:44:35 +08:00
committed by nshrivas
parent 9cb76b9c42
commit 784b25e2a1
7 changed files with 240 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -110,11 +110,69 @@
CFG_VALUE_OR_DEFAULT, \
"power limit 5g")
/*
* <ini>
* gTxPowerCap - WLAN max tx power
* @Min: 0
* @Max: 128
* @Default: 128
*
* This ini is used to configure the device max tx power.
*
* Related: None.
*
* Supported Feature: Concurrency
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_MAX_TX_POWER CFG_INI_UINT( \
"gTxPowerCap", \
0, \
128, \
128, \
CFG_VALUE_OR_DEFAULT, \
"WLAN max tx power")
/*
* <cfg>
* current_tx_power_level - current tx power level
* @Min: 0
* @Max: 128
* @Default: 27
*/
#define CFG_CURRENT_TX_POWER_LEVEL CFG_UINT( \
"current_tx_power_level", \
0, \
128, \
27, \
CFG_VALUE_OR_DEFAULT, \
"current tx power level")
/*
* <cfg>
* local_power_constraint - local power constraint
* @Min: 0
* @Max: 255
* @Default: 0
*/
#define CFG_LOCAL_POWER_CONSTRAINT CFG_UINT( \
"local_power_constraint", \
0, \
255, \
0, \
CFG_VALUE_OR_DEFAULT, \
"local power constraint")
#define CFG_MLME_POWER_ALL \
CFG(CFG_MAX_TX_POWER_2_4) \
CFG(CFG_MAX_TX_POWER_5) \
CFG(CFG_POWER_USAGE) \
CFG(CFG_SET_TXPOWER_LIMIT2G) \
CFG(CFG_SET_TXPOWER_LIMIT5G)
CFG(CFG_SET_TXPOWER_LIMIT5G) \
CFG(CFG_MAX_TX_POWER) \
CFG(CFG_CURRENT_TX_POWER_LEVEL) \
CFG(CFG_LOCAL_POWER_CONSTRAINT)
#endif /* __CFG_MLME_POWER_H */