summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_tdls.c6
1 files 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;