aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-05-07 19:02:12 (GMT)
committerJouni Malinen <j@w1.fi>2017-05-07 19:08:43 (GMT)
commit481fecefec25cea2fdbd95de6f697290c21d47d8 (patch)
treefd84542030da72aab178beaba79836dd0d10db94
parent1f3c49d418238e20a9eb256920b8f6fb149643bb (diff)
downloadhostap-481fecefec25cea2fdbd95de6f697290c21d47d8.zip
hostap-481fecefec25cea2fdbd95de6f697290c21d47d8.tar.gz
hostap-481fecefec25cea2fdbd95de6f697290c21d47d8.tar.bz2
tests: BSS TM request with 160 MHz opclass 129
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--tests/hwsim/test_wnm.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py
index b39f196..b0f22ee 100644
--- a/tests/hwsim/test_wnm.py
+++ b/tests/hwsim/test_wnm.py
@@ -666,6 +666,23 @@ def test_wnm_bss_tm(dev, apdev):
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=0.5)
if ev is not None:
raise Exception("Unexpected reassociation")
+
+ logger.info("Preferred Candidate List with two matches and extra frequency (160 MHz), no roam needed")
+ if "OK" not in hapd2.request("BSS_TM_REQ " + addr + " pref=1 abridged=1 valid_int=255 neighbor=" + apdev[0]['bssid'] + ",0x0000,81,1,7,030101 neighbor=" + apdev[1]['bssid'] + ",0x0000,115,36,7,0301ff" + ' neighbor=00:11:22:33:44:55,0x0000,129,36,7'):
+ raise Exception("BSS_TM_REQ command failed")
+ ev = hapd2.wait_event(['BSS-TM-RESP'], timeout=10)
+ if ev is None:
+ raise Exception("No BSS Transition Management Response")
+ if "status_code=0" not in ev:
+ raise Exception("BSS transition request was not accepted: " + ev)
+ if "target_bssid=" + apdev[1]['bssid'] not in ev:
+ raise Exception("Unexpected target BSS: " + ev)
+ ev = dev[0].wait_event(["CTRL-EVENT-SCAN-STARTED"], timeout=0.1)
+ if ev is not None:
+ raise Exception("Unexpected scan started")
+ ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=0.5)
+ if ev is not None:
+ raise Exception("Unexpected reassociation")
finally:
dev[0].request("DISCONNECT")
if hapd: