3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

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.
This commit is contained in:
James Prestwood 2021-08-13 13:26:08 -07:00 committed by Denis Kenzior
parent c2caa325ba
commit 5c14742a87

View File

@ -65,14 +65,15 @@ class Test(unittest.TestCase):
# Force the case where ANQP does not finish before Connect() comes in # Force the case where ANQP does not finish before Connect() comes in
rule0.delay = 100 rule0.delay = 100
rule0.prefix = '0d'
ordered_network.network_object.connect() ordered_network.network_object.connect(wait=False)
rule0.delay = 1
condition = 'obj.state == DeviceState.connected' condition = 'obj.state == DeviceState.connected'
wd.wait_for_object_condition(device, condition) wd.wait_for_object_condition(device, condition)
hapd.wait_for_event('AP-STA-CONNECTED')
testutil.test_iface_operstate() testutil.test_iface_operstate()
testutil.test_ifaces_connected(device.name, hapd.ifname) testutil.test_ifaces_connected(device.name, hapd.ifname)