3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

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.
This commit is contained in:
James Prestwood 2020-09-10 16:12:32 -07:00 committed by Denis Kenzior
parent 0d5409eb04
commit 2e3ad0f6b3
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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