From 7b5130c6ce0ca1b5098752cc99990acc003e36c6 Mon Sep 17 00:00:00 2001 From: Kris Muthusamy Date: Fri, 26 Jan 2018 16:18:37 -0800 Subject: [PATCH] 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 --- wmi/src/wmi_unified.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c index ec22a3a9c1..eb06d453eb 100644 --- a/wmi/src/wmi_unified.c +++ b/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);