From: Arik Nemtsov Date: Thu, 24 Apr 2014 05:45:38 +0000 (+0300) Subject: TDLS: Fully tear down existing link before setup X-Git-Tag: hostap_2_2~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a41232165f6e51b95f6a2da23e98d3b95662f8d;p=thirdparty%2Fhostap.git 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 --- 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); } }