| Tx Power: |
diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl
index 05e1d8531..ca5dbb3f8 100644
--- a/langs/de/cgi-bin/de.pl
+++ b/langs/de/cgi-bin/de.pl
@@ -2201,6 +2201,7 @@
'wireless config changed' => 'Wireless Konfiguration geändert',
'wireless configuration' => 'Wireless-Konfiguration',
'wlanap access point' => 'Access Point',
+'wlanap country' => 'Ländercode',
'wlanap channel' => 'Kanal',
'wlanap debugging' => 'Debugging',
'wlanap del interface' => 'Ausgewähltes Interface zurücksetzen?',
diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl
index f0fa2c21f..ede45179f 100644
--- a/langs/en/cgi-bin/en.pl
+++ b/langs/en/cgi-bin/en.pl
@@ -2234,6 +2234,7 @@
'wireless config changed' => 'Wireless config changed',
'wireless configuration' => 'Wireless Configuration',
'wlanap access point' => 'Access Point',
+'wlanap country' => 'Country Code',
'wlanap channel' => 'Channel',
'wlanap debugging' => 'Debugging',
'wlanap del interface' => 'Remove selected interface?',
diff --git a/src/initscripts/init.d/hostapd b/src/initscripts/init.d/hostapd
index 31083399b..c0b11e6af 100644
--- a/src/initscripts/init.d/hostapd
+++ b/src/initscripts/init.d/hostapd
@@ -3,6 +3,7 @@
. ${rc_functions}
CHANNEL="05"
+COUNTRY="00"
TXPOWER="auto"
INTERFACE="blue0"
MACMODE="0"
@@ -74,6 +75,10 @@ case "${1}" in
fi
fi
+ # First reset to World (00) and then set new country
+ /usr/sbin/iw reg set 00
+ /usr/sbin/iw reg set $COUNTRY
+
/usr/sbin/iwconfig $INTERFACE channel $CHANNEL 2>/dev/null
/usr/sbin/iwconfig $INTERFACE txpower $TXPOWER
|