summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-01-26 11:42:10 +0100
committerThomas Haller <thaller@redhat.com>2021-01-26 11:42:46 +0100
commitc1529dab36dc095c96c6c89c2c06f088f79405f1 (patch)
treef0171061e131da810ebba39a85241378f1bb3e5a
parent004980a38c78be5a11b789bc982c35ea44fb3af0 (diff)
downloadNetworkManager-c1529dab36dc095c96c6c89c2c06f088f79405f1.tar.gz
examples: minor bugfix comparing device state in "python/dbus/show-bssids.py"
-rwxr-xr-xexamples/python/dbus/show-bssids.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/dbus/show-bssids.py b/examples/python/dbus/show-bssids.py
index 7db0fd3e1e..17364e4975 100755
--- a/examples/python/dbus/show-bssids.py
+++ b/examples/python/dbus/show-bssids.py
@@ -35,7 +35,7 @@ for d in devices:
# Make sure the device is enabled before we try to use it
state = prop_iface.Get("org.freedesktop.NetworkManager.Device", "State")
- if state <= 2:
+ if state <= 20: # NM_DEVICE_STATE_UNAVAILABLE
continue
# Get device's type; we only want wifi devices