hostapd: add a config option for the inactivity timeout

SVN-Revision: 33412
This commit is contained in:
Felix Fietkau 2012-09-15 10:21:18 +00:00
parent 223db72385
commit a5bf74c2e7

View File

@ -11,6 +11,7 @@ hostapd_set_bss_options() {
config_get_bool ap_isolate "$vif" isolate 0 config_get_bool ap_isolate "$vif" isolate 0
config_get_bool disassoc_low_ack "$vif" disassoc_low_ack 1 config_get_bool disassoc_low_ack "$vif" disassoc_low_ack 1
config_get max_num_sta "$vif" max_num_sta 0 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 device "$vif" device
config_get hwmode "$device" hwmode config_get hwmode "$device" hwmode
@ -24,6 +25,9 @@ hostapd_set_bss_options() {
if [ "$max_num_sta" -gt 0 ]; then if [ "$max_num_sta" -gt 0 ]; then
append "$var" "max_num_sta=$max_num_sta" "$N" append "$var" "max_num_sta=$max_num_sta" "$N"
fi 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" append "$var" "disassoc_low_ack=$disassoc_low_ack" "$N"
# Examples: # Examples: