[PATCH] TDLS: fully teardown existing link before setup

Ilan Peer ilan.peer at intel.com
Thu Apr 24 01:45:38 EDT 2014


From: Arik Nemtsov <arik at wizery.com>

Disabling the link only clears the local state. The remote peer will still
think we are connected and disallow the setup.

Signed-off-by: Arik Nemtsov <arikx.nemtsov at intel.com>
---
 src/rsn_supp/tdls.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c
index 67a176e..5415f4c 100644
--- a/src/rsn_supp/tdls.c
+++ b/src/rsn_supp/tdls.c
@@ -2459,7 +2459,8 @@ void wpa_tdls_remove(struct wpa_sm *sm, const u8 *addr)
 		 * Disable previous link to allow renegotiation to be completed
 		 * on AP path.
 		 */
-		wpa_tdls_disable_peer_link(sm, peer);
+		wpa_tdls_do_teardown(sm, peer,
+				     WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED);
 	}
 }
 
-- 
1.7.10.4



More information about the HostAP mailing list