policy: don't alter stats when remaining idle
Don't alter roam-sm stats when remaining idle. Previously, a roam-sm-event was registered when keeping the idle-state. Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
9
policy.c
9
policy.c
@@ -264,14 +264,15 @@ static void
|
|||||||
usteer_roam_set_state(struct sta_info *si, enum roam_trigger_state state,
|
usteer_roam_set_state(struct sta_info *si, enum roam_trigger_state state,
|
||||||
struct uevent *ev)
|
struct uevent *ev)
|
||||||
{
|
{
|
||||||
si->roam_event = current_time;
|
/* NOP in case we remain idle */
|
||||||
|
if (si->roam_state == state && si->roam_state == ROAM_TRIGGER_IDLE) {
|
||||||
if (si->roam_state == state) {
|
|
||||||
if (si->roam_state == ROAM_TRIGGER_IDLE) {
|
|
||||||
si->roam_tries = 0;
|
si->roam_tries = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
si->roam_event = current_time;
|
||||||
|
|
||||||
|
if (si->roam_state == state) {
|
||||||
si->roam_tries++;
|
si->roam_tries++;
|
||||||
} else {
|
} else {
|
||||||
si->roam_tries = 0;
|
si->roam_tries = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user