From 1a23316abdd29699e3a4144aca1fa91ae5f45140 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 30 Apr 2019 18:29:09 +0000 Subject: [PATCH] Write wifi managed interface to config --- includes/hostapd.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index 84d84cb4..0f167b68 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -26,7 +26,7 @@ function DisplayHostAPDConfig() if (CSRFValidate()) { $status->addMessage('Attempting to start hotspot', 'info'); if ($arrHostapdConf['WifiAPEnable'] == 1) { - exec('sudo /etc/raspap/hostapd/servicestart.sh --interface uap0 --seconds 5', $return); + exec('sudo /etc/raspap/hostapd/servicestart.sh --interface uap0 --seconds 3', $return); } else { exec('sudo /etc/raspap/hostapd/servicestart.sh --seconds 5', $return); } @@ -566,6 +566,7 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status) $cfg = []; $cfg['LogEnable'] = $logEnable; $cfg['WifiAPEnable'] = $wifiAPEnable; + $cfg['WifiManaged'] = RASPI_WIFI_CLIENT_INTERFACE; write_php_ini($cfg, '/etc/raspap/hostapd.ini'); // Verify input