Преглед изворни кода

qcacmn: Fix host panic due to missing WMI service handles

WMI service handle is not attached for all Pdev with recent
WMI changes. Fix host panic due to missing WMI service handles
for all Pdev.

Change-Id: Ic6107120ea4a49e49b86ebbfe385e440de3f49a9
Kris Muthusamy пре 7 година
родитељ
комит
7b5130c6ce
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      wmi/src/wmi_unified.c

+ 2 - 1
wmi/src/wmi_unified.c

@@ -2034,11 +2034,13 @@ static inline void wmi_target_params_init(struct wmi_soc *soc,
 {
 	wmi_handle->pdev_param = soc->pdev_param;
 	wmi_handle->vdev_param = soc->vdev_param;
+	wmi_handle->services = soc->services;
 }
 #else
 static inline void wmi_target_params_init(struct wmi_soc *soc,
 				struct wmi_unified *wmi_handle)
 {
+	wmi_handle->services = soc->services;
 }
 #endif
 
@@ -2147,7 +2149,6 @@ void *wmi_unified_attach(void *scn_handle,
 	wmi_handle->ctx = soc->ctx;
 	wmi_handle->wmi_events = soc->wmi_events;
 	wmi_target_params_init(soc, wmi_handle);
-	wmi_handle->services = soc->services;
 	wmi_handle->scn_handle = scn_handle;
 	soc->scn_handle = scn_handle;
 	qdf_atomic_init(&wmi_handle->pending_cmds);