diff options
| author | Nitesh Shah <niteshs@codeaurora.org> | 2017-02-01 17:58:12 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-02-02 01:09:35 -0800 |
| commit | e69a7cc346c7803e7e6b21dddb33b77836aba65c (patch) | |
| tree | a6ba15559e1814da2c35f43fc4b855f95107af4d | |
| parent | fcb07fdc01c0b5b23b5be1272788b524e8eab6f6 (diff) | |
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
| -rw-r--r-- | core/hdd/src/wlan_hdd_tdls.c | 6 |
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; |
