Skip to content

Commit

Permalink
Add wifi support for hap ac3 exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr committed Jun 7, 2024
1 parent 5373491 commit 4d1ec91
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions profiles/management/althea-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ keys_to_insert: []

wifi_ssid_two_ghz: AltheaHome-2.4
wifi_ssid_five_ghz: AltheaHome-5
exit_wifi_ssid_two_ghz: AltheaExit-2
exit_wifi_ssid_five_ghz: AltheaExit-5
wifi_disabled: 0
wifi_key: ChangeMe

Expand Down
2 changes: 2 additions & 0 deletions profiles/management/althea-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ logging_enabled: true
logging_level: "ERROR"
wifi_ssid_two_ghz: AltheaHome-2
wifi_ssid_five_ghz: AltheaHome-5
exit_wifi_ssid_two_ghz: AltheaExit-2
exit_wifi_ssid_five_ghz: AltheaExit-5
wifi_disabled: 0
wifi_key: ChangeMe
copy_images: true
Expand Down
2 changes: 2 additions & 0 deletions profiles/management/hawk-managed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ keys_to_insert:
- "[email protected] AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIPlLsiBAHAtJindxr9j9sLKlnwzY5t2U+FVuyuU5BqIQAAAABHNzaDo= [email protected]"
wifi_ssid_two_ghz: AltheaHome-2
wifi_ssid_five_ghz: AltheaHome-5
exit_wifi_ssid_two_ghz: AltheaExit-2
exit_wifi_ssid_five_ghz: AltheaExit-5
wifi_disabled: 0
wifi_key: ChangeMe
copy_images: true
Expand Down
34 changes: 34 additions & 0 deletions roles/build-config/templates/mikrotik_hap-ac3-exit-wireless.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
config wifi-device 'radio0'
option type 'mac80211'
option channel '{{channel}}'
option hwmode '11g'
option path 'platform/soc/a000000.wifi'
option htmode 'HT20'
option disabled '{{wifi_disabled}}'

config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ifname 'wlan0'
option ssid '{{exit_wifi_ssid_two_ghz}}'
option encryption '{{wifi_encryption}}'
option key '{{wifi_key}}'

config wifi-device 'radio1'
option type 'mac80211'
option channel '{{five_ghz_channel}}'
option hwmode '11a'
option path 'platform/soc/a800000.wifi'
option htmode 'VHT80'
option disabled '{{wifi_disabled}}'


config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ifname 'wlan1'
option ssid '{{exit_wifi_ssid_five_ghz}}'
option encryption '{{wifi_encryption}}'
option key '{{wifi_key}}'

0 comments on commit 4d1ec91

Please sign in to comment.