aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2024-02-27 13:16:18 -0800
committerDenis Kenzior <denkenz@gmail.com>2024-02-27 16:04:11 -0600
commit42273fd1228eb27df00fe30a09bc175e0a5ae036 (patch)
treed68d2fbe8a854729307d218bb594431cf31b2046
parent14aa333a3986bf501962d1a2f2d585894010b42c (diff)
station: warn on missing scan_bss in station_transition_start
This shouldn't be possible in theory since the roam_bss_list being iterated is a subset of entire scan_bss list station/network has but to be safe, and catch any issues due to future changes warn on this condition.
-rw-r--r--src/station.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/station.c b/src/station.c
index 477f444a1..641068cc4 100644
--- a/src/station.c
+++ b/src/station.c
@@ -2533,6 +2533,8 @@ static void station_transition_start(struct station *station)
while ((rbss = l_queue_peek_head(station->roam_bss_list))) {
struct scan_bss *bss = network_bss_find_by_addr(
station->connected_network, rbss->addr);
+ if (L_WARN_ON(!bss))
+ continue;
roaming = station_try_next_transition(station, bss,
rbss->ft_failed);