All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 4/4] auto-t: add oper class/band tests for OWE transition
@ 2021-09-22 19:34 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2021-09-22 19:34 UTC (permalink / raw)
  To: iwd

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

---
 .../testOWE-transition/connection_test.py     | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/autotests/testOWE-transition/connection_test.py b/autotests/testOWE-transition/connection_test.py
index 7240e3a8..9555766e 100644
--- a/autotests/testOWE-transition/connection_test.py
+++ b/autotests/testOWE-transition/connection_test.py
@@ -196,6 +196,30 @@ class Test(unittest.TestCase):
         with self.assertRaises(iwd.NotFoundEx):
             self.validate(self.wd, self.hapd_owe, connect_hidden=True)
 
+    def test_owe_transition_band_info(self):
+        self.hapd_open.set_value('vendor_elements', 'dd17506f9a1c02000000f1000a6f77652d68696464656e5103')
+        self.hapd_open.reload()
+        self.hapd_owe.set_value('vendor_elements', 'dd15506f9a1c02000000f0000a7472616e736974696f6e')
+        self.hapd_owe.set_value('channel', '3')
+        self.hapd_owe.reload()
+
+        self.hapd_owe2.disable()
+        self.hapd_open2.disable()
+
+        self.validate(self.wd, self.hapd_owe)
+
+    def test_owe_transition_wrong_band_info(self):
+        self.hapd_open.set_value('vendor_elements', 'dd17506f9a1c02000000f1000a6f77652d68696464656e5102')
+        self.hapd_open.reload()
+        self.hapd_owe.set_value('vendor_elements', 'dd15506f9a1c02000000f0000a7472616e736974696f6e')
+        self.hapd_owe.set_value('channel', '3')
+        self.hapd_owe.reload()
+
+        self.hapd_owe2.disable()
+        self.hapd_open2.disable()
+
+        self.validate(self.wd, self.hapd_open)
+
     def setUp(self):
         self.wd = IWD(True)
         self.hapd_owe = HostapdCLI(config='ssidOWE.conf')
@@ -206,6 +230,8 @@ class Test(unittest.TestCase):
     def tearDown(self):
         IWD.clear_storage()
 
+        self.hapd_owe.set_value('channel', '1')
+
         self.wd = None
         self.hapd_open = None
         self.hapd_owe = None
-- 
2.31.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-22 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 19:34 [PATCH v2 4/4] auto-t: add oper class/band tests for OWE transition James Prestwood

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.