1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 03:58:35 +02:00

hostapd: add an option for configuring the maximum number of connected clients

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33400 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2012-09-14 14:08:35 +00:00
parent 17836e1a4a
commit 362287f501

View File

@ -10,6 +10,7 @@ hostapd_set_bss_options() {
config_get wpa_master_rekey "$vif" wpa_master_rekey # 640 config_get wpa_master_rekey "$vif" wpa_master_rekey # 640
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 device "$vif" device config_get device "$vif" device
config_get hwmode "$device" hwmode config_get hwmode "$device" hwmode
@ -20,6 +21,9 @@ hostapd_set_bss_options() {
if [ "$ap_isolate" -gt 0 ]; then if [ "$ap_isolate" -gt 0 ]; then
append "$var" "ap_isolate=$ap_isolate" "$N" append "$var" "ap_isolate=$ap_isolate" "$N"
fi 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" append "$var" "disassoc_low_ack=$disassoc_low_ack" "$N"
# Examples: # Examples: