mirror of
https://github.com/henrygd/beszel.git
synced 2026-10-02 22:37:47 +02:00
Check /sys/class/ieee80211 before opening netlink sockets. Looking up the nl80211 family while cfg80211 is not loaded makes the kernel run modprobe, which loads the module on hosts without wireless hardware, or fails again on every poll when the module is unavailable.
14 lines
679 B
Markdown
14 lines
679 B
Markdown
# 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 needs `network_mode: host`.
|
|
Skipped when `/sys/class/ieee80211` lists no wireless devices.
|
|
- macOS: CoreWLAN via `osascript` (JXA). SSID may be redacted by privacy settings.
|
|
- Windows: native WLAN API, keyed by adapter alias (e.g. `Wi-Fi`), falling back
|
|
to interface GUID.
|
|
- Other platforms: unsupported.
|