mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-20 12:39:25 +01:00
auto-t: add FT-back to original AP on FT-PSK-roam
This commit is contained in:
parent
767c2f61b4
commit
d3d6090c32
@ -98,6 +98,25 @@ class Test(unittest.TestCase):
|
||||
self.assertRaises(Exception, testutil.test_ifaces_connected,
|
||||
(self.bss_hostapd[0].ifname, device.name))
|
||||
|
||||
rule0.signal = -2000
|
||||
rule1.signal = -8000
|
||||
|
||||
condition = 'obj.state == DeviceState.roaming'
|
||||
wd.wait_for_object_condition(device, condition)
|
||||
|
||||
# Check that iwd is on BSS 0 once out of roaming state and doesn't
|
||||
# go through 'disconnected', 'autoconnect', 'connecting' in between
|
||||
from_condition = 'obj.state == DeviceState.roaming'
|
||||
to_condition = 'obj.state == DeviceState.connected'
|
||||
wd.wait_for_object_change(device, from_condition, to_condition)
|
||||
|
||||
self.assertTrue(self.bss_hostapd[0].list_sta())
|
||||
|
||||
testutil.test_iface_operstate(device.name)
|
||||
testutil.test_ifaces_connected(self.bss_hostapd[0].ifname, device.name)
|
||||
self.assertRaises(Exception, testutil.test_ifaces_connected,
|
||||
(self.bss_hostapd[1].ifname, device.name))
|
||||
|
||||
def tearDown(self):
|
||||
os.system('ifconfig "' + self.bss_hostapd[0].ifname + '" down')
|
||||
os.system('ifconfig "' + self.bss_hostapd[1].ifname + '" down')
|
||||
|
Loading…
Reference in New Issue
Block a user