From 51dcc48cc810000c62ef0c0b067c205adb0786b2 Mon Sep 17 00:00:00 2001 From: Filip Matusiak <filip.matusiak@iopsys.eu> Date: Fri, 10 Sep 2021 10:16:47 +0200 Subject: [PATCH] map-controller: do not query for beacons if steering disabled --- src/core/cntlr_map.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/cntlr_map.c b/src/core/cntlr_map.c index f6edf1a8..b4d51d0e 100644 --- a/src/core/cntlr_map.c +++ b/src/core/cntlr_map.c @@ -824,6 +824,13 @@ int handle_sta_link_metrics_response(void *cntlr, struct cmdu_buff *cmdu) uint8_t wildcard[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; uint8_t *opclasses, num_opclasses; + if (!c->cfg.enable_sta_steer) { + trace("|%s:%d| rcpi below %d, but will not query for beacon \ + metrics to steer as 'enable_sta_steer' not set!\n", + __func__, __LINE__, c->cfg.rcpi_threshold); + return 0; + } + dbg("%s %d band = %d\n", __func__, __LINE__, s->fh->band); if (s->fh->band == BAND_5) { num_opclasses = 4; -- GitLab