mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-27 10:52:47 +01:00
device: Only build autoconnect_list in autoconnect mode
This commit is contained in:
parent
866ff95c48
commit
8f90df6f44
@ -356,6 +356,9 @@ static void process_bss(struct device *device, struct scan_bss *bss,
|
||||
|
||||
network_bss_add(network, bss);
|
||||
|
||||
if (device->state != DEVICE_STATE_AUTOCONNECT)
|
||||
return;
|
||||
|
||||
/* See if network is autoconnectable (is a known network) */
|
||||
if (!network_rankmod(network, &rankmod))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user