summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushnim Bhattacharyya <tushnimb@qca.qualcomm.com>2014-01-29 17:21:20 -0800
committerPrakash Dhavali <pdhavali@qca.qualcomm.com>2014-02-02 15:10:26 -0800
commit61c95a6f7e3207edd00ed03fd7af62883569def7 (patch)
treefd1a385ba33e847693bd3b07ac2f4dd2f1c89dc6
parentb43229de0632e181835cdb8b0bf15870d2ef1227 (diff)
wlan-cld: wma: 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: Id41af78e036eb6609200d4cd72adff47bf7a25bb CRs-Fixed: 600142
-rw-r--r--CORE/SERVICES/WMA/wma.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index 39e06b34324f..3000a7eb9518 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -16497,9 +16497,10 @@ VOS_STATUS WDA_TxPacket(void *wma_context, void *tx_frame, u_int16_t frmLen,
void *pPacket = NULL;
u_int16_t newFrmLen = 0;
struct wma_txrx_node *iface = &wma_handle->interfaces[vdev_id];
+#endif /* WLAN_FEATURE_11W */
tpAniSirGlobal pMac = (tpAniSirGlobal)vos_get_context(VOS_MODULE_ID_PE,
wma_handle->vos_context);
-#endif /* WLAN_FEATURE_11W */
+
/* Get the vdev handle from vdev id */
txrx_vdev = wma_handle->interfaces[vdev_id].handle;
@@ -16514,12 +16515,10 @@ VOS_STATUS WDA_TxPacket(void *wma_context, void *tx_frame, u_int16_t frmLen,
return VOS_STATUS_E_FAILURE;
}
-#ifdef WLAN_FEATURE_11W
if(!pMac) {
WMA_LOGE("pMac Handle is NULL");
return VOS_STATUS_E_FAILURE;
}
-#endif /* WLAN_FEATURE_11W */
/*
* Currently only support to
* send 80211 Mgmt and 80211 Data are added.
@@ -16709,6 +16708,14 @@ VOS_STATUS WDA_TxPacket(void *wma_context, void *tx_frame, u_int16_t frmLen,
} else {
chanfreq = 0;
}
+ if (pMac->fEnableDebugLog & 0x1) {
+ if ((pFc->type == SIR_MAC_MGMT_FRAME) &&
+ (pFc->subType != SIR_MAC_MGMT_PROBE_REQ) &&
+ (pFc->subType != SIR_MAC_MGMT_PROBE_RSP)) {
+ WMA_LOGE("TX MGMT - Type %hu, SubType %hu",
+ pFc->type, pFc->subType);
+ }
+ }
/* Hand over the Tx Mgmt frame to TxRx */
status = wdi_in_mgmt_send(txrx_vdev, tx_frame, tx_frm_index, use_6mbps, chanfreq);