policy: use correct reference signal
authorDavid Bauer <mail@david-bauer.net>
Fri, 15 Oct 2021 21:24:30 +0000 (23:24 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 15 Oct 2021 21:26:38 +0000 (23:26 +0200)
Signed-off-by: David Bauer <mail@david-bauer.net>
policy.c

index 76cf1e335a526c235cfb6cfc2acb9940ce2409ab..b55757749eaedfa9d1fcd29fa187d984e6e0debd 100644 (file)
--- a/policy.c
+++ b/policy.c
@@ -164,7 +164,7 @@ usteer_check_request(struct sta_info *si, enum usteer_event_type type)
                if (config.min_snr && si->signal < snr_to_signal(si->node, config.min_snr)) {
                        ev.reason = UEV_REASON_LOW_SIGNAL;
                        ev.threshold.cur = si->signal;
-                       ev.threshold.ref = min_signal;
+                       ev.threshold.ref = snr_to_signal(si->node, config.min_snr);
                        ret = false;
                        goto out;
                } else if (!config.assoc_steering) {