summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-09-15 10:21:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-09-15 10:21:18 +0000
commita5bf74c2e76ebc4251af4103a80b15671b8a2ca6 (patch)
tree985019f178597f0b3deb4204045af130be727980 /package
parent223db723853089ee2a5793401bac7b0613ee4eb9 (diff)
downloadmtk-20170518-a5bf74c2e76ebc4251af4103a80b15671b8a2ca6.zip
mtk-20170518-a5bf74c2e76ebc4251af4103a80b15671b8a2ca6.tar.gz
mtk-20170518-a5bf74c2e76ebc4251af4103a80b15671b8a2ca6.tar.bz2
hostapd: add a config option for the inactivity timeout
SVN-Revision: 33412
Diffstat (limited to 'package')
-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 f1aae80..d60c26f 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -11,6 +11,7 @@ hostapd_set_bss_options() {
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 max_inactivity "$vif" max_inactivity 0
config_get device "$vif" device
config_get hwmode "$device" hwmode
@@ -24,6 +25,9 @@ hostapd_set_bss_options() {
if [ "$max_num_sta" -gt 0 ]; then
append "$var" "max_num_sta=$max_num_sta" "$N"
fi
+ if [ "$max_inactivity" -gt 0 ]; then
+ append "$var" "ap_max_inactivity=$max_inactivity" "$N"
+ fi
append "$var" "disassoc_low_ack=$disassoc_low_ack" "$N"
# Examples: