mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add debug output
This commit is contained in:
parent
8ef4b81823
commit
3456d526f3
1 changed files with 4 additions and 3 deletions
|
@ -190,6 +190,7 @@ int build_network_overview(struct blob_buf *b)
|
||||||
int k;
|
int k;
|
||||||
sprintf(ap_mac_buf, MACSTR, MAC2STR(client_array[i].bssid_addr));
|
sprintf(ap_mac_buf, MACSTR, MAC2STR(client_array[i].bssid_addr));
|
||||||
ap_list = blobmsg_open_table(b, ap_mac_buf);
|
ap_list = blobmsg_open_table(b, ap_mac_buf);
|
||||||
|
printf("AP MAC BUF: %s\n", ap_mac_buf);
|
||||||
for (k = i; i <= client_entry_last; k++){
|
for (k = i; i <= client_entry_last; k++){
|
||||||
if(!mac_is_equal(client_array[k].bssid_addr, client_array[i].bssid_addr))
|
if(!mac_is_equal(client_array[k].bssid_addr, client_array[i].bssid_addr))
|
||||||
{
|
{
|
||||||
|
@ -232,12 +233,12 @@ int eval_probe_metric(struct probe_entry_s probe_entry) {
|
||||||
score += (probe_entry.signal >= dawn_metric.rssi_val) ? 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;
|
score += (probe_entry.signal <= dawn_metric.low_rssi_val) ? dawn_metric.low_rssi : 0;
|
||||||
|
|
||||||
printf("SCORE: %d of:\n", score);
|
|
||||||
print_probe_entry(probe_entry);
|
|
||||||
|
|
||||||
if(score < 0)
|
if(score < 0)
|
||||||
score = 0;
|
score = 0;
|
||||||
|
|
||||||
|
printf("SCORE: %d of:\n", score);
|
||||||
|
print_probe_entry(probe_entry);
|
||||||
|
|
||||||
return score;
|
return score;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue