diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-09-14 14:08:39 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-09-14 14:08:39 +0000 |
commit | 16266e2232f2f218123eaf393247e65b7eabf0fa (patch) | |
tree | 61e6c60aae5e561277a38d20a90325da82312b47 /package | |
parent | 39e6e9e3948e60b658a3503542bab0f71985f8f3 (diff) | |
download | mtk-20170518-16266e2232f2f218123eaf393247e65b7eabf0fa.zip mtk-20170518-16266e2232f2f218123eaf393247e65b7eabf0fa.tar.gz mtk-20170518-16266e2232f2f218123eaf393247e65b7eabf0fa.tar.bz2 |
hostapd: add a patch for suppressing probe responses from APs that have reached their limit of maximum number of clients
SVN-Revision: 33401
Diffstat (limited to 'package')
-rw-r--r-- | package/hostapd/patches/610-max_num_sta_probe.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/hostapd/patches/610-max_num_sta_probe.patch b/package/hostapd/patches/610-max_num_sta_probe.patch new file mode 100644 index 0000000..e22348c --- /dev/null +++ b/package/hostapd/patches/610-max_num_sta_probe.patch @@ -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; |