mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 15:32:59 +02:00
hostapd: add country selection and fix txpower display.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user