mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add ability of station count to config file
This commit is contained in:
parent
e2a16404b1
commit
3b6f6e1fc4
4 changed files with 37 additions and 27 deletions
|
|
@ -209,6 +209,14 @@ struct probe_metric_s uci_get_dawn_metric() {
|
|||
if (ptr.o->type == UCI_TYPE_STRING)
|
||||
ret.bandwith_threshold = atoi(ptr.o->v.string);
|
||||
|
||||
char tmp_use_station_count[] = "dawn.metric.use_station_count";
|
||||
if (uci_lookup_ptr(c, &ptr, tmp_use_station_count, 1) != UCI_OK) {
|
||||
uci_perror(c, "uci_get_daw_metric Error");
|
||||
return ret;
|
||||
}
|
||||
if (ptr.o->type == UCI_TYPE_STRING)
|
||||
ret.use_station_count = atoi(ptr.o->v.string);
|
||||
|
||||
printf("Loaded metric: %d\n", ret.min_probe_count);
|
||||
|
||||
uci_free_context(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue