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:
parent
39cf3b2947
commit
668b8baf10
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue