aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/480-max_num_sta_probe.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-25 15:43:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-11-25 15:43:15 +0000
commit1d75f7506df7518d59b9d3c5297feb93f0828917 (patch)
tree3b0d0268e63835e64fb2d6f1ec2eebfc809a39dc /package/network/services/hostapd/patches/480-max_num_sta_probe.patch
parent48de8ed52aa89fd7951cee067005b97440709863 (diff)
downloadupstream-1d75f7506df7518d59b9d3c5297feb93f0828917.tar.gz
upstream-1d75f7506df7518d59b9d3c5297feb93f0828917.tar.bz2
upstream-1d75f7506df7518d59b9d3c5297feb93f0828917.zip
hostapd: update to version 2013-11-20
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38914
Diffstat (limited to 'package/network/services/hostapd/patches/480-max_num_sta_probe.patch')
-rw-r--r--package/network/services/hostapd/patches/480-max_num_sta_probe.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/network/services/hostapd/patches/480-max_num_sta_probe.patch b/package/network/services/hostapd/patches/480-max_num_sta_probe.patch
new file mode 100644
index 0000000000..e5ca8b4434
--- /dev/null
+++ b/package/network/services/hostapd/patches/480-max_num_sta_probe.patch
@@ -0,0 +1,13 @@
+--- a/src/ap/beacon.c
++++ b/src/ap/beacon.c
+@@ -501,6 +501,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;