diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-09-14 14:08:35 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-09-14 14:08:35 +0000 |
commit | 025be2b84295b898b8f53282272cf91d9b90f1ae (patch) | |
tree | db1f66c22fe474d2e31c08ef8e40515686abd455 /package/hostapd/files | |
parent | 24d24495ad625a6d545b59d364a3dd46fb013c4c (diff) | |
download | upstream-025be2b84295b898b8f53282272cf91d9b90f1ae.tar.gz upstream-025be2b84295b898b8f53282272cf91d9b90f1ae.tar.bz2 upstream-025be2b84295b898b8f53282272cf91d9b90f1ae.zip |
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
Diffstat (limited to 'package/hostapd/files')
-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 a473accd73..f1aae80c43 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: |