All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] auto-t: add FT-back to original AP on FT-PSK-roam
@ 2021-04-30 18:20 James Prestwood
  2021-04-30 20:34 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: James Prestwood @ 2021-04-30 18:20 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 1620 bytes --]

---
 autotests/testFT-PSK-roam/connection_test.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/autotests/testFT-PSK-roam/connection_test.py b/autotests/testFT-PSK-roam/connection_test.py
index 37c6da18..7399e5e1 100644
--- a/autotests/testFT-PSK-roam/connection_test.py
+++ b/autotests/testFT-PSK-roam/connection_test.py
@@ -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')
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] auto-t: add FT-back to original AP on FT-PSK-roam
  2021-04-30 18:20 [PATCH] auto-t: add FT-back to original AP on FT-PSK-roam James Prestwood
@ 2021-04-30 20:34 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-04-30 20:34 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 221 bytes --]

Hi James,

On 4/30/21 1:20 PM, James Prestwood wrote:
> ---
>   autotests/testFT-PSK-roam/connection_test.py | 19 +++++++++++++++++++
>   1 file changed, 19 insertions(+)
> 

Applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-30 20:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 18:20 [PATCH] auto-t: add FT-back to original AP on FT-PSK-roam James Prestwood
2021-04-30 20:34 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.