From afa3006de25930ba2f652dd6bfe407a8eb6d2f75 Mon Sep 17 00:00:00 2001 From: billz Date: Thu, 20 Mar 2025 02:54:30 -0700 Subject: [PATCH] Minor: code cleanup --- includes/hostapd.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index 9aad4f30..c3e092e3 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -297,21 +297,6 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $reg_dom $status->addMessage('Parameter hiddenSSID contains an invalid configuration value.', 'danger'); $good_input = false; } - /* - if (isset($_POST['hiddenSSID'])) { - if (!is_int((int)$_POST['hiddenSSID'])) { - $status->addMessage('Parameter hiddenSSID not a number.', 'danger'); - $good_input = false; - } elseif ((int)$_POST['hiddenSSID'] < 0 || (int)$_POST['hiddenSSID'] >= 3) { - $status->addMessage('Parameter hiddenSSID contains invalid configuratie value.', 'danger'); - $good_input = false; - } else { - $ignore_broadcast_ssid = $_POST['hiddenSSID']; - } - } else { - $ignore_broadcast_ssid = '0'; - } - */ if (! in_array($_POST['interface'], $interfaces)) { $status->addMessage('Unknown interface '.htmlspecialchars($_POST['interface'], ENT_QUOTES), 'danger');