From 472f89da6b5dbd88ffd0815966dfaeb98dd8e024 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 22 Jan 2019 23:17:50 +0100 Subject: [PATCH] wifi,clients/secret-agent: use defines for property names in secret hints --- clients/common/nm-secret-agent-simple.c | 2 +- src/devices/wifi/nm-device-iwd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c index 3eee3fe263..f649316fe3 100644 --- a/clients/common/nm-secret-agent-simple.c +++ b/clients/common/nm-secret-agent-simple.c @@ -780,7 +780,7 @@ request_secrets_from_ui (RequestData *request) } else if (nm_connection_is_type (request->connection, NM_SETTING_GSM_SETTING_NAME)) { NMSettingGsm *s_gsm = nm_connection_get_setting_gsm (request->connection); - if (g_strv_contains (NM_CAST_STRV_CC (request->hints), "pin")) { + if (g_strv_contains (NM_CAST_STRV_CC (request->hints), NM_SETTING_GSM_PIN)) { title = _("PIN code required"); msg = g_strdup (_("PIN code is needed for the mobile broadband device")); diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c index 88422eb150..5fcf6dff23 100644 --- a/src/devices/wifi/nm-device-iwd.c +++ b/src/devices/wifi/nm-device-iwd.c @@ -1894,7 +1894,7 @@ act_stage2_config (NMDevice *device, NMDeviceStateReason *out_failure_reason) TRUE, NM_SETTING_WIRELESS_SECURITY_SETTING_NAME, NM_SECRET_AGENT_GET_SECRETS_FLAG_ALLOW_INTERACTION, - NM_MAKE_STRV ("psk"), + NM_MAKE_STRV (NM_SETTING_WIRELESS_SECURITY_PSK), act_psk_cb, self); nm_device_state_changed (device, NM_DEVICE_STATE_NEED_AUTH, NM_DEVICE_STATE_REASON_NONE);