station: ignore AP directed roams if not connected

This commit is contained in:
Denis Kenzior 2022-04-05 09:58:39 -05:00
parent 3169bfee19
commit 3fad65e5df
1 changed files with 5 additions and 0 deletions

View File

@ -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;