Prechádzať zdrojové kódy

qcacld-3.0: Send WLAN off event to WLS at the end of WLAN off steps

send WLAN off event to WLS at the end of WLAN off steps
to make sure WLAN is really off when WLS calls 'glink deinit'.

Change-Id: I29e15d51ec306071fc9f5ff7e3565c75814944e8
CRs-Fixed: 985226
Yuanyuan Liu 8 rokov pred
rodič
commit
3e918e5ca3

+ 2 - 4
core/hdd/src/wlan_hdd_main.c

@@ -4570,6 +4570,8 @@ void hdd_wlan_exit(hdd_context_t *hdd_ctx)
 	wiphy_unregister(wiphy);
 	wlan_hdd_cfg80211_deinit(wiphy);
 
+	wlan_hdd_send_status_pkg(NULL, NULL, 0, 0);
+
 	hdd_exit_netlink_services(hdd_ctx);
 	mutex_destroy(&hdd_ctx->iface_change_lock);
 	hdd_context_destroy(hdd_ctx);
@@ -4591,10 +4593,6 @@ void __hdd_wlan_exit(void)
 	/* Check IPA HW Pipe shutdown */
 	hdd_ipa_uc_force_pipe_shutdown(hdd_ctx);
 
-#ifdef WLAN_FEATURE_LPSS
-	wlan_hdd_send_status_pkg(NULL, NULL, 0, 0);
-#endif
-
 	memdump_deinit();
 
 	/* Do all the cleanup before deregistering the driver */

+ 2 - 2
core/hdd/src/wlan_hdd_power.c

@@ -1305,8 +1305,6 @@ QDF_STATUS hdd_wlan_shutdown(void)
 
 	hdd_alert("WLAN driver shutting down!");
 
-	wlan_hdd_send_status_pkg(NULL, NULL, 0, 0);
-
 	/* If SSR never completes, then do kernel panic. */
 	hdd_ssr_timer_init();
 	hdd_ssr_timer_start(HDD_SSR_BRING_UP_TIME);
@@ -1352,6 +1350,8 @@ QDF_STATUS hdd_wlan_shutdown(void)
 	wlansap_global_deinit();
 	hdd_wlan_stop_modules(pHddCtx, true);
 
+	wlan_hdd_send_status_pkg(NULL, NULL, 0, 0);
+
 	hdd_alert("WLAN driver shutdown complete");
 	return QDF_STATUS_SUCCESS;
 }