about summary refs log tree commit diff
path: root/src/libnmc-base
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2024-09-01 22:38:46 +0200
committerMichael Biebl <biebl@debian.org>2024-09-01 22:38:46 +0200
commite89be0baafbf2359719e7150e374d9e3efde4513 (patch)
treeaeb24b61eb3ef72efd98bbc7de168df952f95a6b /src/libnmc-base
parent81f4784c87916c34bda1865ca8aafdff7f8ba55a (diff)
parentf9bfd1158b8d08d6a5ed3bb7cc1ba7a6455e5201 (diff)
Update upstream source from tag 'upstream/1.49.90'
Update to upstream version '1.49.90'
with Debian dir 91100697245f76450c5ee1f238e8a69862e0f418
Diffstat (limited to 'src/libnmc-base')
-rw-r--r--src/libnmc-base/nm-secret-agent-simple.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/libnmc-base/nm-secret-agent-simple.c b/src/libnmc-base/nm-secret-agent-simple.c
index 9d1a2ae9..b6945de7 100644
--- a/src/libnmc-base/nm-secret-agent-simple.c
+++ b/src/libnmc-base/nm-secret-agent-simple.c
@@ -907,9 +907,15 @@ request_secrets_from_ui(RequestData *request)
         ssid_utf8  = nm_utils_ssid_to_utf8(g_bytes_get_data(ssid, NULL), g_bytes_get_size(ssid));
 
         title = _("Authentication required by wireless network");
-        msg   = g_strdup_printf(
-            _("Passwords or encryption keys are required to access the wireless network '%s'."),
-            ssid_utf8);
+        if (request->flags & NM_SECRET_AGENT_GET_SECRETS_FLAG_WPS_PBC_ACTIVE) {
+            msg = g_strdup_printf(_("Push of the WPS button on the router or a password is "
+                                    "required to access the wireless network '%s'."),
+                                  ssid_utf8);
+        } else {
+            msg = g_strdup_printf(
+                _("Passwords or encryption keys are required to access the wireless network '%s'."),
+                ssid_utf8);
+        }
 
         if (!add_wireless_secrets(request, secrets))
             goto out_fail;