diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-09-15 10:21:18 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-09-15 10:21:18 +0000 |
commit | f232e678da682da3ed4246779a82a8e528e1960a (patch) | |
tree | 35ea6aa55c276da86130028341229cb1358fcdaf /package/hostapd | |
parent | 8d4ebc34f0716dd7cb8e355087c2be30fc8d4ef1 (diff) |
hostapd: add a config option for the inactivity timeout
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33412 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd')
-rw-r--r-- | package/hostapd/files/hostapd.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index f1aae80c43..d60c26f3c6 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: |