From: Jouni Malinen Date: Thu, 27 Oct 2011 20:10:21 +0000 (+0300) Subject: TDLS: Fix teardown on renegotiation X-Git-Tag: hostap-1-bp~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca03378b2742e1ace2553aecbbf5ba0ee6c2cac1;p=thirdparty%2Fhostap.git TDLS: Fix teardown on renegotiation Need to disable the link when receiving TDLS Setup Request from a peer with which a direct link has already been set up. --- diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c index 8eae9fc59..415b0a9e0 100644 --- a/src/rsn_supp/tdls.c +++ b/src/rsn_supp/tdls.c @@ -1521,7 +1521,11 @@ skip_rsn: * some drivers handling the new request frame. */ wpa_sm_tdls_oper(sm, TDLS_DISABLE_LINK, src_addr); #else - wpa_tdls_del_key(sm, peer); + if (sm->tdls_external_setup) + wpa_sm_tdls_oper(sm, TDLS_DISABLE_LINK, + src_addr); + else + wpa_tdls_del_key(sm, peer); #endif wpa_tdls_peer_free(sm, peer); }