]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/hostapd
hostapd: change setting of the regdomain.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / hostapd
index c0b11e6af6ee7f4c004120eefeb681abeddbd9c2..8f59a7f16fdb51c1fbe4c420eab4c89cba0d9a9b 100644 (file)
@@ -75,7 +75,10 @@ case "${1}" in
                        fi
                fi
 
-               # First reset to World (00) and then set new country
+               # 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