X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Finitscripts%2Finit.d%2Fhostapd;h=8f59a7f16fdb51c1fbe4c420eab4c89cba0d9a9b;hp=31083399b18f83ce6191fbe597f3b9e45717dd1d;hb=6a79396ce6dba66f4f8cce26a743be3496a8902c;hpb=51cac9a1ce8b4baa0a214f7674d8a915a8030560 diff --git a/src/initscripts/init.d/hostapd b/src/initscripts/init.d/hostapd index 31083399b..8f59a7f16 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,13 @@ case "${1}" in fi fi + # First set to any country then reset to World (00) + # and then set new country because the card is only + # reprogrammed if the region was changed. + /usr/sbin/iw reg set DE + /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