diff options
| author | Rajesh Chauhan <rajeshc@qca.qualcomm.com> | 2014-04-21 11:00:43 -0700 |
|---|---|---|
| committer | Pitani Venkata Rajesh Kumar <c_vpitan@qti.qualcomm.com> | 2014-04-23 10:35:27 +0530 |
| commit | d28dbd03dd354a38558197e320670ff6d348cfcb (patch) | |
| tree | f3d66ce27977e631b5284d1f30673da5d61cc745 | |
| parent | c1a177139faa35aca6c0a7a9cb53d8edbf05ba7f (diff) | |
TDLS: make tdls and sme locks independent
Acquisition of tdls lock after sme lock would result in a
deadlock if the corresponding threads contend for each other.
Hence make the tdls lock acquisition independent of sme lock
Change-Id: I0d936dc4cca424c346fa99ce28a8cbf1c29626d6
CRs-Fixed: 647576
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index 30350bdb6646..d9a87e5657e4 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -3321,6 +3321,7 @@ static int __wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy, hdd_close_adapter(pHddCtx, pP2pAdapter, VOS_TRUE); } } + hdd_stop_adapter( pHddCtx, pAdapter ); #ifdef FEATURE_WLAN_TDLS /* A Mutex Lock is introduced while changing the mode to @@ -3330,7 +3331,6 @@ static int __wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy, mutex_lock(&pHddCtx->tdls_lock); #endif //De-init the adapter. - hdd_stop_adapter( pHddCtx, pAdapter ); hdd_deinit_adapter( pHddCtx, pAdapter ); memset(&pAdapter->sessionCtx, 0, sizeof(pAdapter->sessionCtx)); pAdapter->device_mode = (type == NL80211_IFTYPE_AP) ? |
