mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-02 08:19:24 +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) {
|
if (!bss) {
|
||||||
l_warn("Connected BSS not in scan results!");
|
l_warn("Connected BSS not in scan results!");
|
||||||
|
device->connected_bss->rank = 0;
|
||||||
l_queue_push_tail(device->bss_list,
|
l_queue_push_tail(device->bss_list,
|
||||||
device->connected_bss);
|
device->connected_bss);
|
||||||
network_bss_add(device->connected_network,
|
network_bss_add(device->connected_network,
|
||||||
|
Loading…
Reference in New Issue
Block a user