diff --git a/roles/network/tasks/hostapd.yml b/roles/network/tasks/hostapd.yml index 691d9a76b..1c0df4803 100644 --- a/roles/network/tasks/hostapd.yml +++ b/roles/network/tasks/hostapd.yml @@ -11,7 +11,7 @@ - name: Setting WiFi channel to {{ current_host_channel.stdout }} on RPi hardware set_fact: host_channel: "{{ current_host_channel.stdout }}" - when: current_host_channel.stdout != "" and discovered_wireless_iface != "none" and rpi_model != "none" + when: current_host_channel.stdout != "" and current_host_channel.stdout|int <= 13 and discovered_wireless_iface != "none" and rpi_model != "none" - name: Create /etc/hostapd/hostapd.conf from template template: