From 0bbf03cc95d4b1cca634f074e136ad093a178e2c Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 17 Jan 2021 10:41:12 +0000 Subject: [PATCH] Set WifiManaged value from $_POST. Resolves #767 --- includes/hostapd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index 15ab618e..654388ce 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -192,7 +192,7 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status) // Save previous Client mode status when Bridged $cfg['WifiAPEnable'] = ($bridgedEnable == 1 ? $arrHostapdConf['WifiAPEnable'] : $wifiAPEnable); $cfg['BridgedEnable'] = $bridgedEnable; - $cfg['WifiManaged'] = $ap_iface; + $cfg['WifiManaged'] = $_POST['interface']; write_php_ini($cfg, RASPI_CONFIG.'/hostapd.ini'); $_SESSION['ap_interface'] = $ap_iface;