aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-06-14 18:45:09 (GMT)
committerJouni Malinen <jouni@codeaurora.org>2019-06-14 20:10:51 (GMT)
commit20eba39b51b2c8373102fcfcaec91caf92592b14 (patch)
tree422b2ec81201aed94d92080a34b903015bd04c77
parentef59f987296251f7209313cc28fd10df4e3b307f (diff)
downloadhostap-20eba39b51b2c8373102fcfcaec91caf92592b14.zip
hostap-20eba39b51b2c8373102fcfcaec91caf92592b14.tar.gz
hostap-20eba39b51b2c8373102fcfcaec91caf92592b14.tar.bz2
tests: WNM BSS Transition Management disabled
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--tests/hwsim/test_wnm.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py
index 66d74c3..aa1bd2d 100644
--- a/tests/hwsim/test_wnm.py
+++ b/tests/hwsim/test_wnm.py
@@ -1929,3 +1929,17 @@ def test_wnm_coloc_intf_reporting_errors(dev, apdev):
raise Exception("MGMT_RX_PROCESS failed")
hapd.set("ext_mgmt_frame_handling", "0")
+
+def test_wnm_bss_transition_mgmt_disabled(dev, apdev):
+ """WNM BSS Transition Management disabled"""
+ hapd = start_wnm_ap(apdev[0])
+ try:
+ dev[0].set("disable_btm", "1")
+ dev[0].connect("test-wnm", key_mgmt="NONE", scan_freq="2412")
+ addr = dev[0].own_addr()
+ hapd.request("BSS_TM_REQ " + addr)
+ ev = hapd.wait_event(['BSS-TM-RESP'], timeout=0.5)
+ if ev is not None:
+ raise Exception("Unexpected BSS Transition Management Response")
+ finally:
+ dev[0].set("disable_btm", "0")