[qca-nss-drv] DTLS logging.

Signed-off-by: Sachin Shashidhar <sshashid@codeaurora.org>
Change-Id: Ia9958747b25ae92e385acf51775e2a9ebbb30c6f
diff --git a/nss_dtls.c b/nss_dtls.c
index ec8b2be..f3aedc5 100644
--- a/nss_dtls.c
+++ b/nss_dtls.c
@@ -16,6 +16,7 @@
 
 #include "nss_tx_rx_common.h"
 #include "nss_dtls_stats.h"
+#include "nss_dtls_log.h"
 
 #define NSS_DTLS_TX_TIMEOUT 3000 /* 3 Seconds */
 
@@ -196,6 +197,11 @@
 	nss_core_log_msg_failures(nss_ctx, ncm);
 
 	/*
+	 * Trace messages.
+	 */
+	nss_dtls_log_rx_msg(ntm);
+
+	/*
 	 * callback
 	 */
 	cb = (nss_dtls_msg_callback_t)ncm->cb;
@@ -278,6 +284,11 @@
 		return NSS_TX_FAILURE;
 	}
 
+	/*
+	 * Trace messages.
+	 */
+	nss_dtls_log_tx_msg(msg);
+
 	return nss_core_send_cmd(nss_ctx, msg, sizeof(*msg), NSS_NBUF_PAYLOAD_SIZE);
 }
 EXPORT_SYMBOL(nss_dtls_tx_msg);