Explorar el Código

qcacld-3.0: Fix wrong function call to get hdd_ctx

It should use function call cds_get_context(QDF_MODULE_ID_HDD) to
get hdd_ctx.

Change-Id: Iba53421d99cff8b78480246d2b18e108eb004f92
CRs-Fixed: 2055622
hqu hace 7 años
padre
commit
e52fdd610d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/hdd/src/wlan_hdd_main.c

@@ -9818,7 +9818,7 @@ void wlan_hdd_send_svc_nlink_msg(int radio, int type, void *data, int len)
 #ifdef FEATURE_WLAN_AUTO_SHUTDOWN
 void wlan_hdd_auto_shutdown_cb(void)
 {
-	hdd_context_t *hdd_ctx = cds_get_global_context();
+	hdd_context_t *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
 
 	if (!hdd_ctx)
 		return;