mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add a lowest rssi
This commit is contained in:
parent
9825ba64c8
commit
f2c6f15dfc
4 changed files with 27 additions and 6 deletions
|
|
@ -79,7 +79,8 @@ int eval_probe_metric(struct probe_entry_s probe_entry) {
|
|||
}
|
||||
|
||||
score += (probe_entry.freq > 5000) ? dawn_metric.freq : 0;
|
||||
score += (probe_entry.signal >= dawn_metric.min_rssi) ? dawn_metric.rssi : 0;
|
||||
score += (probe_entry.signal >= dawn_metric.rssi_val) ? dawn_metric.rssi : 0;
|
||||
score += (probe_entry.signal <= dawn_metric.low_rssi_val) ? dawn_metric.low_rssi : 0;
|
||||
|
||||
printf("SCORE: %d\n", score);
|
||||
print_probe_entry(probe_entry);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue