aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-09-05 14:53:15 (GMT)
committerJouni Malinen <j@w1.fi>2015-09-05 14:53:15 (GMT)
commit964f64e2eebef06c7fab5c51f79ebc821e00b25e (patch)
tree9bad26f8c86f45eed02bc00a049b25861f948a46 /hostapd
parentc58b5f65b12d88e118fdea2647bdd3f86d3e3daa (diff)
downloadhostap-964f64e2eebef06c7fab5c51f79ebc821e00b25e.zip
hostap-964f64e2eebef06c7fab5c51f79ebc821e00b25e.tar.gz
hostap-964f64e2eebef06c7fab5c51f79ebc821e00b25e.tar.bz2
Add option to ignore Probe Request frames on 2.4 GHz from dualband STA
The new no_probe_resp_if_seen_on=<ifname> parameter can now be used to configure hostapd to not reply to group-addressed Probe Request from a station that was seen on another radio. This can be used with enabled track_sta_max_num configuration on another interface controlled by the same hostapd process to restrict Probe Request frame handling from replying to group-addressed Probe Request frames from a station that has been detected to be capable of operating on another band, e.g., to try to reduce likelihood of the station selecting a 2.4 GHz BSS when the AP operates both a 2.4 GHz and 5 GHz BSS concurrently. Note: Enabling this can cause connectivity issues and increase latency for discovering the AP. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c3
-rw-r--r--hostapd/hostapd.conf15
2 files changed, 18 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 336eba9..57ccbc6 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3403,6 +3403,9 @@ static int hostapd_config_fill(struct hostapd_config *conf,
conf->track_sta_max_num = atoi(pos);
} else if (os_strcmp(buf, "track_sta_max_age") == 0) {
conf->track_sta_max_age = atoi(pos);
+ } else if (os_strcmp(buf, "no_probe_resp_if_seen_on") == 0) {
+ os_free(bss->no_probe_resp_if_seen_on);
+ bss->no_probe_resp_if_seen_on = os_strdup(pos);
} else {
wpa_printf(MSG_ERROR,
"Line %d: unknown configuration item '%s'",
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index d912197..43e81ca 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -1289,6 +1289,21 @@ own_ip_addr=127.0.0.1
# Default: 180
#track_sta_max_age=180
+# Do not reply to group-addressed Probe Request from a station that was seen on
+# another radio.
+# Default: Disabled
+#
+# This can be used with enabled track_sta_max_num configuration on another
+# interface controlled by the same hostapd process to restrict Probe Request
+# frame handling from replying to group-addressed Probe Request frames from a
+# station that has been detected to be capable of operating on another band,
+# e.g., to try to reduce likelihood of the station selecting a 2.4 GHz BSS when
+# the AP operates both a 2.4 GHz and 5 GHz BSS concurrently.
+#
+# Note: Enabling this can cause connectivity issues and increase latency for
+# discovering the AP.
+#no_probe_resp_if_seen_on=wlan1
+
##### Wi-Fi Protected Setup (WPS) #############################################
# WPS state