summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hsu <ryanhsu@qca.qualcomm.com>2014-08-26 08:38:04 -0700
committerPitani Venkata Rajesh Kumar <c_vpitan@qti.qualcomm.com>2014-08-28 13:23:54 +0530
commita9cb16ff5c534a3b5da00ae68fe3aae4dc3b259c (patch)
treee9dddbbd617115761137299b228d4cb469b7e053
parent01eee922798941308755d1baa13185ded720fbfb (diff)
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
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index c8edd3db6262..a2bc6d675e14 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -5637,14 +5637,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)) {