summaryrefslogtreecommitdiff
path: root/package/hostapd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-09-14 14:08:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-09-14 14:08:35 +0000
commit39e6e9e3948e60b658a3503542bab0f71985f8f3 (patch)
tree32576d6d79983284c25904599c71d960eb9b51f3 /package/hostapd
parent9b020e776ec7fb475b38ef3403ff5c88e523fe93 (diff)
downloadmtk-20170518-39e6e9e3948e60b658a3503542bab0f71985f8f3.zip
mtk-20170518-39e6e9e3948e60b658a3503542bab0f71985f8f3.tar.gz
mtk-20170518-39e6e9e3948e60b658a3503542bab0f71985f8f3.tar.bz2
hostapd: add an option for configuring the maximum number of connected clients
SVN-Revision: 33400
Diffstat (limited to 'package/hostapd')
-rw-r--r--package/hostapd/files/hostapd.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index a473acc..f1aae80 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -10,6 +10,7 @@ hostapd_set_bss_options() {
config_get wpa_master_rekey "$vif" wpa_master_rekey # 640
config_get_bool ap_isolate "$vif" isolate 0
config_get_bool disassoc_low_ack "$vif" disassoc_low_ack 1
+ config_get max_num_sta "$vif" max_num_sta 0
config_get device "$vif" device
config_get hwmode "$device" hwmode
@@ -20,6 +21,9 @@ hostapd_set_bss_options() {
if [ "$ap_isolate" -gt 0 ]; then
append "$var" "ap_isolate=$ap_isolate" "$N"
fi
+ if [ "$max_num_sta" -gt 0 ]; then
+ append "$var" "max_num_sta=$max_num_sta" "$N"
+ fi
append "$var" "disassoc_low_ack=$disassoc_low_ack" "$N"
# Examples: