[qca-nss-drv] Wi-Fi Log

Change-Id: Ice79129733ee437f9e37b5c6550e041c4aca6198
Signed-off-by: Sachin Shashidhar <sshashid@codeaurora.org>
diff --git a/nss_wifi.c b/nss_wifi.c
index cffd3d3..ca60fd6 100644
--- a/nss_wifi.c
+++ b/nss_wifi.c
@@ -16,6 +16,7 @@
 
 #include "nss_tx_rx_common.h"
 #include "nss_wifi_stats.h"
+#include "nss_wifi_log.h"
 
 /*
  * nss_wifi_get_context()
@@ -41,6 +42,11 @@
 	BUG_ON(((ncm->interface < NSS_WIFI_INTERFACE0) || (ncm->interface > NSS_WIFI_INTERFACE2)));
 
 	/*
+	 * Trace messages.
+	 */
+	nss_wifi_log_rx_msg(ntm);
+
+	/*
 	 * Is this a valid request/response packet?
 	 */
 	if (ncm->type >= NSS_WIFI_MAX_MSG) {
@@ -111,6 +117,11 @@
 {
 	struct nss_cmn_msg *ncm = &msg->cm;
 
+	/*
+	 * Trace messages.
+	 */
+	nss_wifi_log_tx_msg(msg);
+
 	if (ncm->type > NSS_WIFI_MAX_MSG) {
 		nss_warning("%p: wifi message type out of range: %d", nss_ctx, ncm->type);
 		return NSS_TX_FAILURE;