Commit c56e1c3e authored by Ryan Hsu's avatar Ryan Hsu Committed by Madan Mohan Koyyalamudi
Browse files

qcacld: hdd: reset vos event when stop bss

This event is set when started bss, but not getting reset.
Then we'll not have enough time to stop the bss, reset the event and
wait for the stop_bss signal the event to complete it.

Change-Id: I62d0b9426e25316121b824ac1ef6a886225c8797
CRs-fixed: 715396
parent 477440a2
......@@ -5805,14 +5805,16 @@ static int wlan_hdd_cfg80211_stop_ap (struct wiphy *wiphy,
 
mutex_lock(&pHddCtx->sap_lock);
if (test_bit(SOFTAP_BSS_STARTED, &pAdapter->event_flags)) {
hdd_hostapd_state_t *pHostapdState =
WLAN_HDD_GET_HOSTAP_STATE_PTR(pAdapter);
vos_event_reset(&pHostapdState->vosEvent);
#ifdef WLAN_FEATURE_MBSSID
status = WLANSAP_StopBss(WLAN_HDD_GET_SAP_CTX_PTR(pAdapter));
#else
status = WLANSAP_StopBss(pHddCtx->pvosContext);
#endif
if (VOS_IS_STATUS_SUCCESS(status)) {
hdd_hostapd_state_t *pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(pAdapter);
status = vos_wait_single_event(&pHostapdState->vosEvent, 10000);
 
if (!VOS_IS_STATUS_SUCCESS(status)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment