policy: always accept auth requests
authorFelix Fietkau <nbd@nbd.name>
Mon, 12 Apr 2021 10:10:17 +0000 (12:10 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 12 Apr 2021 10:10:17 +0000 (12:10 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
policy.c

index 6f75f69f5a183130492c5ee557457c0f3157a3a7..c528bfa650715a77bce04f508af61de75ea6c43a 100644 (file)
--- a/policy.c
+++ b/policy.c
@@ -140,7 +140,7 @@ usteer_check_request(struct sta_info *si, enum usteer_event_type type)
        struct sta_info *si_new;
        int min_signal;
 
-       if (type == EVENT_TYPE_ASSOC)
+       if (type == EVENT_TYPE_AUTH)
                return true;
 
        if (si->stats[type].blocked_cur >= config.max_retry_band) {