From e69a7cc346c7803e7e6b21dddb33b77836aba65c Mon Sep 17 00:00:00 2001 From: Nitesh Shah Date: Wed, 1 Feb 2017 17:58:12 +0530 Subject: qcacld-3.0: Avoid initializing tdls mutex in SSR The change is to avoid initializing tdls mutex in SSR. Change-Id: I85a5552bd643c17101ca5acbd6ee0880d6d7f7a6 CRs-Fixed: 2001086 --- core/hdd/src/wlan_hdd_tdls.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c index 8391d1d3b66d..8782b9c984a0 100644 --- a/core/hdd/src/wlan_hdd_tdls.c +++ b/core/hdd/src/wlan_hdd_tdls.c @@ -635,8 +635,10 @@ void hdd_tdls_context_init(hdd_context_t *hdd_ctx, bool ssr) { uint8_t sta_idx; - mutex_init(&hdd_ctx->tdls_lock); - qdf_spinlock_create(&hdd_ctx->tdls_ct_spinlock); + if (!ssr) { + mutex_init(&hdd_ctx->tdls_lock); + qdf_spinlock_create(&hdd_ctx->tdls_ct_spinlock); + } /* initialize TDLS global context */ hdd_ctx->connected_peer_count = 0; -- cgit v1.2.3