From c01de219320a56b10e191e7b8a6da139b45090bd Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 27 May 2017 11:19:00 +0300 Subject: [PATCH] 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 --- tests/hwsim/test_wnm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py index b0f22ee33..4a526a883 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: