From 4561526f8315eac48406a3e1bbaf86196c96a3c6 Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Thu, 14 Mar 2013 13:48:36 +0200 Subject: [PATCH] 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 --- src/rsn_supp/tdls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c index 09abdbb..bcd924c 100644 --- a/src/rsn_supp/tdls.c +++ b/src/rsn_supp/tdls.c @@ -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); } } } -- 2.1.4