Compare commits

...

1 Commits

Author SHA1 Message Date
Venkat Chimata
f4d3610917 ucentral-event: Add BSSID/SSID to client stats payload
Populate bssid and ssid in the nl_cb client event payload by
resolving the hostapd instance using msg.msg.dev. Defaults to empty
values if hostapd context is unavailable.

Improves client visibility in multi-BSS deployments.

Fixes WiFi-15352

Signed-off-by: Venkat Chimata <venkat@nearhop.com>
2026-02-24 21:10:16 +05:30

View File

@@ -588,8 +588,13 @@ function listener_cb(event, payload) {
function nl_cb(msg) {
let mac = msg.msg.mac;
let sinfo = msg.msg.sta_info;
let dev = msg.msg.dev;
let hapd = hostapd[dev];
let payload = {
client: mac,
bssid: hapd?.bssid || '',
ssid: hapd?.ssid || '',
tx_bytes: sinfo.tx_bytes64,
rx_bytes: sinfo.rx_bytes64,
tx_packets: sinfo.tx_packets,