TDLS: Move tdls_lock to HDD Context
Concurrent access to the data structures betweeen the TDLS
and other modules require an access to mutex lock.Hence move the
tdls_lock to the HDD context which is currently accessed only
by the tdls module.
Change-Id: Ia38d8117d9e8cd2f60bbec08e618af398e897afd
CRs-fixed: 553670
diff --git a/CORE/HDD/inc/wlan_hdd_main.h b/CORE/HDD/inc/wlan_hdd_main.h
index cde55bf..68d55aa 100644
--- a/CORE/HDD/inc/wlan_hdd_main.h
+++ b/CORE/HDD/inc/wlan_hdd_main.h
@@ -1108,6 +1108,8 @@
/* TDLS peer connected count */
tANI_U16 connected_peer_count;
tdls_scan_context_t tdls_scan_ctxt;
+ /* Lock to avoid race condition during TDLS operations*/
+ struct mutex tdls_lock;
#endif
hdd_traffic_monitor_t traffic_monitor;