summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitesh Shah <niteshs@codeaurora.org>2017-06-06 12:59:09 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-06-06 06:02:36 -0700
commit3e9ad83d5f2b83d5d9d50eb4573f79741f5dc4ce (patch)
treecd4f454a8964f9bf37fac952fe5e1f031b5a8fd8
parent03ce5fd7eb7abeccf9982eaa76a3027cd4c9a6ee (diff)
qcacld-2.0: Teardown TDLS links before starting interface
If the TDLS links exists and SAP comes up, there is a chance that the peer is created for SAP before deleting TDLS peers, thus leading to crash. The fix is to teardown the TDLS links before starting hostapd or starting the association process to avoid TDLS in concurrency case. Change-Id: I06c0d4f8965d3a1e614e8bd89f2d6af0a504fa9e CRs-Fixed: 2056845
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 71fd03b45b28..05dd0c1dc2d8 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -16374,6 +16374,7 @@ static int wlan_hdd_cfg80211_start_bss(hdd_adapter_t *pHostapdAdapter,
int ret;
ENTER();
+ wlan_hdd_tdls_disable_offchan_and_teardown_links(pHddCtx);
iniConfig = pHddCtx->cfg_ini;
pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(pHostapdAdapter);
@@ -21640,6 +21641,8 @@ int wlan_hdd_cfg80211_connect_start( hdd_adapter_t *pAdapter,
return -EINVAL;
}
+ wlan_hdd_tdls_disable_offchan_and_teardown_links(pHddCtx);
+
pRoamProfile = &pWextState->roamProfile;
if (pRoamProfile)