aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-05-27 08:19:00 (GMT)
committerJouni Malinen <j@w1.fi>2017-05-27 08:19:00 (GMT)
commitc01de219320a56b10e191e7b8a6da139b45090bd (patch)
tree055fe60e93033f5cea66d808087c364efc7824a9 /tests
parent8171d704065b3c3e8dc8b55f47bf0532ba38a550 (diff)
downloadhostap-c01de219320a56b10e191e7b8a6da139b45090bd.zip
hostap-c01de219320a56b10e191e7b8a6da139b45090bd.tar.gz
hostap-c01de219320a56b10e191e7b8a6da139b45090bd.tar.bz2
tests: Avoid unexpected roam in wnm_bss_tm
It was possible for the BTM Request with no matching BSSIDs to cause wpa_supplicant-initated roam to a better BSS (5 GHz band preferred) when finding the second AP in a scan started by that BTM Request. This could make the following step in the test case fail. Fix this by asking another channel to be scanned to postpone discovery of the other AP. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wnm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py
index b0f22ee..4a526a8 100644
--- a/tests/hwsim/test_wnm.py
+++ b/tests/hwsim/test_wnm.py
@@ -620,7 +620,7 @@ def test_wnm_bss_tm(dev, apdev):
dev[0].dump_monitor()
logger.info("Preferred Candidate List (no matching neighbor) without Disassociation Imminent")
- if "OK" not in hapd.request("BSS_TM_REQ " + addr + " pref=1 neighbor=11:22:33:44:55:66,0x0000,81,3,7,0301ff neighbor=22:33:44:55:66:77,0x0000,1,36,7 neighbor=00:11:22:33:44:55,0x0000,81,4,7,03010a"):
+ if "OK" not in hapd.request("BSS_TM_REQ " + addr + " pref=1 neighbor=11:22:33:44:55:66,0x0000,81,3,7,0301ff neighbor=22:33:44:55:66:77,0x0000,1,44,7 neighbor=00:11:22:33:44:55,0x0000,81,4,7,03010a"):
raise Exception("BSS_TM_REQ command failed")
ev = hapd.wait_event(['BSS-TM-RESP'], timeout=10)
if ev is None: