mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-20 04:19:25 +01: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:
parent
4577ee01f2
commit
2b5e566c9d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user