Template hostapd interface/SSIDs/5GHz radio lines; guard against other-host hardcodes

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KqhjP7nud5gdBg25zCiRk9
This commit is contained in:
2026-09-23 14:48:22 -04:00
co-authored by Claude Sonnet 5
parent a39fd5a654
commit ac897799e6
8 changed files with 62 additions and 11 deletions
+7 -2
View File
@@ -1,8 +1,8 @@
# hosts/van.conf — FriendlyElec NanoPi R5C, hostname "van" (Armbian).
# /etc/vanlink.conf -> this file. See hosts/vanlink.conf.example for the variable list.
WIFI_5G_IFACE=wlp1s0 # MediaTek MT7925E (PCIe); also carries the 2.4GHz AP
WIFI_2G_IFACE=wlx3c3332002066
WIFI_5G_IFACE=wlp1s0 # MediaTek MT7925E (PCIe); 2.4GHz AP is the separate USB dongle below
WIFI_2G_IFACE=wlx3c3332002066 # D-Link USB dongle
LAN_IFACE=enP1p17s0
STARLINK_IFACE=enP2p33s0
WIFI_WAN_IFACE=wlan0 # not present on this host (kept for the failover config)
@@ -16,6 +16,11 @@ DHCP_RANGE_END="10.42.1.254"
DNS_RESOLVERS="1.1.1.1 8.8.8.8"
MODEM_USB_VENDOR=2c7c
AP_SSID_5G=VanLink2
AP_SSID_2G=VanLink2-2G
# MT7925E: no 80MHz width lines, no ieee80211h
AP_5G_RADIO='ht_capab=[HT20][SHORT-GI-20][HT40+][HT40-]\nvht_capab=[MAX-MPDU-11454][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMEE]\nhe_su_beamformee=1\nhe_mu_edca_qos_info_param_count=0'
NVME_DEVICE=
NVME_FS_DEVICE=
+8
View File
@@ -15,6 +15,14 @@ STARLINK_IFACE=enp2s0 # Starlink uplink (NetworkManager WAN)
WIFI_WAN_IFACE=wlan0 # Wi-Fi uplink (NetworkManager WAN)
ONBOARD_LAN_IFACE= # optional: extra onboard LAN port bridged into br0 (e.g. eth0); empty = none
# --- Access point -------------------------------------------------------------
AP_SSID_5G=VanLink # SSID of the 5GHz AP (hostapd.conf)
AP_SSID_2G=VanLink # SSID of the 2.4GHz AP (hostapd-2g.conf)
# Radio-specific lines for the 5GHz AP: hostapd lines separated by the two characters \n
# (the GNU sed used by `render` expands them to newlines). Keep it in single quotes, e.g.
# AP_5G_RADIO='ht_capab=[HT40+][SHORT-GI-20]\nvht_capab=[RXLDPC][SHORT-GI-80]'
AP_5G_RADIO='ht_capab=[HT20][SHORT-GI-20]'
# --- Addressing ---------------------------------------------------------------
GATEWAY_IP="10.42.9.1"
GATEWAY_PREFIX="24"
+5
View File
@@ -16,6 +16,11 @@ DHCP_RANGE_END="10.42.0.254"
DNS_RESOLVERS="1.1.1.1 8.8.8.8"
MODEM_USB_VENDOR=2c7c
AP_SSID_5G=VanLink
AP_SSID_2G=VanLink
# RTL8852BU: 80MHz VHT/HE on ch 149 (centre 155)
AP_5G_RADIO='ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]\nvht_oper_chwidth=1\nvht_oper_centr_freq_seg0_idx=155\nvht_capab=[RXLDPC][SHORT-GI-80][SU-BEAMFORMEE]\nhe_oper_chwidth=1\nhe_oper_centr_freq_seg0_idx=155\nieee80211h=0'
NVME_DEVICE=
NVME_FS_DEVICE=