From: Jouni Malinen Date: Fri, 5 Dec 2014 14:56:14 +0000 (+0200) Subject: tests: TDLS teardown using wildcard address X-Git-Tag: hostap_2_4~924 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fd5fd03ac24bab4b97db24040ce99aa134d2266;p=thirdparty%2Fhostap.git tests: TDLS teardown using wildcard address Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_tdls.py b/tests/hwsim/test_ap_tdls.py index 2340ae110..2670aaf17 100644 --- a/tests/hwsim/test_ap_tdls.py +++ b/tests/hwsim/test_ap_tdls.py @@ -125,7 +125,7 @@ def setup_tdls(sta0, sta1, ap, reverse=False, expect_fail=False): tdls_check_dl(sta0, sta1, bssid, addr0, addr1) check_connectivity(sta0, sta1, hapd) -def teardown_tdls(sta0, sta1, ap, responder=False): +def teardown_tdls(sta0, sta1, ap, responder=False, wildcard=False): logger.info("Teardown TDLS") hapd = hostapd.Hostapd(ap['ifname']) check_connectivity(sta0, sta1, hapd) @@ -134,6 +134,8 @@ def teardown_tdls(sta0, sta1, ap, responder=False): addr1 = sta1.p2p_interface_addr() if responder: sta1.tdls_teardown(addr0) + elif wildcard: + sta0.tdls_teardown("*") else: sta0.tdls_teardown(addr1) time.sleep(1) @@ -290,6 +292,7 @@ def test_ap_open_tdls(dev, apdev): setup_tdls(dev[0], dev[1], apdev[0]) teardown_tdls(dev[0], dev[1], apdev[0]) setup_tdls(dev[1], dev[0], apdev[0]) + teardown_tdls(dev[1], dev[0], apdev[0], wildcard=True) def test_ap_wpa2_tdls_bssid_mismatch(dev, apdev): """TDLS failure due to BSSID mismatch"""