Skip to contentSkip to conversation

auto-t: add FT-back to original AP on FT-PSK-roam

PATCH Applied James Prestwood 2 participants 2 messages Apr 30, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 auto-t: add FT-back to original AP on FT-PSK-roam

---
 autotests/testFT-PSK-roam/connection_test.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
autotests/testFT-PSK-roam/connection_test.py +19 -0
index 37c6da18..7399e5e1 100644
@@ -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')
Signature · 1 line
2.26.2
#1 lore raw

Hi James,

Quoted 4 lines · James Prestwood
---
  autotests/testFT-PSK-roam/connection_test.py | 19 +++++++++++++++++++
  1 file changed, 19 insertions(+)

Applied, thanks.

Regards,
-Denis