get_wireless_clients sets noise=0 for every client (wireless_mixin.py:339): iw dev <iface> station dump has no noise value. netOrk now shows link quality as SNR (signal − noise, NetOrk/netork#3016) and treats a noise of 0 dBm as not read, so every client on an OpenWrt AP shows SNR "—".
What to build
Per AP interface, read the noise floor of the channel in use: iw dev <iface> survey dump, the block marked [in use], its noise: -95 dBm. One SSH call for all AP interfaces, like the station dumps (step 2 of the method).
Every client on that interface gets that noise. An interface whose survey has no noise (driver without survey support) keeps the client's noise unknown: None, not 0 — check that WirelessClientDict allows it (napalm-device-types), or extend it as optional.
Test first
A fixture survey dump with an [in use] block → its noise on the interface's clients; a dump without one, or without noise: → unknown.
Priority: P3 (important, not urgent): SNR stays unknown on OpenWrt APs until then; nothing is wrong, it is just not shown.
`get_wireless_clients` sets `noise=0` for every client (`wireless_mixin.py:339`): `iw dev <iface> station dump` has no noise value. netOrk now shows link quality as SNR (signal − noise, NetOrk/netork#3016) and treats a noise of 0 dBm as *not read*, so every client on an OpenWrt AP shows SNR "—".
## What to build
1. Per AP interface, read the noise floor of the channel in use: `iw dev <iface> survey dump`, the block marked `[in use]`, its `noise: -95 dBm`. One SSH call for all AP interfaces, like the station dumps (step 2 of the method).
2. Every client on that interface gets that noise. An interface whose survey has no noise (driver without survey support) keeps the client's noise unknown: `None`, not 0 — check that `WirelessClientDict` allows it (napalm-device-types), or extend it as optional.
## Test first
- A fixture survey dump with an `[in use]` block → its noise on the interface's clients; a dump without one, or without `noise:` → unknown.
Priority: P3 (important, not urgent): SNR stays unknown on OpenWrt APs until then; nothing is wrong, it is just not shown.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
get_wireless_clientssetsnoise=0for every client (wireless_mixin.py:339):iw dev <iface> station dumphas no noise value. netOrk now shows link quality as SNR (signal − noise, NetOrk/netork#3016) and treats a noise of 0 dBm as not read, so every client on an OpenWrt AP shows SNR "—".What to build
iw dev <iface> survey dump, the block marked[in use], itsnoise: -95 dBm. One SSH call for all AP interfaces, like the station dumps (step 2 of the method).None, not 0 — check thatWirelessClientDictallows it (napalm-device-types), or extend it as optional.Test first
[in use]block → its noise on the interface's clients; a dump without one, or withoutnoise:→ unknown.Priority: P3 (important, not urgent): SNR stays unknown on OpenWrt APs until then; nothing is wrong, it is just not shown.