diff options
| author | Atul Mittal <atulmt@qti.qualcomm.com> | 2015-05-22 08:34:58 +0530 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-05-29 15:06:26 +0530 |
| commit | 4b3228f8b59ea5f5ea0412852d770b882e01250a (patch) | |
| tree | 6798bafb7762e933ba6dd9971dd936e4bcbed479 | |
| parent | 03c5428292c6d0f0bef6d6bbfd16d2dc57008912 (diff) | |
qcacld:TDLS Rectify the reason for the the TDLS tear down.
This is prima to qcacld-2.0 propagation
This commit ensures to add the prompt reason for the tear
down. Specifically, sets the reason based on if the tear
down is initiated by the peer or self.
Change-Id: Ib6b42c9b6c7bd4e74c0bc504278b602b08e7c178
CRs-Fixed: 720749
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 6 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_tdls.c | 2 |
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, |
