diff options
author | Alok Barsode <alok.barsode@linux.intel.com> | 2012-04-26 13:17:43 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-04-26 13:24:20 +0200 |
commit | e15d75f63fb5b9aef8e1ec68a00e9c901ea6e1df (patch) | |
tree | 98ecac21a17648904a2e583d6b7cc0935935b9d2 /src/agent.c | |
parent | 41ac2566edce6654383a2f212567114621fcc834 (diff) | |
download | connman-e15d75f63fb5b9aef8e1ec68a00e9c901ea6e1df.tar.gz connman-e15d75f63fb5b9aef8e1ec68a00e9c901ea6e1df.tar.bz2 connman-e15d75f63fb5b9aef8e1ec68a00e9c901ea6e1df.zip |
agent: If service has no security, do not ask for a passphrase
Diffstat (limited to 'src/agent.c')
-rw-r--r-- | src/agent.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/agent.c b/src/agent.c index b87f4e87..c5f5a39c 100644 --- a/src/agent.c +++ b/src/agent.c @@ -402,8 +402,11 @@ int __connman_agent_request_passphrase_input(struct connman_service *service, request_input_append_identity, service); } - connman_dbus_dict_append_dict(&dict, "Passphrase", - request_input_append_passphrase, service); + if (__connman_service_get_security(service) != + CONNMAN_SERVICE_SECURITY_NONE) { + connman_dbus_dict_append_dict(&dict, "Passphrase", + request_input_append_passphrase, service); + } if (__connman_service_wps_enabled(service) == TRUE) { connman_dbus_dict_append_dict(&dict, "WPS", |