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. --- autotests/testPreauth-roam/eaptls-preauth-1.conf | 3 +-- autotests/testPreauth-roam/eaptls-preauth-2.conf | 3 +-- 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 index 0c7f96a7..bc808ed7 100644 --- 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 index bddcca69..6d3a18e7 100644 --- 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 -- 2.26.2