summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Zaborowski <andrew.zaborowski@intel.com>2021-02-11 15:50:14 +0100
committerThomas Haller <thaller@redhat.com>2021-02-11 16:34:09 +0100
commit190ed7b2c98cc41f2b8c852b8a0563644d509b46 (patch)
tree812dd488b19fba74586e09d8068e0b7d62adf764
parentc8b283b818bb38a3cfdb149aa9be160b786aa5d7 (diff)
downloadNetworkManager-190ed7b2c98cc41f2b8c852b8a0563644d509b46.tar.gz
iwd: Fix agent DBus method parameter types
The object path DBus type wasn't being used correctly in the parameters signatures, fix them.
-rw-r--r--src/core/devices/wifi/nm-device-iwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/devices/wifi/nm-device-iwd.c b/src/core/devices/wifi/nm-device-iwd.c
index 75b0f81aa5..f0de90d3fc 100644
--- a/src/core/devices/wifi/nm-device-iwd.c
+++ b/src/core/devices/wifi/nm-device-iwd.c
@@ -1282,14 +1282,14 @@ get_agent_request_network_path(GDBusMethodInvocation *invocation)
const char *network_path = NULL;
if (nm_streq(method_name, "RequestPassphrase"))
- g_variant_get(params, "(s)", &network_path);
+ g_variant_get(params, "(o)", &network_path);
else if (nm_streq(method_name, "RequestPrivateKeyPassphrase"))
- g_variant_get(params, "(s)", &network_path);
+ g_variant_get(params, "(o)", &network_path);
else if (nm_streq(method_name, "RequestUserNameAndPassword"))
- g_variant_get(params, "(s)", &network_path);
+ g_variant_get(params, "(o)", &network_path);
else if (nm_streq(method_name, "RequestUserPassword")) {
const char *user;
- g_variant_get(params, "(ss)", &network_path, &user);
+ g_variant_get(params, "(os)", &network_path, &user);
}
return network_path;