From d8fd2b8f39427b78d4a14a3c0a5ed041c6ebc735 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 17 Jan 2024 10:00:29 +0100 Subject: [PATCH] rrmd: do not automatically trigger beacon reports when a station joins Signed-off-by: John Crispin --- feeds/ucentral/rrmd/files/usr/share/rrmd/station.uc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/feeds/ucentral/rrmd/files/usr/share/rrmd/station.uc b/feeds/ucentral/rrmd/files/usr/share/rrmd/station.uc index 5d31ff8fb..f104ff16f 100644 --- a/feeds/ucentral/rrmd/files/usr/share/rrmd/station.uc +++ b/feeds/ucentral/rrmd/files/usr/share/rrmd/station.uc @@ -29,8 +29,9 @@ function station_add(device, addr, data, seen, bssid) { beacon_report: {}, }; - if (config.beacon_request_assoc) + /* if (config.beacon_request_assoc) stations[addr].beacon_request_assoc = time(); + */ } /* update device, seen and signal data */ @@ -47,6 +48,7 @@ function station_add(device, addr, data, seen, bssid) { global.event.send('rrm.station.add', { addr, rrm: stations[addr].rrm, bssid }); /* check if a beacon_report should be triggered */ + /* if (stations[addr].beacon_request_assoc && time() - stations[addr].beacon_request_assoc >= 30) { global.station.beacon_request({ addr, channel: stations[addr].channel}); stations[addr].beacon_request_assoc = 0; @@ -56,6 +58,7 @@ function station_add(device, addr, data, seen, bssid) { global.event.send('rrm.beacon.report', { addr, report: stations[addr].beacon_report }); stations[addr].beacon_report_seen = 0; } + */ } function station_del(addr) {