summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c6
-rw-r--r--CORE/HDD/src/wlan_hdd_tdls.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 4634cd251300..0f84e56aebd2 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -17768,8 +17768,10 @@ static int __wlan_hdd_cfg80211_tdls_oper(struct wiphy *wiphy,
return -EPERM;
}
wlan_hdd_tdls_set_peer_link_status(pTdlsPeer,
- eTDLS_LINK_IDLE,
- eTDLS_LINK_UNSPECIFIED);
+ eTDLS_LINK_IDLE,
+ (pTdlsPeer->link_status == eTDLS_LINK_TEARING)?
+ eTDLS_LINK_UNSPECIFIED:
+ eTDLS_LINK_DROPPED_BY_REMOTE);
}
else
{
diff --git a/CORE/HDD/src/wlan_hdd_tdls.c b/CORE/HDD/src/wlan_hdd_tdls.c
index ee399cae2ba6..8b64dc31058d 100644
--- a/CORE/HDD/src/wlan_hdd_tdls.c
+++ b/CORE/HDD/src/wlan_hdd_tdls.c
@@ -2903,7 +2903,7 @@ void wlan_hdd_tdls_indicate_teardown(hdd_adapter_t *pAdapter,
wlan_hdd_tdls_set_peer_link_status(curr_peer,
eTDLS_LINK_TEARING,
- eTDLS_LINK_DROPPED_BY_REMOTE);
+ eTDLS_LINK_UNSPECIFIED);
cfg80211_tdls_oper_request(pAdapter->dev,
curr_peer->peerMac,
NL80211_TDLS_TEARDOWN,