From 40a79dc90be0e6a3c493a75a4be4aea6b96d07ca Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 15 Nov 2019 10:39:23 -0800 Subject: [PATCH] auto-t: add RRM test for scan duration mac80211_hwsim does not actually support SET_SCAN_DWELL, but since we are not setting duration mandatory the request should still be accepted. --- autotests/testRRM/connection_test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/autotests/testRRM/connection_test.py b/autotests/testRRM/connection_test.py index 93fd6cb8..74733e19 100644 --- a/autotests/testRRM/connection_test.py +++ b/autotests/testRRM/connection_test.py @@ -21,6 +21,8 @@ beacon_with_ssid = '51000000000002ffffffffffff02010000077373696452524d' beacon_passive = '510b0000000000ffffffffffff020100' # Active beacon with wildcard BSSID beacon_active = '510b0000000001ffffffffffff020100' +# Passive beacon with duration set +beacon_passive_duration = '510b0000c80000ffffffffffff020100' class Test(unittest.TestCase): @@ -91,6 +93,16 @@ class Test(unittest.TestCase): hapd.req_beacon(device.address, beacon_active) # TODO: See if we are scanning here (scan not initiated from station) + event = hapd.wait_for_event('BEACON-RESP-RX') + if event: + print(event) + + sleep(0.5) + + # This should passive scan on channel 11, returning otherSSID + hapd.req_beacon(device.address, beacon_passive_duration) + # TODO: See if we are scanning here (scan not initiated from station) + event = hapd.wait_for_event('BEACON-RESP-RX') if event: print(event)