mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
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.
This commit is contained in:
parent
14aa333a39
commit
42273fd122
@ -2533,6 +2533,8 @@ static void station_transition_start(struct station *station)
|
|||||||
while ((rbss = l_queue_peek_head(station->roam_bss_list))) {
|
while ((rbss = l_queue_peek_head(station->roam_bss_list))) {
|
||||||
struct scan_bss *bss = network_bss_find_by_addr(
|
struct scan_bss *bss = network_bss_find_by_addr(
|
||||||
station->connected_network, rbss->addr);
|
station->connected_network, rbss->addr);
|
||||||
|
if (L_WARN_ON(!bss))
|
||||||
|
continue;
|
||||||
|
|
||||||
roaming = station_try_next_transition(station, bss,
|
roaming = station_try_next_transition(station, bss,
|
||||||
rbss->ft_failed);
|
rbss->ft_failed);
|
||||||
|
Loading…
Reference in New Issue
Block a user