commit 2e3ad0f6b32a6216bb2688d83441e51a0cc6d1fc
parent 0d5409eb04ffa7d6cdf57cb55d357af894d5a9bf
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 10 Sep 2020 16:12:32 -0700
auto-t: replace hard-coded interfaces
test-runner now supports interface name replacement inside hostapd
config files. Since a given test configuration doesn't know what
interface names there will be $ifaceN can be specified instead e.g.
rsn_preauth_interfaces=$iface0 $iface1
The $ifaceN values will be replace with actual interface names when
the test is started.
This patch also removes ctrl_interface inside the hostapd config
files as this is no longer required.
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/autotests/testPreauth-roam/eaptls-preauth-1.conf b/autotests/testPreauth-roam/eaptls-preauth-1.conf
@@ -2,7 +2,6 @@ hw_mode=g
channel=1
ssid=TestPreauth
utf8_ssid=1
-ctrl_interface=/var/run/hostapd
wpa=2
wpa_key_mgmt=WPA-EAP
@@ -24,7 +23,7 @@ radius_server_auth_port=1812
nas_identifier=testeap1
rsn_preauth=1
-rsn_preauth_interfaces=wln0 wln1
+rsn_preauth_interfaces=$iface0 $iface1
disable_pmksa_caching=0
# Allow PMK cache to be shared opportunistically among configured interfaces
diff --git a/autotests/testPreauth-roam/eaptls-preauth-2.conf b/autotests/testPreauth-roam/eaptls-preauth-2.conf
@@ -2,7 +2,6 @@ hw_mode=g
channel=2
ssid=TestPreauth
utf8_ssid=1
-ctrl_interface=/var/run/hostapd
wpa=2
wpa_key_mgmt=WPA-EAP
@@ -20,7 +19,7 @@ auth_server_port=1812
auth_server_shared_secret=secret
rsn_preauth=1
-rsn_preauth_interfaces=wln0 wln1
+rsn_preauth_interfaces=$iface0 $iface1
disable_pmksa_caching=0
# Allow PMK cache to be shared opportunistically among configured interfaces