From 3fad65e5df5f071962fa324796298a8544046bbc Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 5 Apr 2022 09:58:39 -0500 Subject: [PATCH] station: ignore AP directed roams if not connected --- src/station.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/station.c b/src/station.c index b83e6372..33c8bdd0 100644 --- a/src/station.c +++ b/src/station.c @@ -2642,6 +2642,11 @@ static void station_ap_directed_roam(struct station *station, pos += url_len; } + if (station->state != STATION_STATE_CONNECTED) { + l_debug("roam: unexpected AP directed roam -- ignore"); + return; + } + station->ap_directed_roaming = true; station->preparing_roam = true;