diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-09-21 17:31:26 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-09-21 17:31:59 +0200 |
commit | 6635d8822a42cffcb4df9a44d87a0c4fb79ef698 (patch) | |
tree | ab6f730404ce3722c28a456e3bfe0dbab88e9af0 /data | |
parent | 4ce3720109cdd6648e5251da98bf11902c443e2e (diff) | |
download | vyos-1x-6635d8822a42cffcb4df9a44d87a0c4fb79ef698.tar.gz vyos-1x-6635d8822a42cffcb4df9a44d87a0c4fb79ef698.zip |
wireless: T2887: hostapd: add bridge option
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/wifi/hostapd.conf.tmpl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/wifi/hostapd.conf.tmpl b/data/templates/wifi/hostapd.conf.tmpl index 132c4ce40..3980fb896 100644 --- a/data/templates/wifi/hostapd.conf.tmpl +++ b/data/templates/wifi/hostapd.conf.tmpl @@ -11,6 +11,21 @@ device_name={{ description | truncate(32, True) }} # command line parameter. interface={{ ifname }} +{% if is_bridge_member is defined %} +# In case of atheros and nl80211 driver interfaces, an additional +# configuration parameter, bridge, may be used to notify hostapd if the +# interface is included in a bridge. This parameter is not used with Host AP +# driver. If the bridge parameter is not set, the drivers will automatically +# figure out the bridge interface (assuming sysfs is enabled and mounted to +# /sys) and this parameter may not be needed. +# +# For nl80211, this parameter can be used to request the AP interface to be +# added to the bridge automatically (brctl may refuse to do this before hostapd +# has been started to change the interface mode). If needed, the bridge +# interface is also created. +bridge={{ is_bridge_member }} +{% endif %} + # Driver interface type (hostap/wired/none/nl80211/bsd); # default: hostap). nl80211 is used with all Linux mac80211 drivers. # Use driver=none if building hostapd as a standalone RADIUS server that does |