summaryrefslogtreecommitdiff
path: root/inventory/group_vars/accesspoints/vars.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/group_vars/accesspoints/vars.yml')
-rw-r--r--inventory/group_vars/accesspoints/vars.yml21
1 files changed, 19 insertions, 2 deletions
diff --git a/inventory/group_vars/accesspoints/vars.yml b/inventory/group_vars/accesspoints/vars.yml
index 7abe0582..3a11205c 100644
--- a/inventory/group_vars/accesspoints/vars.yml
+++ b/inventory/group_vars/accesspoints/vars.yml
@@ -91,22 +91,39 @@ accesspoint_wireless_devices_yaml: |
accesspoint_wireless_ifaces: "{{ accesspoint_wireless_ifaces_yaml | from_yaml }}"
accesspoint_wireless_ifaces_yaml: |
{% for zone in accesspoint_zones.keys() %}
+ {% set outer_loop = loop %}
{% for band in accesspoint_wireless_frequency_bands %}
- name: wifi-iface '{{ zone }}{{ band }}'
options:
device: 'radio{{ band }}'
network: '{{ zone }}'
mode: 'ap'
- disassoc_low_ack: '1'
- rsn_preauth: '1'
ssid: '{{ accesspoint_zones[zone].ssid }}'
encryption: '{{ accesspoint_zones[zone].encryption }}'
key: '{{ accesspoint_zones[zone].key }}'
+ disassoc_low_ack: '1'
+ rsn_preauth: '1'
+ {% if accesspoint_80211r is defined %}
+ ieee80211r: '1'
+ mobility_domain: '{{ '%04x' % (accesspoint_80211r.mobility_domain_base[band] + outer_loop.index0) }}'
+ nasid: '{{ accesspoint_wifi_mac_addr[band][inventory_hostname] | replace(':', '') }}'
+ ft_psk_generate_local: '0'
+ r1_key_holder: '{{ accesspoint_wifi_mac_addr[band][inventory_hostname] }}'
+ r0kh:
+ {% for ap in accesspoint_wifi_mac_addr[band] %}
+ - '{{ accesspoint_wifi_mac_addr[band][ap] }},{{ accesspoint_wifi_mac_addr[band][ap] | replace(':', '') }},{{ [accesspoint_80211r.key_seed,band,zone] | join(':') | wifi_80211r_key }}'
+ {% endfor %}
+ r1kh:
+ {% for ap in accesspoint_wifi_mac_addr[band] %}
+ - '{{ accesspoint_wifi_mac_addr[band][ap] }},{{ accesspoint_wifi_mac_addr[band][ap] }},{{ [accesspoint_80211r.key_seed,band,zone] | join(':') | wifi_80211r_key }}'
+ {% endfor %}
+ {% endif %}
{% endfor %}
{% endfor %}
+
openwrt_arch: ath79
openwrt_target: generic
openwrt_profile: ubnt_unifiac-lite