]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
hostapd: change setting of the regdomain.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 25 Mar 2014 18:11:03 +0000 (19:11 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 25 Mar 2014 18:11:03 +0000 (19:11 +0100)
the regdomain is only updated if it was really changed but after boot
the system believe it is "00" World but it is not correctly set at
some cards. So we set a region and set it back to "00" before the
real region was set.

lfs/hostapd
src/initscripts/init.d/hostapd

index 36343de37c18e109ee8903e1bfdf83fabbe2f06f..5560a4277e4843c7c0dee5d6be4ae3819a28c5b9 100644 (file)
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = hostapd
-PAK_VER    = 28
+PAK_VER    = 29
 
 DEPS       = ""
 
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