aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-12-19 11:56:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-12-19 11:56:56 +0000
commit3fb91bbae440a983c52d84813ed2cee19a2102f2 (patch)
tree6c027812de517348bed8c6686779fe737146362c
parente1225a7328a6356e9fbfa9d3ccc5b54e1ebc7eb4 (diff)
downloadupstream-3fb91bbae440a983c52d84813ed2cee19a2102f2.tar.gz
upstream-3fb91bbae440a983c52d84813ed2cee19a2102f2.tar.bz2
upstream-3fb91bbae440a983c52d84813ed2cee19a2102f2.zip
hostapd: add support for specifying the maximum number of clients
Signed-off-by: Alexander Couzens <lynxis@c-base.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24725 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 9ebc0be032..2bd370b875 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -105,11 +105,13 @@ mac80211_hostapd_setup_bss() {
config_get macaddr "$vif" macaddr
config_get_bool hidden "$vif" hidden 0
+ config_get max_clients "$vif" max_clients
cat >> /var/run/hostapd-$phy.conf <<EOF
$hostapd_cfg
wmm_enabled=1
bssid=$macaddr
ignore_broadcast_ssid=$hidden
+${max_clients:+max_num_sta=$max_clients}
EOF
}