summaryrefslogtreecommitdiff
path: root/src/supplicant/nm-supplicant-interface.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-03-24 11:52:01 +0100
committerThomas Haller <thaller@redhat.com>2020-04-03 11:26:49 +0200
commitebedd0d792b9005aed482006111ea0f9d64cc9e7 (patch)
treea8fa24e85add09e12503bb001f0037ebd3a78ebe /src/supplicant/nm-supplicant-interface.c
parent93a6bcc8a28dedbd5b0f266e545141cf8d55a309 (diff)
supplicant: log message whenever we request scanning
It's important to clearly see in the log when we actually request a scan.
Diffstat (limited to 'src/supplicant/nm-supplicant-interface.c')
-rw-r--r--src/supplicant/nm-supplicant-interface.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/supplicant/nm-supplicant-interface.c b/src/supplicant/nm-supplicant-interface.c
index 9725b983dd..12d808a832 100644
--- a/src/supplicant/nm-supplicant-interface.c
+++ b/src/supplicant/nm-supplicant-interface.c
@@ -2318,12 +2318,13 @@ scan_request_cb (GObject *source, GAsyncResult *result, gpointer user_data)
self = NM_SUPPLICANT_INTERFACE (user_data);
if (error) {
if (_nm_dbus_error_has_name (error, "fi.w1.wpa_supplicant1.Interface.ScanError"))
- _LOGD ("could not get scan request result: %s", error->message);
+ _LOGD ("request-scan: could not get scan request result: %s", error->message);
else {
g_dbus_error_strip_remote_error (error);
- _LOGW ("could not get scan request result: %s", error->message);
+ _LOGW ("request-scan: could not get scan request result: %s", error->message);
}
- }
+ } else
+ _LOGT ("request-scan: request scanning success");
}
void
@@ -2339,7 +2340,8 @@ nm_supplicant_interface_request_scan (NMSupplicantInterface *self,
priv = NM_SUPPLICANT_INTERFACE_GET_PRIVATE (self);
- /* Scan parameters */
+ _LOGT ("request-scan: request scanning (%u ssids)...", ssids_len);
+
g_variant_builder_init (&builder, G_VARIANT_TYPE_VARDICT);
g_variant_builder_add (&builder, "{sv}", "Type", g_variant_new_string ("active"));
g_variant_builder_add (&builder, "{sv}", "AllowRoam", g_variant_new_boolean (FALSE));