3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-02 17:38:45 +02:00

station: use network_bss_update

This fixes a dangling pointer in network where station was
freeing the scan_bss but network still had a pointer to it
in its own bss_list.
This commit is contained in:
James Prestwood 2021-03-15 12:15:29 -07:00 committed by Denis Kenzior
parent 4577ee01f2
commit 2b5e566c9d

View File

@ -2303,6 +2303,8 @@ static void station_event_roamed(struct station *station, struct scan_bss *new)
{ {
struct scan_bss *stale; struct scan_bss *stale;
network_bss_update(station->connected_network, new);
/* Remove new BSS if it exists in past scan results */ /* Remove new BSS if it exists in past scan results */
stale = l_queue_remove_if(station->bss_list, bss_match_bssid, stale = l_queue_remove_if(station->bss_list, bss_match_bssid,
new->addr); new->addr);