openwrt_archive/package/hostapd/patches/480-max_num_sta_probe.patch
Felix Fietkau 6d1ad8e33b hostapd: backport package from trunk r39765
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39927
2014-03-14 10:53:39 +00:00

14 lines
438 B
Diff

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