summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeelansh Mittal <neelansh@qti.qualcomm.com>2014-09-30 11:11:56 +0530
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-09-30 13:26:53 -0700
commit2d77c33c67caab3a8d998020aa81806bb1e5f969 (patch)
tree5afc12ea75f01f365fb859e7a6d0dd964c42f145
parent551443fd5a98ffb83fec7ed8bc3fe0fe00cd20a0 (diff)
wlan: Disabling logging service before nl service exit
Disabling logging service before nl service exit. Thus avoiding the usage of closed nl sockets. Change-Id: I7aea77094df6ce004cd5504557617e3c56cccce7 CRs-Fixed: 724726
-rwxr-xr-xCORE/HDD/src/wlan_hdd_main.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 6e2ea8089c68..3ed79909a39c 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -10872,6 +10872,14 @@ void hdd_wlan_exit(hdd_context_t *pHddCtx)
//Clean up HDD Nlink Service
send_btc_nlink_msg(WLAN_MODULE_DOWN_IND, 0);
+
+#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
+ if (pConfig && pConfig->wlanLoggingEnable)
+ {
+ wlan_logging_sock_deactivate_svc();
+ }
+#endif
+
#ifdef WLAN_KD_READY_NOTIFIER
cnss_diag_notify_wlan_close();
nl_srv_exit(pHddCtx->ptt_pid);
@@ -10880,12 +10888,6 @@ void hdd_wlan_exit(hdd_context_t *pHddCtx)
#endif /* WLAN_KD_READY_NOTIFIER */
-#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
- if (pConfig && pConfig->wlanLoggingEnable) {
- wlan_logging_sock_deactivate_svc();
- }
-#endif
-
hdd_close_all_adapters( pHddCtx );
#ifdef IPA_OFFLOAD