wireless clients: read the noise floor instead of reporting noise=0 #56

Open
opened 2026-12-02 22:25:16 +00:00 by christianmanivong · 0 comments
Owner

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.

`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.
christianmanivong added the
prio
P3
enhancement
labels 2026-12-02 22:25:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-openwrt#56