mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
network: sync known network frequency on BSS update
When a scan_bss is updated in the BSS list of a known network, it may be on a new frequency. Sync the known frequencies list accordingly.
This commit is contained in:
parent
38ded68a38
commit
f50a51d943
@ -691,6 +691,12 @@ bool network_bss_update(struct network *network, struct scan_bss *bss)
|
||||
|
||||
l_queue_insert(network->bss_list, bss, scan_bss_rank_compare, NULL);
|
||||
|
||||
/* Sync frequency for already known networks */
|
||||
if (network->info) {
|
||||
known_network_add_frequency(network->info, bss->frequency);
|
||||
known_network_frequency_sync(network->info);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user