libpcap: Fix build when PACKAGECONFIG ipv6 is not enabled
[15.05/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 @@ -664,6 +664,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) {