commit 40a79dc90be0e6a3c493a75a4be4aea6b96d07ca
parent 1b35eda3dd3d16eb67795f2443af754383033187
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 15 Nov 2019 10:39:23 -0800
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.
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git 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):
@@ -95,6 +97,16 @@ class Test(unittest.TestCase):
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)
+
device.disconnect()
condition = 'not obj.connected'