aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-12-07 22:39:00 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-08 12:06:54 (GMT)
commit6ae04d7b344f85d7b37f073e3e25a584ea94efcd (patch)
tree1b863b41196d95c6f5c68bd22302f0a78fd34733 /hostapd/config_file.c
parent17adac9ef9f7e840a11a8a7df0b928f44dbb7e67 (diff)
downloadhostap-6ae04d7b344f85d7b37f073e3e25a584ea94efcd.zip
hostap-6ae04d7b344f85d7b37f073e3e25a584ea94efcd.tar.gz
hostap-6ae04d7b344f85d7b37f073e3e25a584ea94efcd.tar.bz2
HS 2.0: Allow Hotspot 2.0 release number to be configured
The new hostapd configuration parameter hs20_release can be used to configure the AP to advertise a specific Hotspot 2.0 release number instead of the latest supported release. This is mainly for testing purposes. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 1bc835a..0452b78 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3717,6 +3717,16 @@ static int hostapd_config_fill(struct hostapd_config *conf,
#ifdef CONFIG_HS20
} else if (os_strcmp(buf, "hs20") == 0) {
bss->hs20 = atoi(pos);
+ } else if (os_strcmp(buf, "hs20_release") == 0) {
+ int val = atoi(pos);
+
+ if (val < 1 || val > (HS20_VERSION >> 4) + 1) {
+ wpa_printf(MSG_ERROR,
+ "Line %d: Unsupported hs20_release: %s",
+ line, pos);
+ return 1;
+ }
+ bss->hs20_release = val;
} else if (os_strcmp(buf, "disable_dgaf") == 0) {
bss->disable_dgaf = atoi(pos);
} else if (os_strcmp(buf, "na_mcast_to_ucast") == 0) {