tests: TDLS teardown using wildcard address
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
e61f90875b
commit
7fd5fd03ac
1 changed files with 4 additions and 1 deletions
|
@ -125,7 +125,7 @@ def setup_tdls(sta0, sta1, ap, reverse=False, expect_fail=False):
|
||||||
tdls_check_dl(sta0, sta1, bssid, addr0, addr1)
|
tdls_check_dl(sta0, sta1, bssid, addr0, addr1)
|
||||||
check_connectivity(sta0, sta1, hapd)
|
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")
|
logger.info("Teardown TDLS")
|
||||||
hapd = hostapd.Hostapd(ap['ifname'])
|
hapd = hostapd.Hostapd(ap['ifname'])
|
||||||
check_connectivity(sta0, sta1, hapd)
|
check_connectivity(sta0, sta1, hapd)
|
||||||
|
@ -134,6 +134,8 @@ def teardown_tdls(sta0, sta1, ap, responder=False):
|
||||||
addr1 = sta1.p2p_interface_addr()
|
addr1 = sta1.p2p_interface_addr()
|
||||||
if responder:
|
if responder:
|
||||||
sta1.tdls_teardown(addr0)
|
sta1.tdls_teardown(addr0)
|
||||||
|
elif wildcard:
|
||||||
|
sta0.tdls_teardown("*")
|
||||||
else:
|
else:
|
||||||
sta0.tdls_teardown(addr1)
|
sta0.tdls_teardown(addr1)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
@ -290,6 +292,7 @@ def test_ap_open_tdls(dev, apdev):
|
||||||
setup_tdls(dev[0], dev[1], apdev[0])
|
setup_tdls(dev[0], dev[1], apdev[0])
|
||||||
teardown_tdls(dev[0], dev[1], apdev[0])
|
teardown_tdls(dev[0], dev[1], apdev[0])
|
||||||
setup_tdls(dev[1], dev[0], 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):
|
def test_ap_wpa2_tdls_bssid_mismatch(dev, apdev):
|
||||||
"""TDLS failure due to BSSID mismatch"""
|
"""TDLS failure due to BSSID mismatch"""
|
||||||
|
|
Loading…
Reference in a new issue