diff options
| author | Nitesh Shah <niteshs@codeaurora.org> | 2017-01-03 19:46:15 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-09 10:57:36 -0800 |
| commit | 6fb2071f2264d8c77d99fa0fb8e5557db4c68270 (patch) | |
| tree | 80ca0e26042e68226e5a09401498ab605cbb5f96 | |
| parent | 2a1f85225113059c2ec0e365ec185cd87fd6cb33 (diff) | |
qcacld-3.0: Teardown TDLS peer when p2p scan is started
When TDLS is in progress and p2p scan is started, then
TDLS peer is not removed, but TDLS is disabled.Thus,
wlan_hdd_tdls_scan_callback() will reject the scan.
The fix is to remove TDLS peer while disabling TDLS when
p2p scan is started.
Change-Id: Ib457243258eaab4ba1af22993f689aab02c3b3d9
CRs-Fixed: 1106995
| -rw-r--r-- | core/hdd/src/wlan_hdd_tdls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c index f6d147999462..ead4955364e8 100644 --- a/core/hdd/src/wlan_hdd_tdls.c +++ b/core/hdd/src/wlan_hdd_tdls.c @@ -6025,9 +6025,11 @@ void hdd_restart_tdls_source_timer(hdd_context_t *pHddCtx, { qdf_mc_timer_stop(&pHddCtx->tdls_source_timer); - if (tdls_mode == eTDLS_SUPPORT_DISABLED) + if (tdls_mode == eTDLS_SUPPORT_DISABLED) { wlan_hdd_tdls_set_mode(pHddCtx, tdls_mode, false, HDD_SET_TDLS_MODE_SOURCE_OFFCHANNEL); + wlan_hdd_tdls_disable_offchan_and_teardown_links(pHddCtx); + } qdf_mc_timer_start(&pHddCtx->tdls_source_timer, pHddCtx->config->tdls_enable_defer_time); |
