]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
TDLS: Disable previous link to fix renegotiation
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 27 Oct 2011 20:13:14 +0000 (23:13 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 27 Oct 2011 20:13:14 +0000 (23:13 +0300)
src/rsn_supp/tdls.c

index b336ba9db92298592b800d6e801d0b317ac08b3e..f7b1dc4570bf3b0ee66c6b9f35920cba43133c37 100644 (file)
@@ -2106,6 +2106,14 @@ int wpa_tdls_reneg(struct wpa_sm *sm, const u8 *addr)
        if (peer == NULL || !peer->tpk_success)
                return -1;
 
+       if (sm->tdls_external_setup) {
+               /*
+                * Disable previous link to allow renegotiation to be completed
+                * on AP path.
+                */
+               wpa_sm_tdls_oper(sm, TDLS_DISABLE_LINK, peer->addr);
+       }
+
        return wpa_tdls_start(sm, addr);
 }