summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKabilan Kannan <kabilank@codeaurora.org>2017-01-19 01:18:34 -0800
committerqcabuildsw <qcabuildsw@localhost>2017-01-24 02:07:31 -0800
commitbe73d65a620937bea3ee5f854213e637ece3ab81 (patch)
treeddb60d41f48fec4abfeb72198d9aa8e959cdd431
parent68ae17f289608a90f4c07eb11457fafc98d6dc74 (diff)
qcacld-3.0: Remove TDLS tracker update from concurrency functions
All TDLS connection tracker toggle operations is moved into policy manager. Moreover concurrency functions set_concurrency() and clear_concurrency() is going to be deprecated soon, so remove TDLS connection tracker update from those functions. Change-Id: I13d41d2a5dab154239d88249ea1d2a652ac5e6c7 CRs-Fixed: 1113457
-rw-r--r--core/cds/src/cds_concurrency.c6
-rw-r--r--core/hdd/src/wlan_hdd_tdls.c7
2 files changed, 7 insertions, 6 deletions
diff --git a/core/cds/src/cds_concurrency.c b/core/cds/src/cds_concurrency.c
index 40ec77c1fc4b..f8a7c017171d 100644
--- a/core/cds/src/cds_concurrency.c
+++ b/core/cds/src/cds_concurrency.c
@@ -3583,9 +3583,6 @@ void cds_set_concurrency_mode(enum tQDF_ADAPTER_MODE mode)
break;
}
- /* set tdls connection tracker state */
- cds_set_tdls_ct_mode(hdd_ctx);
-
cds_info("concurrency_mode = 0x%x Number of open sessions for mode %d = %d",
hdd_ctx->concurrency_mode, mode,
hdd_ctx->no_of_open_sessions[mode]);
@@ -3625,9 +3622,6 @@ void cds_clear_concurrency_mode(enum tQDF_ADAPTER_MODE mode)
break;
}
- /* set tdls connection tracker state */
- cds_set_tdls_ct_mode(hdd_ctx);
-
cds_info("concurrency_mode = 0x%x Number of open sessions for mode %d = %d",
hdd_ctx->concurrency_mode, mode,
hdd_ctx->no_of_open_sessions[mode]);
diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c
index f70775042ce1..b85bd106460d 100644
--- a/core/hdd/src/wlan_hdd_tdls.c
+++ b/core/hdd/src/wlan_hdd_tdls.c
@@ -285,6 +285,13 @@ void wlan_hdd_tdls_disable_offchan_and_teardown_links(hdd_context_t *hddctx)
*/
void hdd_tdls_notify_mode_change(hdd_adapter_t *adapter, hdd_context_t *hddctx)
{
+ /*
+ * Disable tdls connection tracker, when interface
+ * change happens in the system.
+ */
+ mutex_lock(&hddctx->tdls_lock);
+ hddctx->enable_tdls_connection_tracker = false;
+ mutex_unlock(&hddctx->tdls_lock);
wlan_hdd_tdls_disable_offchan_and_teardown_links(hddctx);
}