From ae1507637a004c109d1e878d0aa434377ddaa85a Mon Sep 17 00:00:00 2001 From: phadiman Date: Tue, 13 Nov 2018 12:04:07 +0530 Subject: [PATCH] qcacmn: Set WMI Endpoint as Async Conditionally set WMI enpoint as async only for WIN and revert it for MCL Change-Id: I8969fffb4ba72909839baea2bdd12723665a8a4f --- wmi_unified.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wmi_unified.c b/wmi_unified.c index c8cbe5cf75..f6ab4595ac 100644 --- a/wmi_unified.c +++ b/wmi_unified.c @@ -2554,6 +2554,7 @@ void *wmi_unified_attach(void *scn_handle, } wmi_handle->soc = soc; wmi_handle->soc->soc_idx = param->soc_id; + wmi_handle->soc->is_async_ep = param->is_async_ep; wmi_handle->event_id = soc->event_id; wmi_handle->event_handler = soc->event_handler; wmi_handle->ctx = soc->ctx; @@ -2802,7 +2803,8 @@ static int wmi_connect_pdev_htc_service(struct wmi_soc *soc, return status; } - htc_set_async_ep(soc->htc_handle, response.Endpoint, 1); + if (soc->is_async_ep) + htc_set_async_ep(soc->htc_handle, response.Endpoint, true); soc->wmi_endpoint_id[pdev_idx] = response.Endpoint; soc->max_msg_len[pdev_idx] = response.MaxMsgLength;