Files
vanlink/hosts/van.conf
T
andreasandClaude Sonnet 5 8ea1b5787a hosts/van.conf: record the R5C's current dongles; tests read host values
The R5C's 2.4GHz AP now uses the D-Link dongle wlxf4f26d1760a7 (the same
dongle hosts/wan.conf lists — it moves between hosts) and a Wi-Fi WAN test
dongle wlx200bd04dc756 is configured (not always attached; van-failover
treats an absent device as "not present").

The tests no longer hardcode this host's hardware: assertions read the
expected interface names from the host file (hv helper), and the "no Wi-Fi
WAN" path (no wifis: stanza, `wifi WAN: none`) is covered with a synthetic
copy of van.conf with WIFI_WAN_IFACE emptied.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KqhjP7nud5gdBg25zCiRk9
2026-09-25 16:09:04 -04:00

47 lines
1.5 KiB
Plaintext

# 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); 2.4GHz AP is the separate USB dongle below
WIFI_2G_IFACE=wlxf4f26d1760a7 # D-Link USB dongle (2.4GHz AP; the same dongle is listed in hosts/wan.conf — it moves between the hosts)
LAN_IFACE=enP1p17s0
STARLINK_IFACE=enP2p33s0
WIFI_WAN_IFACE=wlx200bd04dc756 # Wi-Fi uplink test dongle (RTL8821CU); not always attached — van-failover treats an absent device as "not present"
ONBOARD_LAN_IFACE=
GATEWAY_IP="10.42.1.1"
GATEWAY_PREFIX="24"
GATEWAY_NETWORK="10.42.1.0/24"
DHCP_RANGE_START="10.42.1.10"
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=
USB_BACKUP_ROOT_PART=
USB_BACKUP_MOUNT=
SD_BACKUP_UUID=39118305-4927-47a4-acc7-ba022f37af22
ENABLE_COCKPIT=0
ENABLE_LI3=1
ENABLE_NVME_WATCH=0 # no NVMe on this board
ENABLE_HA=1
ENABLE_FRIGATE=1
ENABLE_NM_WAN=1
CELLULAR_CONN_NAME=Koodo
CELLULAR_APN=sp.koodo.com
# Front LEDs
ENABLE_LEDS=1 # R5C front LEDs (van-leds)
LED_POWER=red:power
LED_LAN=green:lan
LED_WAN=green:wan
LED_WLAN=green:wlan