()
| 3943 | const pick = _wifiState.flagged || _wifiState.pivotSelect; |
| 3944 | // Widen to all bands so the band filter can't hide the target. |
| 3945 | _wifiState.band = 'all'; |
| 3946 | document.querySelectorAll('#wifi-band-group .wifi-band').forEach(b => { |
| 3947 | const on = b.dataset.band === 'all'; |
| 3948 | b.classList.toggle('bg-Ragnar-600', on); b.classList.toggle('text-white', on); |
| 3949 | b.classList.toggle('text-slate-300', !on); |
| 3950 | }); |
| 3951 | showTab('network'); |
| 3952 | showNetworkSubtab('wifi'); // wifiInit() — auto-scans when there's no survey yet |
| 3953 | _wifiFlagBanner(); |
| 3954 | if (_wifiState.data) { |
| 3955 | if (_wifiState.data.aps.some(a => a.bssid === pick.bssid)) { |
| 3956 | pick.applied = true; |
| 3957 | wifiSelectAp(pick.bssid); |
| 3958 | _wifiFlagBanner(); |
| 3959 | } else { |
| 3960 | wifiScan(); // stale survey — the target may only just have appeared |
| 3961 | } |
| 3962 | } |
| 3963 | } |
nothing calls this directly
no test coverage detected