瀏覽代碼

qcacld-3.0: Refactor CFG item

Refactor CFG item CFG_ENABLE_UNIT_TEST_FRAMEWORK

Change-Id: Ie140e79ced10d034a6f3832b869c8c9aba21170f
CRs-Fixed: 2381032
Sandeep Puligilla 6 年之前
父節點
當前提交
efeb4a9451
共有 4 個文件被更改,包括 32 次插入24 次删除
  1. 30 0
      core/hdd/inc/hdd_config.h
  2. 0 16
      core/hdd/inc/wlan_hdd_cfg.h
  3. 0 8
      core/hdd/src/wlan_hdd_cfg.c
  4. 2 0
      core/hdd/src/wlan_hdd_main.c

+ 30 - 0
core/hdd/inc/hdd_config.h

@@ -1061,6 +1061,7 @@ enum hdd_wext_control {
 #endif
 
 /*
+ * <ini>
  * gEnableRTTsupport
  *
  * @Min: 0 - Disabled
@@ -1068,6 +1069,14 @@ enum hdd_wext_control {
  * @Default: 1 - Enabled
  *
  * The param is used to enable/disable support for RTT
+ *
+ * Related: None.
+ *
+ * Supported Feature: RTT
+ *
+ * Usage: Internal/External
+ *
+ * </ini>
  */
 #define CFG_ENABLE_RTT_SUPPORT CFG_INI_BOOL( \
 		"gEnableRTTSupport", \
@@ -1097,6 +1106,26 @@ enum hdd_wext_control {
 		1, \
 		"Iface combination advertising")
 
+/*
+ * <ini>
+ * gEnableUnitTestFramework - Enable/Disable unit test framework
+ * @Min: 0
+ * @Max: 1
+ * @Default: 0
+ *
+ * Related: None
+ *
+ * Supported Feature: unit test framework
+ *
+ * Usage: Internal (only for dev and test team)
+ *
+ * </ini>
+ */
+#define CFG_ENABLE_UNIT_TEST_FRAMEWORK CFG_INI_BOOL( \
+			"gEnableUnitTestFramework", \
+			0, \
+			"Enable/Disable unit test framework")
+
 #define CFG_HDD_ALL \
 	CFG_ENABLE_PACKET_LOG_ALL \
 	CFG_ENABLE_RUNTIME_PM_ALL \
@@ -1122,6 +1151,7 @@ enum hdd_wext_control {
 	CFG_ENABLE_MTRACE_ALL \
 	CFG(CFG_ENABLE_RAMDUMP_COLLECTION) \
 	CFG(CFG_ENABLE_RTT_SUPPORT) \
+	CFG(CFG_ENABLE_UNIT_TEST_FRAMEWORK) \
 	CFG(CFG_INTERFACE_CHANGE_WAIT) \
 	CFG(CFG_INFORM_BSS_RSSI_RAW) \
 	CFG(CFG_MULTICAST_HOST_FW_MSGS) \

+ 0 - 16
core/hdd/inc/wlan_hdd_cfg.h

@@ -400,22 +400,6 @@ enum hdd_dot11_mode {
 
 #endif
 
-/*
- * <ini>
- * gEnableUnitTestFramework - Enable/Disable unit test framework
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * Usage: Internal (only for dev and test team)
- *
- * </ini>
- */
-#define CFG_ENABLE_UNIT_TEST_FRAMEWORK_NAME    "gEnableUnitTestFramework"
-#define CFG_ENABLE_UNIT_TEST_FRAMEWORK_MIN     (0)
-#define CFG_ENABLE_UNIT_TEST_FRAMEWORK_MAX     (1)
-#define CFG_ENABLE_UINT_TEST_FRAMEWORK_DEFAULT (0)
-
 /*
  * <ini>
  * gEnableChangeChannelBandWidth - Enable/Disable change

+ 0 - 8
core/hdd/src/wlan_hdd_cfg.c

@@ -144,14 +144,6 @@ struct reg_table_entry g_registry_table[] = {
 		     CFG_ENABLE_11D_IN_WORLD_MODE_MIN,
 		     CFG_ENABLE_11D_IN_WORLD_MODE_MAX),
 
-	REG_VARIABLE(CFG_ENABLE_UNIT_TEST_FRAMEWORK_NAME,
-		     WLAN_PARAM_Integer,
-		     struct hdd_config, is_unit_test_framework_enabled,
-		     VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
-		     CFG_ENABLE_UINT_TEST_FRAMEWORK_DEFAULT,
-		     CFG_ENABLE_UNIT_TEST_FRAMEWORK_MIN,
-		     CFG_ENABLE_UNIT_TEST_FRAMEWORK_MAX),
-
 	REG_VARIABLE(CFG_CHANGE_CHANNEL_BANDWIDTH_NAME,
 		     WLAN_PARAM_Integer,
 		     struct hdd_config, enable_change_channel_bandwidth,

+ 2 - 0
core/hdd/src/wlan_hdd_main.c

@@ -9512,6 +9512,8 @@ static void hdd_cfg_params_init(struct hdd_context *hdd_ctx)
 			      CFG_ACTION_OUI_DISABLE_AGGRESSIVE_TX),
 			      ACTION_OUI_MAX_STR_LEN);
 	config->enable_rtt_support = cfg_get(psoc, CFG_ENABLE_RTT_SUPPORT);
+	config->is_unit_test_framework_enabled =
+			cfg_get(psoc, CFG_ENABLE_UNIT_TEST_FRAMEWORK);
 
 	hdd_init_vc_mode_cfg_bitmap(config, psoc);
 	hdd_init_runtime_pm(config, psoc);