summaryrefslogtreecommitdiff
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
commit3347f8e360195ecccc2e8cb482b4d3efb40035f7 (patch)
tree65df960f5ae2e82802d658b074a670ca30f7237a
parent58ed4ded0e5b729244cf36a3431050ff09b376fa (diff)
downloadmtk-20170518-3347f8e360195ecccc2e8cb482b4d3efb40035f7.zip
mtk-20170518-3347f8e360195ecccc2e8cb482b4d3efb40035f7.tar.gz
mtk-20170518-3347f8e360195ecccc2e8cb482b4d3efb40035f7.tar.bz2
hostapd: add support for specifying the maximum number of clients
Signed-off-by: Alexander Couzens <lynxis@c-base.org> SVN-Revision: 24725
-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 9ebc0be..2bd370b 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
}