aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/440-max_num_sta_probe.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/services/hostapd/patches/440-max_num_sta_probe.patch')
-rw-r--r--package/network/services/hostapd/patches/440-max_num_sta_probe.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/440-max_num_sta_probe.patch b/package/network/services/hostapd/patches/440-max_num_sta_probe.patch
new file mode 100644
index 0000000..74aef26
--- /dev/null
+++ b/package/network/services/hostapd/patches/440-max_num_sta_probe.patch
@@ -0,0 +1,13 @@
+--- a/src/ap/beacon.c
++++ b/src/ap/beacon.c
+@@ -664,6 +664,10 @@ void handle_probe_req(struct hostapd_dat
+ return;
+ }
+
++ if (!sta && hapd->num_sta >= hapd->conf->max_num_sta)
++ wpa_printf(MSG_MSGDUMP, "Probe Request from " MACSTR " ignored,"
++ " too many connected stations.", MAC2STR(mgmt->sa));
++
+ #ifdef CONFIG_INTERWORKING
+ if (hapd->conf->interworking &&
+ elems.interworking && elems.interworking_len >= 1) {