Files
beszel-ipv6/agent/wifi
henrygd b115e2aa6a wifi(linux): skip nl80211 when no wireless devices are registered
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.
2026-10-02 12:47:57 -04:00
..

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.