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); ?>