commit 5c14742a87631c2628d15724e2bb8880e8edf09a
parent c2caa325bae93859ba286c6cdc421486feec45db
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 13 Aug 2021 13:26:08 -0700
auto-t: use prefix on hotspot anqp test
The hotspot ANQP delay test was setting a global delay on all
packets which had some unintended consequences. At the time this
was the only way of simulating the test scenario but now hwsim
supports prefix matching so only the ANQP request/response will
be delayed.
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/autotests/testHotspot/anqp_delay_test.py b/autotests/testHotspot/anqp_delay_test.py
@@ -65,14 +65,15 @@ class Test(unittest.TestCase):
# Force the case where ANQP does not finish before Connect() comes in
rule0.delay = 100
+ rule0.prefix = '0d'
- ordered_network.network_object.connect()
-
- rule0.delay = 1
+ ordered_network.network_object.connect(wait=False)
condition = 'obj.state == DeviceState.connected'
wd.wait_for_object_condition(device, condition)
+ hapd.wait_for_event('AP-STA-CONNECTED')
+
testutil.test_iface_operstate()
testutil.test_ifaces_connected(device.name, hapd.ifname)