aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/hostapd/patches/440-max_num_sta_probe.patch
blob: 74aef26d64fb82fad3826b64024e9500f2353542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -664,6 +664,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 (hapd->conf->interworking &&
 	    elems.interworking && elems.interworking_len >= 1) {