mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-26 01:44:26 +00:00
mdlayher/wifi only dumps stations, which some full-MAC drivers (e.g. out-of-tree Realtek USB) answer with an empty list, leaving RSSI unavailable. Request the associated BSSID's station directly, as `iw link` does, and parse it with native.ParseStationInfo.
Connected Wi-Fi signal
Reports connected station interfaces only (no scans). info.wf holds the current
snapshot keyed by interface (s SSID, r RSSI in dBm when available);
stats.wf stores available RSSI as integer dBm. Collected on the default
interval only; real-time requests reuse the last snapshot.
- Linux: nl80211 via
github.com/mdlayher/wifi. Docker needsnetwork_mode: host. - macOS: CoreWLAN via
osascript(JXA). SSID may be redacted by privacy settings. - Windows: native WLAN API, keyed by interface GUID.
- Other platforms: unsupported.