wlan: Support for MTRACE.
This fix will move MTRACE funcionality from PE to VOSS
Change-Id: I901f139aa22ccf45ec080cff3ab7506384458251
CRs-Fixed: 592922
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index 0eae64f..626f188 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -113,6 +113,7 @@
#include "wlan_hdd_dev_pwr.h"
#include "qc_sap_ioctl.h"
#include "sme_Api.h"
+#include "vos_trace.h"
#ifdef CONFIG_HAS_EARLYSUSPEND
extern void hdd_suspend_wlan(struct early_suspend *wlan_suspend);
@@ -125,6 +126,7 @@
#define HDD_FINISH_ULA_TIME_OUT 800
+
extern int wlan_hdd_cfg80211_update_band(struct wiphy *wiphy, eCsrBand eBand);
int hdd_setBand_helper(struct net_device *dev, tANI_U8* ptr);
@@ -158,6 +160,7 @@
#define WE_ENABLE_STRICT_FCC_REG 10
#define WE_SET_MAX_TX_POWER_2_4 11
#define WE_SET_MAX_TX_POWER_5_0 12
+#define WE_MTRACE_SELECTIVE_MODULE_LOG_ENABLE_CMD 13
/* Private ioctls and their sub-ioctls */
#define WLAN_PRIV_SET_NONE_GET_INT (SIOCIWFIRSTPRIV + 1)
@@ -233,6 +236,8 @@
#define WE_TDLS_CONFIG_PARAMS 5
#endif
+#define WE_MTRACE_DUMP_CMD 8
+
#ifdef FEATURE_WLAN_TDLS
#undef MAX_VAR_ARGS
#define MAX_VAR_ARGS 10
@@ -4150,6 +4155,15 @@
break;
}
+ case WE_MTRACE_SELECTIVE_MODULE_LOG_ENABLE_CMD:
+ {
+ hddLog(LOG1, "%s: SELECTIVE_MODULE_LOG %d arg1",
+ __func__, set_value);
+ vosTraceEnable(set_value);
+
+ break;
+ }
+
case WE_ENABLE_STRICT_FCC_REG:
{
hdd_context_t *hddCtxt = WLAN_HDD_GET_CTX(pAdapter);
@@ -5081,6 +5095,18 @@
}
break;
+ case WE_MTRACE_DUMP_CMD:
+ {
+ hddLog(LOG1, "%s: MTRACE_DUMP code %d session %d count %d "
+ "bitmask_of_module %d ",
+ __func__, apps_args[0], apps_args[1], apps_args[2],
+ apps_args[3]);
+ vosTraceDumpAll((void*)hHal , apps_args[0], apps_args[1],
+ apps_args[2], apps_args[3]);
+
+ }
+ break;
+
case WE_MCC_CONFIG_CREDENTIAL :
{
cmd = 287; //Command should be updated if there is any change
@@ -7391,6 +7417,11 @@
0,
"setStrictFCCreg" },
+ { WE_MTRACE_SELECTIVE_MODULE_LOG_ENABLE_CMD,
+ IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,
+ 0,
+ "setdumplog" },
+
/* handlers for main ioctl */
{ WLAN_PRIV_SET_NONE_GET_INT,
0,
@@ -7614,6 +7645,12 @@
0,
"dump" },
+ /* handlers for sub-ioctl */
+ { WE_MTRACE_DUMP_CMD,
+ IW_PRIV_TYPE_INT | MAX_VAR_ARGS,
+ 0,
+ "dumplog" },
+
/* handlers for sub ioctl */
{
WE_MCC_CONFIG_CREDENTIAL,