059a2d3522a6db3e27474c9da85eec534869d6b9
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 440-max_num_sta_probe.patch
1 --- a/src/ap/beacon.c
2 +++ b/src/ap/beacon.c
3 @@ -614,6 +614,10 @@ void handle_probe_req(struct hostapd_dat
4 return;
5 }
6
7 + if (!sta && hapd->num_sta >= hapd->conf->max_num_sta)
8 + wpa_printf(MSG_MSGDUMP, "Probe Request from " MACSTR " ignored,"
9 + " too many connected stations.", MAC2STR(mgmt->sa));
10 +
11 #ifdef CONFIG_INTERWORKING
12 if (hapd->conf->interworking &&
13 elems.interworking && elems.interworking_len >= 1) {