From 73a36f34b3d0eaaaf64915eb1846633c18605dc5 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Sat, 30 Dec 2017 13:23:58 +0100 Subject: [PATCH] low rssi and so on --- files/dawn.config | 2 +- src/storage/datastorage.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/files/dawn.config b/files/dawn.config index 983afc8..21144b6 100644 --- a/files/dawn.config +++ b/files/dawn.config @@ -24,7 +24,7 @@ config metric option no_ht_support '0' option no_vht_support '0' option rssi '0' - option low_rssi '0' + option low_rssi '-500' option freq '100' option chan_util '0' option max_chan_util '0' diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index dc5d1ed..0cee332 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -235,6 +235,9 @@ int eval_probe_metric(struct probe_entry_s probe_entry) { printf("SCORE: %d of:\n", score); print_probe_entry(probe_entry); + if(score < 0) + score = 0; + return score; }