()
| 2162 | // WIDS pivot: once the flagged BSSID shows up in a survey, select it |
| 2163 | // (applied guards recursion — wifiSelectAp() re-enters wifiRender()). |
| 2164 | _wifiFlagBanner(); |
| 2165 | const f = _wifiState.flagged; |
| 2166 | if (f && !f.applied && d.aps.some(a => a.bssid === f.bssid)) { |
| 2167 | f.applied = true; |
| 2168 | wifiSelectAp(f.bssid); |
| 2169 | _wifiFlagBanner(); |
| 2170 | } |
| 2171 | } |
| 2172 | |
| 2173 | // Redraw every visible spectrum surface: the in-page chart and, when it's open, |
| 2174 | // the full-screen console. |
| 2175 | function _wifiDrawSpectrum() { |
| 2176 | _wifiDrawSpectrumInto(document.getElementById('wifi-spectrum'), { height: 360 }); |
| 2177 | if (_wifiState.fs.open) { |
no test coverage detected