default send always probes

This commit is contained in:
Martin/Geno 2018-08-23 17:49:07 +02:00
parent 60dd1f8e13
commit 64c6479201
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
3 changed files with 4 additions and 4 deletions

View File

@ -11,9 +11,9 @@ bool config_client_clean_authed = false;
bool config_client_force = false; bool config_client_force = false;
bool config_client_force_probe = false; bool config_client_force_probe = false;
bool config_client_probe_steering = true; bool config_client_probe_steering = false;
// steering contains learning already // steering contains learning already
bool config_client_probe_learning = false; bool config_client_probe_learning = true;
#ifndef MINI #ifndef MINI
bool config_client_socket_learning = true; bool config_client_socket_learning = true;

View File

@ -159,7 +159,7 @@ static int receive_notify(struct ubus_context *ctx, struct ubus_object *obj, str
} }
if(config_client_probe_learning) { if(config_client_probe_learning) {
log_verbose("%s["MACSTR"] freq: %d signal %d -> learn\n", method, MAC2STR(addr), hclient.freq, hclient.ssi_signal); log_verbose("%s["MACSTR"] freq: %d signal %d -> learn\n", method, MAC2STR(addr), hclient.freq, hclient.ssi_signal);
wifi_clients_learn(&hclient); wifi_clients_learn(&hclient);
} }
} else { } else {
wifi_clients_disconnect(&hclient); wifi_clients_disconnect(&hclient);

View File

@ -181,7 +181,7 @@ int wifi_clients_try(struct hostapd_client *hclient) {
return 0; return 0;
} }
if (client->freq_highest > WIFI_CLIENT_FREQ_THREASHOLD) { if (client->freq_highest > WIFI_CLIENT_FREQ_THREASHOLD) {
if (config_client_force || config_client_force_probe && !hclient->auth) { if (config_client_force && hclient->auth || config_client_force_probe && !hclient->auth) {
if(!hclient->auth){ if(!hclient->auth){
log_verbose("reject - force\n"); log_verbose("reject - force\n");
return -1; return -1;