summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hsu <ryanhsu@qca.qualcomm.com>2014-06-04 22:34:07 -0700
committerPitani Venkata Rajesh Kumar <c_vpitan@qti.qualcomm.com>2014-06-07 00:56:21 +0530
commite07f7155b61789d652ccdf2aa7a51b36902ddea5 (patch)
tree228437f7075632be420dc49ff2170c2fdf007396
parentf71f730a781f9f760f8387e40c31273637238046 (diff)
qcacld: fix a watchdog bite while radar detection
The else case is not necessary, remove it to advance to the next adapter, otherwise it'll trap in the SAP case and the loop never ends. Change-Id: Ib6032f78e44d0cc158ffd0a07d0b5b2585bb522c CRs-fixed: 675824
-rwxr-xr-xCORE/HDD/src/wlan_hdd_main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index e80e2efba38a..887fda325810 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -6366,11 +6366,9 @@ void hdd_dfs_indicate_radar(void *context, void *param)
{
WLAN_HDD_GET_AP_CTX_PTR(pAdapter)->dfs_cac_block_tx = VOS_TRUE;
}
- else
- {
- status = hdd_get_next_adapter ( pHddCtx, pAdapterNode, &pNext );
- pAdapterNode = pNext;
- }
+
+ status = hdd_get_next_adapter ( pHddCtx, pAdapterNode, &pNext );
+ pAdapterNode = pNext;
}
}
}