aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-10-28 21:25:17 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-28 21:28:17 (GMT)
commit8618b3c2219ef9f644ed6f825a6501d7f1663082 (patch)
treed931013e88124e019a882d3bc5fd99e1ab5cbf95 /tests
parent8c889222bc8bc488911929fd7e8bd6d5d3f68e4e (diff)
downloadhostap-8618b3c2219ef9f644ed6f825a6501d7f1663082.zip
hostap-8618b3c2219ef9f644ed6f825a6501d7f1663082.tar.gz
hostap-8618b3c2219ef9f644ed6f825a6501d7f1663082.tar.bz2
tests: Open AP and TDLS prohibited
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_tdls.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_tdls.py b/tests/hwsim/test_ap_tdls.py
index 5b6ee9c..4964dee 100644
--- a/tests/hwsim/test_ap_tdls.py
+++ b/tests/hwsim/test_ap_tdls.py
@@ -553,3 +553,19 @@ def test_ap_tdls_link_status(dev, apdev):
check_tdls_link(dev[0], dev[1], connected=False)
if "FAIL" not in dev[0].request("TDLS_LINK_STATUS foo"):
raise Exception("Unexpected TDLS_LINK_STATUS response for invalid argument")
+
+def test_ap_tdls_prohibit(dev, apdev):
+ """Open AP and TDLS prohibited"""
+ hapd = hostapd.add_ap(apdev[0], { "ssid": "test-open",
+ "tdls_prohibit": "1" })
+ connect_2sta_open(dev, hapd)
+ if "FAIL" not in dev[0].request("TDLS_SETUP " + dev[1].own_addr()):
+ raise Exception("TDLS_SETUP accepted unexpectedly")
+
+def test_ap_tdls_chan_switch_prohibit(dev, apdev):
+ """Open AP and TDLS channel switch prohibited"""
+ hapd = hostapd.add_ap(apdev[0], { "ssid": "test-open",
+ "tdls_prohibit_chan_switch": "1" })
+ wlantest_setup(hapd)
+ connect_2sta_open(dev, hapd)
+ setup_tdls(dev[0], dev[1], hapd)