mirror of
https://github.com/unpoller/unpoller.git
synced 2026-07-28 08:42:50 -04:00
unifi_device_vap_* and unifi_device_radio_* expose the radio identifier (radio=ng/na/6e) but not the frequency band, so downstream consumers must hard-code the ng/na/6e -> 2.4/5/6 GHz mapping to group or join by band. UniFi does not carry band as its own field on the radio/VAP structs, so this derives it from the radio identifier via a small radioBand() helper and adds it as a "band" label (GHz: 2.4/5/6) on every series exportVAPtable and exportRADtable emit. This mirrors the band label already present on the RogueAP metrics, giving the per-radio/per-VAP series the same dimension. Derived internally from p.Radio / v.Radio, so the exportVAPtable / exportRADtable signatures are unchanged and the UAP/UDM/UDB/UBB call sites need no edits.