diff --git a/wireless/wifictld/src/config.c b/wireless/wifictld/src/config.c index 4ae86e5..6f1e4a8 100644 --- a/wireless/wifictld/src/config.c +++ b/wireless/wifictld/src/config.c @@ -11,9 +11,9 @@ bool config_client_clean_authed = false; bool config_client_force = false; bool config_client_force_probe = false; -bool config_client_probe_steering = true; +bool config_client_probe_steering = false; // steering contains learning already -bool config_client_probe_learning = false; +bool config_client_probe_learning = true; #ifndef MINI bool config_client_socket_learning = true; diff --git a/wireless/wifictld/src/ubus_events.c b/wireless/wifictld/src/ubus_events.c index 1a4feb9..84c91e0 100644 --- a/wireless/wifictld/src/ubus_events.c +++ b/wireless/wifictld/src/ubus_events.c @@ -159,7 +159,7 @@ static int receive_notify(struct ubus_context *ctx, struct ubus_object *obj, str } if(config_client_probe_learning) { 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 { wifi_clients_disconnect(&hclient); diff --git a/wireless/wifictld/src/wifi_clients.c b/wireless/wifictld/src/wifi_clients.c index 2125a69..c77f95e 100644 --- a/wireless/wifictld/src/wifi_clients.c +++ b/wireless/wifictld/src/wifi_clients.c @@ -181,7 +181,7 @@ int wifi_clients_try(struct hostapd_client *hclient) { return 0; } 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){ log_verbose("reject - force\n"); return -1;