소스 검색

qcacld-3.0: Relocate gEnableDebugLog ini to mlme component

Relocate gEnableDebugLog ini parameter to mlme component.

Change-Id: I5e021095c0acd65af47fb0dd3325200054888412
CRs-Fixed: 2324488
Dundi Raviteja 6 년 전
부모
커밋
0d67e516f4
3개의 변경된 파일33개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      mlme/core/src/wlan_mlme_main.c
  2. 30 0
      mlme/dispatcher/inc/cfg_mlme_generic.h
  3. 2 0
      mlme/dispatcher/inc/wlan_mlme_public_struct.h

+ 1 - 0
mlme/core/src/wlan_mlme_main.c

@@ -188,6 +188,7 @@ static void mlme_init_generic_cfg(struct wlan_objmgr_psoc *psoc,
 		cfg_get(psoc, CFG_OPTIMIZE_CA_EVENT);
 	gen->fw_timeout_crash =
 		cfg_get(psoc, CFG_CRASH_FW_TIMEOUT);
+	gen->debug_packet_log = cfg_get(psoc, CFG_ENABLE_DEBUG_PACKET_LOG);
 	mlme_init_pmf_cfg(psoc, gen);
 	mlme_init_lpass_support_cfg(psoc, gen);
 }

+ 30 - 0
mlme/dispatcher/inc/cfg_mlme_generic.h

@@ -443,7 +443,37 @@
 	CFG_VALUE_OR_DEFAULT, \
 	"ITO Repeat Count")
 
+/*
+ * <ini>
+ * gEnableDebugLog - Enable/Disable the Connection related logs
+ * @Min: 0
+ * @Max: 0xFF
+ * @Default: 0x0F
+ *
+ * This ini is used to enable/disable the connection related logs
+ * 0x1 - Enable mgmt pkt logs (excpet probe req/rsp, beacons).
+ * 0x2 - Enable EAPOL pkt logs.
+ * 0x4 - Enable DHCP pkt logs.
+ * 0x8 - Enable mgmt action frames logs.
+ * 0x0 - Disable all the above connection related logs.
+ * The default value of 0x0F will enable all the above logs
+ *
+ * Related: None
+ *
+ * Supported Feature: STA
+ *
+ * Usage: Internal/External
+ *
+ * </ini>
+ */
+#define CFG_ENABLE_DEBUG_PACKET_LOG CFG_INI_UINT( \
+				"gEnableDebugLog", \
+				0, 0xFF, 0x0F, \
+				CFG_VALUE_OR_DEFAULT, \
+				"Enable debug log")
+
 #define CFG_GENERIC_ALL \
+	CFG(CFG_ENABLE_DEBUG_PACKET_LOG) \
 	CFG(CFG_PMF_SA_QUERY_MAX_RETRIES) \
 	CFG(CFG_PMF_SA_QUERY_RETRY_INTERVAL) \
 	CFG(CFG_RTT3_ENABLE) \

+ 2 - 0
mlme/dispatcher/inc/wlan_mlme_public_struct.h

@@ -628,6 +628,7 @@ struct wlan_mlme_chainmask {
  * @fatal_event_trigger: Enable/Disable Fatal Events Trigger
  * @optimize_ca_event: Enable/Disable Optimization of CA events
  * @fw_timeout_crash: Enable/Disable FW Timeout Crash *
+ * @debug_packet_log: Debug packet log flags
  */
 struct wlan_mlme_generic {
 	enum band_info band_capability;
@@ -649,6 +650,7 @@ struct wlan_mlme_generic {
 	bool fatal_event_trigger;
 	bool optimize_ca_event;
 	bool fw_timeout_crash;
+	uint8_t debug_packet_log;
 };
 
 /*