commit 8e09c4a6fb1f20a3801a77ff359a0e5dc915512d
parent e5fcc93a9e808afb683c56c42e7c8e1d2202785f
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 12 May 2021 16:01:45 -0700
auto-t: update FT-over-DS test for new behavior
The FT-over-DS procedure now authenticates with multiple BSS's
upon connecting. This causes list_sta() to return our address for
any authenticated APs. It has now been changed to work with this
new behavior, as well as a check that the station fully connected
to the expected AP initially.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/autotests/testFT-PSK-over-DS/connection_test.py b/autotests/testFT-PSK-over-DS/connection_test.py
@@ -62,8 +62,13 @@ class Test(unittest.TestCase):
condition = 'obj.state == DeviceState.connected'
wd.wait_for_object_condition(device, condition)
+ self.bss_hostapd[0].wait_for_event('AP-STA-CONNECTED %s' % device.address)
+
+ # list_sta actually reports any authenticated stations. Due to the
+ # nature of FT-over-DS IWD should authenticate to all stations with
+ # the same mobility domain. This means both APs should show our station.
self.assertTrue(self.bss_hostapd[0].list_sta())
- self.assertFalse(self.bss_hostapd[1].list_sta())
+ self.assertTrue(self.bss_hostapd[1].list_sta())
wd.unregister_psk_agent(psk_agent)