TDLS: Remove link, if any, on an implicit set up request
authorSunil Dutt <duttus@codeaurora.org>
Tue, 5 Feb 2013 11:27:56 +0000 (13:27 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 5 Feb 2013 11:27:56 +0000 (13:27 +0200)
commit3887878e536525ec7ffb8ab4c8110d01bea13308
tree60e03f737fba15c2a02ec6b8ea6a02db15f7e1f2
parent283a26f35884705548039abac32c010a99e9f434
TDLS: Remove link, if any, on an implicit set up request

If an implicit TDLS set up request is obtained on an existing link or an
to be established link, the previous link was not removed. This commit
disables the existing link on a new set up request. Also,
wpa_tdls_reneg() function was invoking wpa_tdls_start() on an already
existing peer for the case of internal setup, which is incorrect. Thus
the invocation of wpa_tdls_start() is removed in wpa_tdls_reneg() and
also this function is renamed to wps_tdls_remove() as it does not
renegotiation rather shall remove the link (if any) for the case of
external setup.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/rsn_supp/tdls.c
src/rsn_supp/wpa.h
wpa_supplicant/ctrl_iface.c
wpa_supplicant/events.c