diff --git a/templates/hostapd.php b/templates/hostapd.php index 578f48ef..316220ac 100755 --- a/templates/hostapd.php +++ b/templates/hostapd.php @@ -130,9 +130,13 @@ $checkedWifiAPEnabled = ''; if ($arrHostapdConf['WifiAPEnable'] == 1) { $checkedWifiAPEnabled = ' checked="checked"'; + } + if ($managedModeEnabled == false) { + $wifiAPToggle = "disabled"; + $wifiAPHelp = "Managed mode not enabled"; } ?> - " data-off="" data-width="110" data-height="40" value="1" /> + " data-off="" data-width="110" data-height="40" value="1" /> @@ -144,7 +148,7 @@ $checkedLogEnabled = ''; if ($arrHostapdConf['LogEnable'] == 1) { $checkedLogEnabled = ' checked="checked"'; - } + } ?> " data-off="" data-width="110" data-height="40" value="1" />