aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2021-03-07 20:08:52 (GMT)
committerJouni Malinen <j@w1.fi>2021-03-07 20:08:52 (GMT)
commit9216929ab60b3c85cf04753d584ca9bc79cac557 (patch)
tree7aaeecb0ba403227ba6ddaf6cc1301c43e682d34
parent7fd2f249621675671a34b04132fecce2e9ec178a (diff)
downloadhostap-master.zip
hostap-master.tar.gz
hostap-master.tar.bz2
tests: HE and TWTHEADpendingmaster
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_he.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/hwsim/test_he.py b/tests/hwsim/test_he.py
index 21c1b55..8114f33 100644
--- a/tests/hwsim/test_he.py
+++ b/tests/hwsim/test_he.py
@@ -1094,3 +1094,21 @@ def test_he80_to_24g_he(dev, apdev):
finally:
dev[0].request("DISCONNECT")
clear_regdom(hapd, dev)
+
+def test_he_twt(dev, apdev):
+ """HE and TWT"""
+ params = {"ssid": "he",
+ "ieee80211ax": "1",
+ "he_bss_color": "42",
+ "he_twt_required":"1"}
+ hapd = hostapd.add_ap(apdev[0], params)
+
+ dev[0].connect("he", key_mgmt="NONE", scan_freq="2412")
+ if "OK" not in dev[0].request("TWT_SETUP"):
+ raise Exception("TWT_SETUP failed")
+ if "OK" not in dev[0].request("TWT_TEARDOWN"):
+ raise Exception("TWT_SETUP failed")
+ if "OK" not in dev[0].request("TWT_SETUP dialog=123 exponent=9 mantissa=10 min_twt=254 setup_cmd=1 twt=1234567890 requestor=1 trigger=0 implicit=0 flow_type=0 flow_id=2 protection=1 twt_channel=3"):
+ raise Exception("TWT_SETUP failed")
+ if "OK" not in dev[0].request("TWT_TEARDOWN flags=255"):
+ raise Exception("TWT_SETUP failed")