From: Arne Fitzenreiter Date: Tue, 25 Mar 2014 18:11:03 +0000 (+0100) Subject: hostapd: change setting of the regdomain. X-Git-Tag: v2.15-rc1~7^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a79396ce6dba66f4f8cce26a743be3496a8902c;p=people%2Fms%2Fipfire-2.x.git 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. --- diff --git a/lfs/hostapd b/lfs/hostapd index 36343de37c..5560a4277e 100644 --- a/lfs/hostapd +++ b/lfs/hostapd @@ -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 = "" diff --git a/src/initscripts/init.d/hostapd b/src/initscripts/init.d/hostapd index c0b11e6af6..8f59a7f16f 100644 --- a/src/initscripts/init.d/hostapd +++ b/src/initscripts/init.d/hostapd @@ -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