aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-10-17 16:28:35 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-17 16:30:49 (GMT)
commit9b7a1bd7edea9d2dab747f6a584946e4ffedf979 (patch)
treea976a55145a592a01a9f64763e06727ca12fdadf /hostapd/config_file.c
parentca33a5e8955533c3f0df3810fd4b751c638e3831 (diff)
downloadhostap-9b7a1bd7edea9d2dab747f6a584946e4ffedf979.zip
hostap-9b7a1bd7edea9d2dab747f6a584946e4ffedf979.tar.gz
hostap-9b7a1bd7edea9d2dab747f6a584946e4ffedf979.tar.bz2
Option to reduce Probe Response frame responses during max STA
The new hostapd configuration parameter no_probe_resp_if_max_sta=1 can be used to request hostapd not to reply to broadcast Probe Request frames from unassociated STA if there is no room for additional stations (max_num_sta). This can be used to discourage a STA from trying to associate with this AP if the association would be rejected due to maximum STA limit. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index d65b805..3b30e5e 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2734,6 +2734,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
conf->preamble = LONG_PREAMBLE;
} else if (os_strcmp(buf, "ignore_broadcast_ssid") == 0) {
bss->ignore_broadcast_ssid = atoi(pos);
+ } else if (os_strcmp(buf, "no_probe_resp_if_max_sta") == 0) {
+ bss->no_probe_resp_if_max_sta = atoi(pos);
} else if (os_strcmp(buf, "wep_default_key") == 0) {
bss->ssid.wep.idx = atoi(pos);
if (bss->ssid.wep.idx > 3) {