hostapd: change setting of the regdomain.

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.
This commit is contained in:
Arne Fitzenreiter
2014-03-25 19:11:03 +01:00
parent 91eb94ee2f
commit 6a79396ce6
2 changed files with 5 additions and 2 deletions

View 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 = ""

View 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