From 6abe731ae55a186b98bf39678ace7dd1143cd96f Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 27 Dec 2019 03:16:50 +0000 Subject: [PATCH] Disable ac hw_mode if no 5Ghz country match --- templates/hostapd.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/hostapd.php b/templates/hostapd.php index bf64f399..13d70fd3 100755 --- a/templates/hostapd.php +++ b/templates/hostapd.php @@ -49,6 +49,7 @@
+ if (!in_array($arrConfig['country_code'], $countries_5Ghz_max48ch)) { + $hwModeDisabled = 'ac'; + if ($selectedHwMode === $hwModeDisabled) { + unset($selectedHwMode); + } + } + SelectorOptions('hw_mode', $arr80211Standard, $selectedHwMode, 'cbxhwmode', 'loadChannelSelect', $hwModeDisabled); ?>