summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Zaborowski <andrew.zaborowski@intel.com>2020-10-22 16:14:32 +0200
committerThomas Haller <thaller@redhat.com>2020-11-12 15:35:55 +0100
commitab87cbd89cb09cbe72da13d4d4c14d66e95908b4 (patch)
treee1ed4abdba863c6c8d5412a8610ae6a98ebea5d0
parent7d23d77c7e477aaef5fb61ed721c7d44f6394e5a (diff)
downloadNetworkManager-ab87cbd89cb09cbe72da13d4d4c14d66e95908b4.tar.gz
iwd: Allow scanning in NM_DEVICE_STATE_NEED_AUTH
In this state, same as in DISCONNECTED or ACTIVATED, allow scanning if IWD is in the "connected" or "disconnected" states as there's no reason not to scan.
-rw-r--r--src/devices/wifi/nm-device-iwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c
index e41490a34d..c40504c91c 100644
--- a/src/devices/wifi/nm-device-iwd.c
+++ b/src/devices/wifi/nm-device-iwd.c
@@ -1202,7 +1202,6 @@ check_scanning_prohibited(NMDeviceIwd *self, gboolean periodic)
case NM_DEVICE_STATE_UNAVAILABLE:
case NM_DEVICE_STATE_PREPARE:
case NM_DEVICE_STATE_CONFIG:
- case NM_DEVICE_STATE_NEED_AUTH:
case NM_DEVICE_STATE_IP_CONFIG:
case NM_DEVICE_STATE_IP_CHECK:
case NM_DEVICE_STATE_SECONDARIES:
@@ -1212,6 +1211,7 @@ check_scanning_prohibited(NMDeviceIwd *self, gboolean periodic)
case NM_DEVICE_STATE_DISCONNECTED:
case NM_DEVICE_STATE_FAILED:
case NM_DEVICE_STATE_ACTIVATED:
+ case NM_DEVICE_STATE_NEED_AUTH:
break;
}