From 67935bc3a5440e4cf8715f17d58834369a6dae26 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 5 Apr 2014 19:04:46 +0300 Subject: [PATCH] tests: FTIE MIC mismatch in TDLS Setup Response/Confirm Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_tdls.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/hwsim/test_ap_tdls.py b/tests/hwsim/test_ap_tdls.py index a38536373..35c7ed099 100644 --- a/tests/hwsim/test_ap_tdls.py +++ b/tests/hwsim/test_ap_tdls.py @@ -225,6 +225,26 @@ def test_ap_wpa2_tdls_diff_rsnie(dev, apdev): setup_tdls(dev[1], dev[0], apdev[0]) teardown_tdls(dev[1], dev[0], apdev[0]) +def test_ap_wpa2_tdls_wrong_tpk_m2_mic(dev, apdev): + """Incorrect MIC in TDLS Setup Response""" + start_ap_wpa2_psk(apdev[0]['ifname']) + wlantest_setup() + connect_2sta_wpa2_psk(dev, apdev[0]['ifname']) + dev[0].request("SET tdls_testing 0x800") + addr0 = dev[0].p2p_interface_addr() + dev[1].tdls_setup(addr0) + time.sleep(1) + +def test_ap_wpa2_tdls_wrong_tpk_m3_mic(dev, apdev): + """Incorrect MIC in TDLS Setup Confirm""" + start_ap_wpa2_psk(apdev[0]['ifname']) + wlantest_setup() + connect_2sta_wpa2_psk(dev, apdev[0]['ifname']) + dev[1].request("SET tdls_testing 0x800") + addr0 = dev[0].p2p_interface_addr() + dev[1].tdls_setup(addr0) + time.sleep(1) + def test_ap_wpa_tdls(dev, apdev): """WPA-PSK AP and two stations using TDLS""" hostapd.add_ap(apdev[0]['ifname'],