From 9a41232165f6e51b95f6a2da23e98d3b95662f8d Mon Sep 17 00:00:00 2001 From: Arik Nemtsov Date: Thu, 24 Apr 2014 08:45:38 +0300 Subject: [PATCH] TDLS: Fully tear down existing link before setup 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 --- 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 d3d0c42df..3b1465606 100644 --- a/src/rsn_supp/tdls.c +++ b/src/rsn_supp/tdls.c @@ -2463,7 +2463,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); } }