commit a18c6e10a7934dcef5c3f5b42c2773f263a6c97f
parent eb8362bf76b41f7634f6942093c06fecea99fd0c
Author: James Prestwood <prestwoj@gmail.com>
Date: Tue, 24 May 2022 13:31:44 -0700
auto-t: fix eapol_reauth utility
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.
Diffstat:
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
@@ -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
@@ -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