summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-01-18 13:26:09 +0100
committerThomas Haller <thaller@redhat.com>2021-01-18 13:26:12 +0100
commit6ce0c064ac319fa2c763052263e1e1ee0dc654c2 (patch)
tree1bee51b075a90b9cc6a4f53063825b198bf6e062
parenteafa96c06a1ac86fed44ba081352b5d8f616442a (diff)
downloadNetworkManager-6ce0c064ac319fa2c763052263e1e1ee0dc654c2.tar.gz
examples: add comment about scanning to "python/dbus/show-bssids.py" example
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/630
-rwxr-xr-xexamples/python/dbus/show-bssids.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/python/dbus/show-bssids.py b/examples/python/dbus/show-bssids.py
index 7a53a53c91..7db0fd3e1e 100755
--- a/examples/python/dbus/show-bssids.py
+++ b/examples/python/dbus/show-bssids.py
@@ -7,6 +7,11 @@
# This example prints out all the AP BSSIDs that all Wi-Fi devices on the
# machine can see. Useful for location-based services like Skyhook that
# can geolocate you based on the APs you can see.
+#
+# Note that with NetworkManager clients are required to request scanning.
+# If you don't do that, the scan list may be outdated. That means, you would
+# check the LastScan property, and if necessary call RequestScan() first.
+# After RequestScan(), you wait until the LastScan property gets bumped again.
import dbus