wlan: hdd: Log the packet information in kmsg
Printing the packet information for tx/rx mgmt, action, EAPOL
and DHCP for debugging the connection issues.
A new ini variable is "gEnableDebugLog" added to
enable/disable these logs. By default this flag is disabled.
Also added an iwpriv command "setDbgLvl" to achieve the same.
Change-Id: Ic33f48912016b0be142c559de9e090778fde66cf
CRs-Fixed: 600142
diff --git a/CORE/HDD/inc/wlan_hdd_cfg.h b/CORE/HDD/inc/wlan_hdd_cfg.h
index 195542a..963c6b1 100644
--- a/CORE/HDD/inc/wlan_hdd_cfg.h
+++ b/CORE/HDD/inc/wlan_hdd_cfg.h
@@ -48,10 +48,6 @@
\brief Android WLAN Adapter Configuration functions
- Copyright 2008 (c) Qualcomm, Incorporated.
- All Rights Reserved.
- Qualcomm Confidential and Proprietary.
-
==========================================================================*/
/* $HEADER$ */
@@ -2036,6 +2032,19 @@
#define CFG_CTS2S_DURING_BTC_SCO_DEFAULT WNI_CFG_BTC_CTS2S_DURING_SCO_STADEF
#define CFG_CTS2S_DURING_BTC_SCO_MIN WNI_CFG_BTC_CTS2S_DURING_SCO_STAMIN
#define CFG_CTS2S_DURING_BTC_SCO_MAX WNI_CFG_BTC_CTS2S_DURING_SCO_STAMAX
+
+/*
+ * Connection related log Enable/Disable.
+ * 0x1 - Enable mgmt pkt logs (no probe req/rsp).
+ * 0x2 - Enable EAPOL pkt logs.
+ * 0x4 - Enable DHCP pkt logs.
+ * 0x0 - Disable all the above connection related logs.
+ */
+#define CFG_ENABLE_DEBUG_CONNECT_ISSUE "gEnableDebugLog"
+#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MIN (0)
+#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_MAX (0xFF)
+#define CFG_ENABLE_DEBUG_CONNECT_ISSUE_DEFAULT (0)
+
/*---------------------------------------------------------------------------
Type declarations
-------------------------------------------------------------------------*/
@@ -2459,6 +2468,7 @@
v_U32_t gAsdRTTRssiHystThreshold;
v_BOOL_t debugP2pRemainOnChannel;
v_U32_t cfgBtcCTS2SduringSCO;
+ v_U32_t gEnableDebugLog;
} hdd_config_t;
/*---------------------------------------------------------------------------
Function declarations and documenation