TDLS: Disable link to existing peer with lower address

If the previously started setup is terminated in case both peers
initiate TDLS link at more or less the same time, disable the old link
to allow the dummy station entry to be deleted from cfg80211 so that a
new entry can be added for the setup direction that will be allowed to
proceed.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Sunil Dutt 2013-03-14 13:48:36 +02:00 committed by Jouni Malinen
parent b6714ca1bb
commit 4561526f83

View file

@ -1636,7 +1636,7 @@ skip_rsn:
MACSTR " (terminate previously "
"initiated negotiation",
MAC2STR(src_addr));
wpa_tdls_peer_free(sm, peer);
wpa_tdls_disable_link(sm, peer->addr);
}
}
}