TDLS: Disable link to existing peer with lower address
authorSunil Dutt <duttus@codeaurora.org>
Thu, 14 Mar 2013 11:48:36 +0000 (13:48 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 14 Mar 2013 11:48:36 +0000 (13:48 +0200)
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>

src/rsn_supp/tdls.c

index 09abdbb..bcd924c 100644 (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);
                        }
                }
        }