aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-09-14 14:08:39 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-09-14 14:08:39 +0000
commit57a710eab70dea2da17bdcb1d8d2c846acfeeedf (patch)
treea7203ac6b8fbec0dc35afec86d9f0da59c8728d8
parent025be2b84295b898b8f53282272cf91d9b90f1ae (diff)
downloadupstream-57a710eab70dea2da17bdcb1d8d2c846acfeeedf.tar.gz
upstream-57a710eab70dea2da17bdcb1d8d2c846acfeeedf.tar.bz2
upstream-57a710eab70dea2da17bdcb1d8d2c846acfeeedf.zip
hostapd: add a patch for suppressing probe responses from APs that have reached their limit of maximum number of clients
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33401 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/hostapd/patches/610-max_num_sta_probe.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/hostapd/patches/610-max_num_sta_probe.patch b/package/hostapd/patches/610-max_num_sta_probe.patch
new file mode 100644
index 0000000000..e22348c896
--- /dev/null
+++ b/package/hostapd/patches/610-max_num_sta_probe.patch
@@ -0,0 +1,13 @@
+--- a/src/ap/beacon.c
++++ b/src/ap/beacon.c
+@@ -413,6 +413,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 (elems.interworking && elems.interworking_len >= 1) {
+ u8 ant = elems.interworking[0] & 0x0f;