mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
e1225a7328
commit
3fb91bbae4
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user