/system identity set name="schneiderscheune-weinturm-ap"

/ip firewall filter remove [find comment~"defconf"]
/ip firewall nat remove [find comment~"defconf"]
/ip dhcp-client remove [find comment~"defconf"]
/ip dhcp-server remove [find name~"defconf"]
/interface wireless disable wlan1

/interface bridge add name=bridge1 mtu=1500 protocol-mode=rstp
/interface bridge port add bridge=bridge1 interface=ether1
/interface bridge port add bridge=bridge1 interface=wlan1

/ip address add address=192.168.96.2/24 interface=bridge1
/ip route add gateway=192.168.96.1
/ip dns set servers=192.168.96.1

/interface wireless set wlan1 country="germany 5.8 fixed p-p"
/interface wireless set wlan1 frequency=auto
/interface wireless set wlan1 skip-dfs-channels=all
/interface wireless set wlan1 installation=outdoor
/interface wireless set wlan1 mode=bridge
/interface wireless set wlan1 ssid=Schneiderscheune-Weinturm
/interface wireless set wlan1 frequency-mode regulatory-domain
/interface wireless set wlan1 band=5ghz-onlyac
/interface wireless set wlan1 channel-width=20/40/80mhz-Ceee
/interface wireless set wlan1 rate-set=configured
/interface wireless set wlan1 ht-basic-mcs="" ht-supported-mcs=""
/interface wireless set wlan1 vht-basic-mcs="mcs0-7,mcs0-7,mcs0-7"
/interface wireless set wlan1 vht-supported-mcs="mcs0-9,mcs0-9,mcs0-9"
/interface wireless set wlan1 wireless-protocol=nv2
# distance to the farthest client, in km
/interface wireless set wlan1 nv2-cell-radius=10
# higher values increase bandwidth, but also latency
/interface wireless set wlan1 tdma-period-size=1
/interface wireless set wlan1 nv2-mode=dynamic-downlink
/interface wireless set wlan1 nv2-downlink-ratio=20
/interface wireless set wlan1 nv2-security=enabled
/interface wireless set wlan1 update-stats-interval=00:00:10
/interface wireless set wlan1 wps-mode=disabled
/interface wireless nstreme set wlan1 enable-nstreme=yes

/interface wireless enable wlan1

/tool bandwidth-server set enabled=yes

/ip address remove [find comment~"defconf"]
