This is required to be built in for hostapd to rekey on command.
---
doc/hostapd.config | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/hostapd.config b/doc/hostapd.config
index 91d1b4cf..c114e127 100644
--- a/doc/hostapd.config
+++ b/doc/hostapd.config
@@ -36,3 +36,4 @@ CONFIG_OCV=y
CONFIG_OWE=y
CONFIG_DPP=y
CONFIG_SAE=y
+CONFIG_TESTING_OPTIONS=y
--
2.31.1
New subject: [PATCH 3/6] auto-t: block auth frames for FT-over-DS test
The FT-over-DS test was allowed to fail as it stood. If FT-over-DS
failed it would just do a normal over-Air transition which satisfied
all the checks. To prevent this Authenticate frames are blocked after
the initial connection so if FT-over-DS fails there is no other way
to roam.
---
autotests/testPSK-roam/connection_test.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/autotests/testPSK-roam/connection_test.py
b/autotests/testPSK-roam/connection_test.py
index 918cceb0..f9306a57 100644
--- a/autotests/testPSK-roam/connection_test.py
+++ b/autotests/testPSK-roam/connection_test.py
@@ -59,6 +59,9 @@ class Test(unittest.TestCase):
self.assertRaises(Exception, testutil.test_ifaces_connected,
(self.bss_hostapd[1].ifname, device.name, True, True))
+ if over_ds:
+ self.rule0.enabled = True
+
device.roam(self.bss_hostapd[1].bssid)
condition = 'obj.state == DeviceState.roaming'
@@ -150,12 +153,24 @@ class Test(unittest.TestCase):
os.system('ifconfig "' + self.bss_hostapd[0].ifname + '"
up')
os.system('ifconfig "' + self.bss_hostapd[1].ifname + '"
up')
+ self.rule0.enabled = False
+
@classmethod
def setUpClass(cls):
+ hwsim = Hwsim()
+
IWD.copy_to_storage('TestFT.psk')
cls.bss_hostapd = [ HostapdCLI(config='ft-psk-ccmp-1.conf'),
HostapdCLI(config='ft-psk-ccmp-2.conf') ]
+ rad2 = hwsim.get_radio('rad2')
+
+ cls.rule0 = hwsim.rules.create()
+ cls.rule0.source = rad2.addresses[0]
+ cls.rule0.bidirectional = True
+ cls.rule0.signal = -2000
+ cls.rule0.prefix = 'b0'
+ cls.rule0.drop = True
# Set interface addresses to those expected by hostapd config files
os.system('ifconfig "' + cls.bss_hostapd[0].ifname +
--
2.31.1