qcacld-3.0: Relocate gEnableDebugLog ini to mlme component

Relocate gEnableDebugLog ini parameter to mlme component.

Change-Id: I5e021095c0acd65af47fb0dd3325200054888412
CRs-Fixed: 2324488
This commit is contained in:
Dundi Raviteja
2018-09-27 17:51:59 +05:30
committed by nshrivas
parent 0e3b592aed
commit f99ce0933b
12 changed files with 36 additions and 51 deletions

View File

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

View File

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

View File

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