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; }