qcacld-3.0: Fix the stability issue in wlan stop modules

wait for single event in umac_stop instead of wait for event
completion in which the events can be forcefully get reset
in the event of SSR.

Change-Id: I1925b820c7c292acbc019b058ff51297ad800b88
CRs-Fixed: 2289353
This commit is contained in:
Kiran Kumar Lokere 2018-08-02 18:31:56 -07:00 • committed by nshrivas
commit 782bb6cc73

View file

@ -111,8 +111,7 @@ QDF_STATUS umac_stop(void)
if (!QDF_IS_STATUS_SUCCESS(qdf_status))
qdf_status = QDF_STATUS_E_BADMSG;
qdf_status = qdf_wait_for_event_completion(&g_stop_evt,
SYS_STOP_TIMEOUT);
qdf_status = qdf_wait_single_event(&g_stop_evt, SYS_STOP_TIMEOUT);
QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status));
qdf_status = qdf_event_destroy(&g_stop_evt);