All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 1/2] auto-t: fix eapol_reauth utility
@ 2022-05-26 16:25 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-05-26 16:25 UTC (permalink / raw)
  To: iwd

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

Hi James,

On 5/24/22 15:31, James Prestwood wrote:
> This was passing IFNAME= along with EAPOL_REAUTH which does not work
> in the context of a hostapd socket where the iface is already implied.
> This fixes that issue as well as resets the events array and actually
> waits for the required events afterwards.
> ---
>   autotests/testEAP-PEAPv0-CryptoBinding/NoISK_test.py | 3 ---
>   autotests/util/hostapd.py                            | 5 ++++-
>   2 files changed, 4 insertions(+), 4 deletions(-)
> 

Both applied, thanks.

Regards,
-Denis

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

* [PATCH 1/2] auto-t: fix eapol_reauth utility
@ 2022-05-24 20:31 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2022-05-24 20:31 UTC (permalink / raw)
  To: iwd

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

This was passing IFNAME= along with EAPOL_REAUTH which does not work
in the context of a hostapd socket where the iface is already implied.
This fixes that issue as well as resets the events array and actually
waits for the required events afterwards.
---
 autotests/testEAP-PEAPv0-CryptoBinding/NoISK_test.py | 3 ---
 autotests/util/hostapd.py                            | 5 ++++-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/autotests/testEAP-PEAPv0-CryptoBinding/NoISK_test.py b/autotests/testEAP-PEAPv0-CryptoBinding/NoISK_test.py
index 9a1fa52c..0323fdc1 100644
--- a/autotests/testEAP-PEAPv0-CryptoBinding/NoISK_test.py
+++ b/autotests/testEAP-PEAPv0-CryptoBinding/NoISK_test.py
@@ -37,9 +37,6 @@ class Test(unittest.TestCase):
 
         hostapd.eapol_reauth(device.address)
 
-        hostapd.wait_for_event('CTRL-EVENT-EAP-STARTED')
-        hostapd.wait_for_event('CTRL-EVENT-EAP-SUCCESS')
-
         condition = 'obj.state == DeviceState.connected'
         wd.wait_for_object_condition(device, condition)
 
diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py
index 6a9f37c7..ff5a97c1 100644
--- a/autotests/util/hostapd.py
+++ b/autotests/util/hostapd.py
@@ -163,8 +163,11 @@ class HostapdCLI(object):
         ctx.start_process(cmd).wait()
 
     def eapol_reauth(self, client_address):
-        cmd = 'IFNAME=' + self.ifname + ' EAPOL_REAUTH ' + client_address
+        self.events = []
+        cmd = 'EAPOL_REAUTH ' + client_address
         self.ctrl_sock.sendall(cmd.encode('utf-8'))
+        self.wait_for_event('CTRL-EVENT-EAP-STARTED')
+        self.wait_for_event('CTRL-EVENT-EAP-SUCCESS')
 
     def reload(self):
         # Seemingly all three commands needed for the instance to notice
-- 
2.34.1

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

end of thread, other threads:[~2022-05-26 16:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26 16:25 [PATCH 1/2] auto-t: fix eapol_reauth utility Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2022-05-24 20:31 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.