mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-30 06:39:46 +01:00
device: Set current BSS rank to 0 if not in scan results
If we're adding the BSS to the list only because it is the current BSS, set the rank to 0 (lowest possible value) in case the list gets used in the next Connect call.
This commit is contained in:
parent
6e03933e62
commit
0cd18a0214
@ -355,6 +355,7 @@ void device_set_scan_results(struct device *device, struct l_queue *bss_list)
|
||||
|
||||
if (!bss) {
|
||||
l_warn("Connected BSS not in scan results!");
|
||||
device->connected_bss->rank = 0;
|
||||
l_queue_push_tail(device->bss_list,
|
||||
device->connected_bss);
|
||||
network_bss_add(device->connected_network,
|
||||
|
Loading…
Reference in New Issue
Block a user