service: Don't send 'wpa' or 'rsn' as alternate values for 'psk'
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 21 Dec 2011 12:48:27 +0000 (14:48 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 5 Jan 2012 09:54:09 +0000 (10:54 +0100)
src/service.c

index 0a6988f..84e676a 100644 (file)
@@ -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;
        }