3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 18:59:22 +01:00

device: Only build autoconnect_list in autoconnect mode

This commit is contained in:
Andrew Zaborowski 2016-08-01 14:18:24 +02:00 committed by Denis Kenzior
parent 866ff95c48
commit 8f90df6f44

View File

@ -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;