eae-am-deutschen-platz/templates/accesspoints/etc/config/wireless

79 lines
2.4 KiB
Plaintext

{% set radio=radios['radio0'] %}
config wifi-device 'radio0'
option type '{{ radio.type }}'
option path '{{ radio.path }}'
option band '{{ radio.band }}'
option channel '{{ channel_2g | default(1) }}'
option htmode '{{ radio.htmode }}'
option country 'DE'
{% if txpower_2g is defined %}
option txpower '{{ txpower_2g }}'
{% endif %}
{% if disable_2g is defined %}
option disabled '1'
{% else %}
option disabled '0'
{% endif %}
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'clients'
option mode 'ap'
option ssid '{{ wifi_ssid }}'
option encryption '{{ wifi_encryption }}'
{% if wifi_psk is defined %}
option key '{{ wifi_psk }}'
{% endif %}
option disabled '{{ wifi_disabled | default(0) }}'
config wifi-iface 'backoffice_radio0'
option device 'radio0'
option network 'backoffice'
option mode 'ap'
option ssid '{{ backoffice_wifi_ssid }}'
option encryption '{{ backoffice_wifi_encryption }}'
option key '{{ backoffice_wifi_psk }}'
{% if not location | regex_search('office-.*') %}
option disabled '1'
{% endif %}
{% set radio=radios['radio1'] %}
config wifi-device 'radio1'
option type '{{ radio.type }}'
option path '{{ radio.path }}'
option band '{{ radio.band }}'
option channel '{{ channel_5g | default(36) }}'
option htmode '{{ radio.htmode }}'
option country 'DE'
{% if txpower_5g is defined %}
option txpower '{{ txpower_5g }}'
{% endif %}
{% if disable_5g is defined %}
option disabled '1'
{% else %}
option disabled '0'
{% endif %}
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'clients'
option mode 'ap'
option ssid '{{ wifi_ssid }}'
option encryption '{{ wifi_encryption }}'
{% if wifi_psk is defined %}
option key '{{ wifi_psk }}'
{% endif %}
option disabled '{{ wifi_disabled | default(0) }}'
config wifi-iface 'backoffice_radio1'
option device 'radio1'
option network 'backoffice'
option mode 'ap'
option ssid '{{ backoffice_wifi_ssid }}'
option encryption '{{ backoffice_wifi_encryption }}'
option key '{{ backoffice_wifi_psk }}'
{% if not location | regex_search('office-.*') %}
option disabled '1'
{% endif %}