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.
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = hostapd
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = hostapd
- # 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
/usr/sbin/iw reg set 00
/usr/sbin/iw reg set $COUNTRY