aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-03-10 16:33:51 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-10 16:33:51 (GMT)
commit941caed98009104484ca894dd49f87bf23cff091 (patch)
tree5633782bcff791f3c51ce0836b1602b9d59d6780 /hostapd
parent2453f2517cbbd892c6f3284d804d441f38e8e1a1 (diff)
downloadhostap-941caed98009104484ca894dd49f87bf23cff091.zip
hostap-941caed98009104484ca894dd49f87bf23cff091.tar.gz
hostap-941caed98009104484ca894dd49f87bf23cff091.tar.bz2
MBO: Add MBO ANQP-element processing on AP
This extends the GAS server to process MBO ANQP-elements and reply to a query for the Cellular Data Connection Preference (if configured). The new configuration parameter mbo_cell_data_conn_pref can be used to set the value (0, 1, or 255) for the preference to indicate. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
-rw-r--r--hostapd/hostapd.conf13
2 files changed, 15 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index cb54c77..4ff4691 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3442,6 +3442,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
#ifdef CONFIG_MBO
} else if (os_strcmp(buf, "mbo") == 0) {
bss->mbo_enabled = atoi(pos);
+ } else if (os_strcmp(buf, "mbo_cell_data_conn_pref") == 0) {
+ bss->mbo_cell_data_conn_pref = atoi(pos);
#endif /* CONFIG_MBO */
#ifdef CONFIG_TESTING_OPTIONS
#define PARSE_TEST_PROBABILITY(_val) \
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index 821910c..19596ce 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -2035,6 +2035,19 @@ own_ip_addr=127.0.0.1
#
#osu_server_uri=...
+##### Multiband Operation (MBO) ###############################################
+#
+# MBO enabled
+# 0 = disabled (default)
+# 1 = enabled
+#mbo=1
+#
+# Cellular data connection preference
+# 0 = Excluded - AP does not want STA to use the cellular data connection
+# 1 = AP prefers the STA not to use cellular data connection
+# 255 = AP prefers the STA to use cellular data connection
+#mbo_cell_data_conn_pref=1
+
##### Fast Session Transfer (FST) support #####################################
#
# The options in this section are only available when the build configuration