qcacmn: Add support to disable CFR through INI

Add option to disable cfr for a pdev through INI.
Since INI is per psoc, bitmap is used to indicate
the set of PDEVs for which CFR needs to be disabled.

Change-Id: Iaff24295c8c3ec702647db24961395b8a7ecf8c4
CRs-Fixed: 2671620
This commit is contained in:
Padma Raghunathan
2020-04-20 15:09:15 +05:30
committed by nshrivas
parent 6b17c700d4
commit 297e63ab48
2 changed files with 21 additions and 8 deletions

View File

@@ -38,6 +38,11 @@
#else
#define CFG_DCS_ALL
#endif
#ifdef WLAN_CFR_ENABLE
#include "cfr_cfg.h"
#else
#define CFG_CFR_ALL
#endif
#define CFG_CONVERGED_ALL \
CFG_SCAN_ALL \
@@ -46,7 +51,9 @@
CFG_GREEN_AP_ALL \
CFG_SPECTRAL_ALL \
CFG_HIF \
CFG_DCS_ALL
CFG_DCS_ALL \
CFG_CFR_ALL
#endif /* __CFG_CONVERGED_H */

View File

@@ -24,24 +24,30 @@
/*
* <ini>
* cfr_disable - disable channel frequence response(CFR) feature
* cfr_disable - Bitmap denoting the PDEVs for which CFR needs to be
* disabled
* @Min: 0
* @Max: 1
* @Max: Bitmap with no. of set bits equal to total no. of PDEVs in the SOC
* @Default: 0
*
* This ini is used to disable cfr feature.
* This ini is used to disable CFR feature for PDEV.
*
* Related: None
*
* Supported Feature: cfr
* Supported Feature: CFR
*
* Usage: External
*
* </ini>
*/
#define CFG_CFR_DISABLE \
CFG_INI_BOOL("cfr_disable", false, \
"CFR disable")
#define CFG_CFR_DISABLE\
CFG_INI_UINT("cfr_disable", \
0, \
0x7, \
0, \
CFG_VALUE_OR_DEFAULT, \
"cfr disable bitmap")
#define CFG_CFR_ALL \
CFG(CFG_CFR_DISABLE)