Fix: pass required param

This commit is contained in:
billz 2020-12-06 09:04:40 +00:00
parent 3c4cdefc56
commit 4bb2597bff

View file

@ -246,7 +246,7 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status)
$_POST['max_num_sta'] = $_POST['max_num_sta'] < 1 ? null : $_POST['max_num_sta'];
if ($good_input) {
$return = updateHostapdConfig();
$return = updateHostapdConfig($ignore_broadcast_ssid);
// Fetch dhcp-range, lease time from system config
$syscfg = parse_ini_file(RASPI_DNSMASQ_PREFIX.$ap_iface.'.conf', false, INI_SCANNER_RAW);
@ -357,7 +357,7 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status)
*
* @return boolean $result
*/
function updateHostapdConfig()
function updateHostapdConfig($ignore_broadcast_ssid)
{
// Fixed values
$country_code = $_POST['country_code'];