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.
This commit is contained in:
Jouni Malinen 2011-10-27 23:10:21 +03:00 committed by Jouni Malinen
parent 5c1c940f1d
commit ca03378b27

View file

@ -1521,6 +1521,10 @@ skip_rsn:
* some drivers handling the new request frame. */
wpa_sm_tdls_oper(sm, TDLS_DISABLE_LINK, src_addr);
#else
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);