policy: count kick total
Always increase the kick-counter when usteer de-associates a STA. This was previously exclusively done when kicking clients due to insufficient SNR. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
2
policy.c
2
policy.c
@@ -477,8 +477,6 @@ usteer_local_node_snr_kick(struct usteer_local_node *ln)
|
|||||||
if (si->below_min_snr <= min_count)
|
if (si->below_min_snr <= min_count)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
si->kick_count++;
|
|
||||||
|
|
||||||
ev.type = UEV_SIGNAL_KICK;
|
ev.type = UEV_SIGNAL_KICK;
|
||||||
ev.threshold.cur = si->signal;
|
ev.threshold.cur = si->signal;
|
||||||
ev.count = si->kick_count;
|
ev.count = si->kick_count;
|
||||||
|
1
ubus.c
1
ubus.c
@@ -751,6 +751,7 @@ void usteer_ubus_kick_client(struct sta_info *si)
|
|||||||
blobmsg_add_u8(&b, "deauth", 1);
|
blobmsg_add_u8(&b, "deauth", 1);
|
||||||
ubus_invoke(ubus_ctx, ln->obj_id, "del_client", b.head, NULL, 0, 100);
|
ubus_invoke(ubus_ctx, ln->obj_id, "del_client", b.head, NULL, 0, 100);
|
||||||
usteer_sta_disconnected(si);
|
usteer_sta_disconnected(si);
|
||||||
|
si->kick_count++;
|
||||||
si->roam_kick = current_time;
|
si->roam_kick = current_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user