1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-16 20:57:50 +03:00
openwrt-xburst/package/network/services/hostapd/patches/610-max_num_sta_probe.patch
nbd 9c8997d54d packages: sort network related packages into package/network/
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33688 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-10 12:32:29 +00:00

14 lines
438 B
Diff

--- 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;