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:
@@ -53,6 +53,7 @@ uci_usteer() {
|
|||||||
|
|
||||||
uci_option_to_json_bool "$cfg" syslog
|
uci_option_to_json_bool "$cfg" syslog
|
||||||
uci_option_to_json_bool "$cfg" load_kick_enabled
|
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
|
uci_option_to_json_string "$cfg" node_up_script
|
||||||
|
|
||||||
for opt in \
|
for opt in \
|
||||||
|
3
policy.c
3
policy.c
@@ -143,6 +143,9 @@ usteer_check_request(struct sta_info *si, enum usteer_event_type type)
|
|||||||
if (type == EVENT_TYPE_AUTH)
|
if (type == EVENT_TYPE_AUTH)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (type == EVENT_TYPE_ASSOC && !config.assoc_steering)
|
||||||
|
return true;
|
||||||
|
|
||||||
if (si->stats[type].blocked_cur >= config.max_retry_band) {
|
if (si->stats[type].blocked_cur >= config.max_retry_band) {
|
||||||
MSG_T_STA("max_retry_band", si->sta->addr,
|
MSG_T_STA("max_retry_band", si->sta->addr,
|
||||||
"max retry (%u) exceeded\n", config.max_retry_band);
|
"max retry (%u) exceeded\n", config.max_retry_band);
|
||||||
|
1
ubus.c
1
ubus.c
@@ -148,6 +148,7 @@ struct cfg_item {
|
|||||||
_cfg(U32, load_balancing_threshold), \
|
_cfg(U32, load_balancing_threshold), \
|
||||||
_cfg(U32, band_steering_threshold), \
|
_cfg(U32, band_steering_threshold), \
|
||||||
_cfg(U32, remote_update_interval), \
|
_cfg(U32, remote_update_interval), \
|
||||||
|
_cfg(BOOL, assoc_steering), \
|
||||||
_cfg(I32, min_connect_snr), \
|
_cfg(I32, min_connect_snr), \
|
||||||
_cfg(I32, min_snr), \
|
_cfg(I32, min_snr), \
|
||||||
_cfg(I32, roam_scan_snr), \
|
_cfg(I32, roam_scan_snr), \
|
||||||
|
2
usteer.h
2
usteer.h
@@ -126,6 +126,8 @@ struct usteer_config {
|
|||||||
uint32_t max_retry_band;
|
uint32_t max_retry_band;
|
||||||
uint32_t seen_policy_timeout;
|
uint32_t seen_policy_timeout;
|
||||||
|
|
||||||
|
bool assoc_steering;
|
||||||
|
|
||||||
uint32_t band_steering_threshold;
|
uint32_t band_steering_threshold;
|
||||||
uint32_t load_balancing_threshold;
|
uint32_t load_balancing_threshold;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user