wlan: logger thread implemenation for frame logging

Adding support for:
1. queue/dequeue of vos pkt in logger thread.
2. Limit max number of pkts in a queue.
3. Detach skb and forward to userspace app
4. flush pkts in queue during rmmod/SSR
5. pkt_type will be provided to logger thread

Change-Id: If3435b8e2c38644a125316265f70e1603bc6e273
CRs-Fixed: 808160
diff --git a/CORE/HDD/src/wlan_hdd_early_suspend.c b/CORE/HDD/src/wlan_hdd_early_suspend.c
index 0907dfc..d488f35 100644
--- a/CORE/HDD/src/wlan_hdd_early_suspend.c
+++ b/CORE/HDD/src/wlan_hdd_early_suspend.c
@@ -63,6 +63,7 @@
 #include <linux/semaphore.h>
 #include <wlan_hdd_hostapd.h>
 #include "cfgApi.h"
+#include <wlan_logging_sock_svc.h>
 
 #ifdef WLAN_BTAMP_FEATURE
 #include "bapApi.h"
@@ -2031,6 +2032,9 @@
    vos_sched_flush_mc_mqs(vosSchedContext);
    vos_sched_flush_tx_mqs(vosSchedContext);
    vos_sched_flush_rx_mqs(vosSchedContext);
+#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
+   wlan_logging_flush_pkt_queue();
+#endif
 
    /* Deinit all the TX and MC queues */
    vos_sched_deinit_mqs(vosSchedContext);