From bde430efe629bff678fa2730e3ca979ea3898a4b Mon Sep 17 00:00:00 2001 From: Yeshwanth Sriram Guntuka Date: Wed, 25 Jul 2018 15:01:57 +0530 Subject: [PATCH] qcacld-3.0: Check for target ready before sending wmi command SAP stop is in progress when FW down event is received from platform driver. Vdev_stop command is not sent to firmware due to target ready check but same check is not present for self peer_delete command. This results in assert in firmware since vdev_stop command is not received before self peer_delete command. Fix is to set wmi_stopinprogress as part of wma shutdown notifier callback. Change-Id: I91fa6aaffe4f35b446a3c8748f168e83620bf4b0 CRs-Fixed: 2266786 --- core/wma/src/wma_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/wma/src/wma_main.c b/core/wma/src/wma_main.c index 0c1b4f7a2ba3..b57caa34bf39 100644 --- a/core/wma/src/wma_main.c +++ b/core/wma/src/wma_main.c @@ -1955,6 +1955,7 @@ static void wma_shutdown_notifier_cb(void *priv) qdf_event_set(&wma_handle->wma_resume_event); pmo_ucfg_psoc_wakeup_host_event_received(wma_handle->psoc); + wmi_stop(wma_handle->wmi_handle); msg.bodyptr = priv; msg.callback = wma_cleanup_vdev_resp_and_hold_req;