mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 01:42:58 +02:00
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:
@@ -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 = ""
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user