From b10b5388967434ef20bcbdd7d9473d019680c074 Mon Sep 17 00:00:00 2001 From: D9ping Date: Wed, 3 Oct 2018 16:40:45 +0200 Subject: [PATCH] Allow channel 14 for Japan in 802.11b mode. Signed-off-by: D9ping --- includes/hostapd.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/includes/hostapd.php b/includes/hostapd.php index 0f2efb7..a2e9bf7 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -122,14 +122,22 @@ SelectorOptions('hw_mode', $arr80211Standard, $selectedHwMode); ?> @@ -490,7 +498,7 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $status) return false; } - if (intval($_POST['channel']) < 1 || intval($_POST['channel']) > 13) { + if (intval($_POST['channel']) < 1 || intval($_POST['channel']) > 14) { error_log("Attempting to set channel to '".$_POST['channel']."'"); return false; }