fix(phase26): dual-radio — wlan0 permanent AP, wlan1 internet uplink (BUG-01)

This commit is contained in:
Mathieu Moran
2026-08-11 03:44:01 -04:00
parent 89bbc4fdb8
commit 592e049f59
3 changed files with 60 additions and 60 deletions
+3 -4
View File
@@ -255,13 +255,12 @@ async function loadUplinkStatus() {
const disconnectedInfo = document.getElementById('in-car-disconnected-info');
const hotspotUrl = document.getElementById('hotspot-url');
const copyBtn = document.getElementById('copy-hotspot-url');
if (status.mode === 'local_hotspot') {
const ip = status.ip_address || '10.42.0.1';
hotspotUrl.textContent = `http://${ip}`;
if (status.ap_active && status.ap_ip) {
hotspotUrl.textContent = `http://${status.ap_ip}`;
hotspotInfo.hidden = false;
wifiInfo.hidden = true;
disconnectedInfo.hidden = true;
if (copyBtn) copyBtn.onclick = () => navigator.clipboard.writeText(`http://${ip}`);
if (copyBtn) copyBtn.onclick = () => navigator.clipboard.writeText(`http://${status.ap_ip}`);
} else if (status.mode === 'wifi' || status.mode === 'phone') {
hotspotInfo.hidden = true;
wifiInfo.hidden = false;