]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
TDLS: Disable teardown MIC validation workaround
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 7 Apr 2011 11:48:46 +0000 (14:48 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 7 Apr 2011 11:48:46 +0000 (14:48 +0300)
This MIC is required to be correct if the keys are set, so reject
the message if it does not have a valid MIC.

src/rsn_supp/tdls.c

index 14c2b7b8000216eb30896cd56d12faa13458ed71..9133c9a746a27c9b6a74ed9a7642178a4b2ba0e9 100644 (file)
@@ -766,14 +766,7 @@ static int wpa_tdls_recv_teardown(struct wpa_sm *sm, const u8 *src_addr,
                                                    (u8 *) lnkid, ftie) < 0) {
                wpa_printf(MSG_DEBUG, "TDLS: MIC failure for TDLS "
                           "Teardown Request from " MACSTR, MAC2STR(src_addr));
-#if 0
                return -1;
-#else
-               /* TODO: figure out whether this workaround could be disabled
-                */
-               wpa_printf(MSG_DEBUG, "TDLS: Workaround - ignore Teardown MIC "
-                          "failure");
-#endif
        }
 
 skip_ftie: