Lower min probe req

This commit is contained in:
PolynomialDivision 2017-09-10 22:42:23 +02:00
parent 2f310adf86
commit 5a3d431fdf
2 changed files with 5 additions and 4 deletions

View file

@ -4,7 +4,7 @@
#include <libubox/blobmsg_json.h>
#include "datastorage.h"
#define MIN_PROBE_REQ 5 // TODO: Parse from config file...
#define MIN_PROBE_REQ 2 // TODO: Parse from config file...
int dawn_init_ubus(const char *ubus_socket, char *hostapd_dir);

View file

@ -59,7 +59,8 @@ int eval_probe_metric(struct probe_entry_s probe_entry) {
score += (probe_entry.signal > -60) ? dawn_metric.rssi : 0;
// TODO: Add minimal rssi threshold
//printf("SCORE: %d\n", score);
printf("SCORE: %d\n", score);
print_probe_entry(probe_entry);
return score;
}
@ -817,8 +818,8 @@ void print_probe_entry(probe_entry entry) {
printf(
"bssid_addr: %s, client_addr: %s, signal: %d, freq: "
"%d, counter: %d\n",
mac_buf_ap, mac_buf_client, entry.signal, entry.freq, entry.counter);
"%d, counter: %d, vht: %d\n",
mac_buf_ap, mac_buf_client, entry.signal, entry.freq, entry.counter, entry.vht_support);
}
void print_auth_entry(auth_entry entry) {