mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
use max station diff
This commit is contained in:
parent
03f9592472
commit
2352474a36
4 changed files with 6 additions and 3 deletions
|
@ -34,11 +34,12 @@ config metric
|
||||||
option low_rssi_val '-80'
|
option low_rssi_val '-80'
|
||||||
option chan_util_val '140'
|
option chan_util_val '140'
|
||||||
option max_chan_util_val '170'
|
option max_chan_util_val '170'
|
||||||
option min_probe_count '0'
|
option min_probe_count '1'
|
||||||
option bandwith_threshold '6'
|
option bandwith_threshold '6'
|
||||||
option use_station_count '1'
|
option use_station_count '1'
|
||||||
|
option max_station_diff '1'
|
||||||
option eval_probe_req '0'
|
option eval_probe_req '0'
|
||||||
option eval_auth_req '0' # no real reasoncode...
|
option eval_auth_req '0' # no real reasoncode...
|
||||||
option eval_assoc_req '1' # just deny assocs...
|
option eval_assoc_req '1' # just deny assocs...
|
||||||
option deny_auth_reason '1' # unspecified
|
option deny_auth_reason '1' # unspecified
|
||||||
option deny_assoc_reason '17' # assoc rejected can't handle new station
|
option deny_assoc_reason '17' # assoc rejected can't handle new station
|
||||||
|
|
|
@ -49,6 +49,7 @@ struct probe_metric_s {
|
||||||
int min_probe_count;
|
int min_probe_count;
|
||||||
int bandwith_threshold;
|
int bandwith_threshold;
|
||||||
int use_station_count;
|
int use_station_count;
|
||||||
|
int max_station_diff;
|
||||||
int eval_probe_req;
|
int eval_probe_req;
|
||||||
int eval_auth_req;
|
int eval_auth_req;
|
||||||
int eval_assoc_req;
|
int eval_assoc_req;
|
||||||
|
|
|
@ -284,7 +284,7 @@ int compare_station_count(uint8_t *bssid_addr_own, uint8_t *bssid_addr_to_compar
|
||||||
}
|
}
|
||||||
printf("AFTER: Comparing own %d to %d\n", sta_count, sta_count_to_compare);
|
printf("AFTER: Comparing own %d to %d\n", sta_count, sta_count_to_compare);
|
||||||
|
|
||||||
return sta_count > sta_count_to_compare;
|
return sta_count - sta_count_to_compare < dawn_metric.max_station_diff;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -71,6 +71,7 @@ struct probe_metric_s uci_get_dawn_metric() {
|
||||||
ret.eval_assoc_req = uci_lookup_option_int(uci_ctx, s, "eval_assoc_req");
|
ret.eval_assoc_req = uci_lookup_option_int(uci_ctx, s, "eval_assoc_req");
|
||||||
ret.deny_auth_reason = uci_lookup_option_int(uci_ctx, s, "deny_auth_reason");
|
ret.deny_auth_reason = uci_lookup_option_int(uci_ctx, s, "deny_auth_reason");
|
||||||
ret.deny_assoc_reason = uci_lookup_option_int(uci_ctx, s, "deny_assoc_reason");
|
ret.deny_assoc_reason = uci_lookup_option_int(uci_ctx, s, "deny_assoc_reason");
|
||||||
|
ret.max_station_diff = uci_lookup_option_int(uci_ctx, s, "max_station_diff");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue