diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2011-12-21 14:48:27 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-01-05 10:54:09 +0100 |
commit | 15a92493d36a0b8e00f23bd47a9ce5b9e304064e (patch) | |
tree | 1a5afb32e791211d4e15443422b03a968846c5d2 /src | |
parent | eff06f8e1ce3c3dcf5a3d8158d01403ecf6d62a8 (diff) | |
download | connman-15a92493d36a0b8e00f23bd47a9ce5b9e304064e.tar.gz connman-15a92493d36a0b8e00f23bd47a9ce5b9e304064e.tar.bz2 connman-15a92493d36a0b8e00f23bd47a9ce5b9e304064e.zip |
service: Don't send 'wpa' or 'rsn' as alternate values for 'psk'
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/service.c b/src/service.c index 0a6988fd..84e676a1 100644 --- a/src/service.c +++ b/src/service.c @@ -198,13 +198,11 @@ static const char *security2string(enum connman_service_security security) case CONNMAN_SERVICE_SECURITY_WEP: return "wep"; case CONNMAN_SERVICE_SECURITY_PSK: + case CONNMAN_SERVICE_SECURITY_WPA: + case CONNMAN_SERVICE_SECURITY_RSN: return "psk"; case CONNMAN_SERVICE_SECURITY_8021X: return "ieee8021x"; - case CONNMAN_SERVICE_SECURITY_WPA: - return "wpa"; - case CONNMAN_SERVICE_SECURITY_RSN: - return "rsn"; } return NULL; @@ -3873,8 +3871,9 @@ void __connman_service_add_passphrase(struct connman_service *service, case CONNMAN_SERVICE_SECURITY_NONE: case CONNMAN_SERVICE_SECURITY_WPA: case CONNMAN_SERVICE_SECURITY_RSN: - DBG("service security '%s' not handled", - security2string(service->security)); + DBG("service security '%s' (%d) not handled", + security2string(service->security), + service->security); break; } |