From: Sunil Dutt Date: Thu, 14 Mar 2013 11:48:36 +0000 (+0200) Subject: TDLS: Disable link to existing peer with lower address X-Git-Tag: aosp-kk-from-upstream~466 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4561526f8315eac48406a3e1bbaf86196c96a3c6;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c index 09abdbbc0..bcd924c92 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); } } }