From 6ce0c064ac319fa2c763052263e1e1ee0dc654c2 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 18 Jan 2021 13:26:09 +0100 Subject: [PATCH] examples: add comment about scanning to "python/dbus/show-bssids.py" example https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/630 --- examples/python/dbus/show-bssids.py | 5 +++++ 1 file changed, 5 insertions(+) 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