From 10be910657d43de91de7b08e8f3c1059538c88cf Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 17 Mar 2019 20:14:08 +0000 Subject: [PATCH] Bugfix: replaced wlan0 with constant --- includes/hostapd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index e3f40c94..92192165 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -677,7 +677,7 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status) $config.= 'require dhcp_server_identifier'.PHP_EOL; $config.= 'slaac private'.PHP_EOL; $config.= 'nohook lookup-hostname'.PHP_EOL; - $config.= 'interface wlan0'.PHP_EOL; + $config.= 'interface '.RASPI_WIFI_CLIENT_INTERFACE.PHP_EOL; $config.= 'static ip_address=10.3.141.1/24'.PHP_EOL; $config.= 'static routers=10.3.141.1'.PHP_EOL; $config.= 'static domain_name_server=1.1.1.1 8.8.8.8'.PHP_EOL;