ubus: only request beacon-report for current SSID
authorDavid Bauer <mail@david-bauer.net>
Fri, 31 Dec 2021 20:46:14 +0000 (21:46 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 9 Jan 2022 01:09:26 +0000 (02:09 +0100)
This reduces the return traffic from clients by only responding with
beacon reports for the current SSID.

Signed-off-by: David Bauer <mail@david-bauer.net>
ubus.c

diff --git a/ubus.c b/ubus.c
index 9b985f4c47e90ad35d18b3d5dce8622438754c99..52f2415bc6cff6f8f2568ed74910d9556f4f0456 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -563,6 +563,7 @@ int usteer_ubus_trigger_client_scan(struct sta_info *si)
 
        blob_buf_init(&b, 0);
        blobmsg_printf(&b, "addr", MAC_ADDR_FMT, MAC_ADDR_DATA(si->sta->addr));
+       blobmsg_add_string(&b, "ssid", si->node->ssid);
        blobmsg_add_u32(&b, "mode", BEACON_MEASUREMENT_ACTIVE);
        blobmsg_add_u32(&b, "duration", config.roam_scan_interval / 100);
        blobmsg_add_u32(&b, "channel", 0);