X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Finitscripts%2Finit.d%2Fhostapd;h=8f59a7f16fdb51c1fbe4c420eab4c89cba0d9a9b;hb=6a79396ce6dba66f4f8cce26a743be3496a8902c;hp=31083399b18f83ce6191fbe597f3b9e45717dd1d;hpb=7c743d54f0c48f1cea6169efe09a68e0f27f18c0;p=people%2Fteissler%2Fipfire-2.x.git 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