hostapd: add a patch for suppressing probe responses from APs that have reached their limit of maximum number of clients

SVN-Revision: 33401
lede-17.01
Felix Fietkau 2012-09-14 14:08:39 +00:00
parent 39e6e9e394
commit 16266e2232
1 changed files with 13 additions and 0 deletions

View File

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