]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: TDLS teardown using wildcard address
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 5 Dec 2014 14:56:14 +0000 (16:56 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 5 Dec 2014 14:56:14 +0000 (16:56 +0200)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_ap_tdls.py

index 2340ae11088a2f2a04cce6963da893d45d933cac..2670aaf171dfc3ec2cf814b0fd3563ba787964d7 100644 (file)
@@ -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"""