Переглянути джерело

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
Padma Raghunathan 5 роки тому
батько
коміт
297e63ab48
2 змінених файлів з 21 додано та 8 видалено
  1. 8 1
      cfg/inc/cfg_converged.h
  2. 13 7
      umac/cfr/dispatcher/inc/cfr_cfg.h

+ 8 - 1
cfg/inc/cfg_converged.h

@@ -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 */
 

+ 13 - 7
umac/cfr/dispatcher/inc/cfr_cfg.h

@@ -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)