1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

keep wlan0 and ap0 on the same channel on RPi hardware

This commit is contained in:
Jerry Vonau 2020-04-03 05:24:22 -05:00
parent 39cf3b2947
commit 668b8baf10

View file

@ -3,6 +3,16 @@
hostapd_enabled: False
when: iiab_wireless_lan_iface is undefined or iiab_network_mode == "Appliance"
- name: Detect current Wifi channel
shell: iw {{ discovered_wireless_iface }} info | grep channel | cut -d' ' -f2
register: current_host_channel
when: discovered_wireless_iface != "none"
- 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"
- name: Create /etc/hostapd/hostapd.conf from template
template:
src: hostapd/hostapd.conf.j2