policy: always accept assoc requests by default

Only steer using probe responses to avoid connection issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2021-04-12 12:14:05 +02:00
parent d7a7f147fa
commit 47794506ce
4 changed files with 7 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ uci_usteer() {
uci_option_to_json_bool "$cfg" syslog
uci_option_to_json_bool "$cfg" load_kick_enabled
uci_option_to_json_bool "$cfg" assoc_steering
uci_option_to_json_string "$cfg" node_up_script
for opt in \

View File

@@ -143,6 +143,9 @@ usteer_check_request(struct sta_info *si, enum usteer_event_type type)
if (type == EVENT_TYPE_AUTH)
return true;
if (type == EVENT_TYPE_ASSOC && !config.assoc_steering)
return true;
if (si->stats[type].blocked_cur >= config.max_retry_band) {
MSG_T_STA("max_retry_band", si->sta->addr,
"max retry (%u) exceeded\n", config.max_retry_band);

1
ubus.c
View File

@@ -148,6 +148,7 @@ struct cfg_item {
_cfg(U32, load_balancing_threshold), \
_cfg(U32, band_steering_threshold), \
_cfg(U32, remote_update_interval), \
_cfg(BOOL, assoc_steering), \
_cfg(I32, min_connect_snr), \
_cfg(I32, min_snr), \
_cfg(I32, roam_scan_snr), \

View File

@@ -126,6 +126,8 @@ struct usteer_config {
uint32_t max_retry_band;
uint32_t seen_policy_timeout;
bool assoc_steering;
uint32_t band_steering_threshold;
uint32_t load_balancing_threshold;