summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hsu <ryanhsu@qca.qualcomm.com>2015-04-06 12:02:47 -0700
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-04-08 16:04:18 +0530
commit115e811d64cbcf443a7b7fd40e109131011648b2 (patch)
tree1f092f6860b94a69651eb8b1032f58c50ebfa03d
parent24c2a76ec07011feedf29bdd1d968617865d27c5 (diff)
qcacld: hdd: fix the incorrect sap dfs ref count checking
In the case of hdd_hostapd_channel_prevent_suspend() is called twice for old channel and new channel, the sap_dfs_ref_cnt would be imbalance and then the wifi driver would hold the wake-lock that never be able to release. Change-Id: Iad68e116c8a098faa47d4f3552134f92aca92d91 CRs-fixed: 818303
-rw-r--r--CORE/HDD/src/wlan_hdd_hostapd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index 11583c8c837c..464af7e94b97 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -200,7 +200,7 @@ void hdd_hostapd_channel_prevent_suspend(hdd_adapter_t *pAdapter,
/* Return if BSS is already started && wakelock is acquired */
if ((pHostapdState->bssState == BSS_START) &&
- (atomic_read(&pHddCtx->sap_dfs_ref_cnt) > 1))
+ (atomic_read(&pHddCtx->sap_dfs_ref_cnt) >= 1))
return;
/* Acquire wakelock if we have at least one DFS channel in use */