[connection]
id={{iface}}
uuid={{uuid}}
type=wifi
interface-name={{iface}}
timestamp={{timestamp}}
master=br0
slave-type=bridge
autoconnect=true

[wifi]
# RTL8822CE optimizations: Prefer 5GHz band for 802.11ac performance
band={{#ifCond mode '===' 'a'}}a{{else}}bg{{/ifCond}}
channel={{channel}}
mode=ap
ssid={{{ssid}}}
{{#if hide}}
hidden=true
{{/if}}

[wifi-security]
# key-mgmt und pmf kommen aus der Verschluesselungs-Auswahl in der Oberflaeche
# (trutz-backend src/utils/wlan-security.ts). Frueher standen sie hier fest — das
# globale Umschalten hat jedes Mal eine Geraeteklasse ausgesperrt: WPA3-only warf
# WPA2-IoT raus, WPA2-only warf gehaertete Clients raus. Die Auswahl wird gegen die
# per `iw phy` gelesenen Faehigkeiten der Karte abgesichert.
key-mgmt={{keyMgmt}}
psk={{{passphrase}}}
proto=rsn
pairwise=ccmp
group=ccmp
pmf={{pmf}}

[ipv4]
method=disabled

[ipv6]
method=disabled

[proxy]

# RTL8822CE Capabilities:
# - 802.11ac with 867 Mbps max on 5GHz
# - 2x2 MIMO spatial streams
# - 80MHz channel width support
# - VHT (Very High Throughput) for 802.11ac
# - Dual-band (2.4GHz and 5GHz)