hostapd: add country selection and fix txpower display.

This commit is contained in:
Arne Fitzenreiter
2012-12-29 16:20:16 +01:00
parent d81d4fa89c
commit c3d9a16d57
4 changed files with 43 additions and 3 deletions

View File

@@ -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