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.
This commit is contained in:
James Prestwood 2021-05-12 16:01:45 -07:00 committed by Denis Kenzior
parent e5fcc93a9e
commit 8e09c4a6fb
1 changed files with 6 additions and 1 deletions

View File

@ -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)