diff options
author | taesub kim <taesub.kim@samsung.com> | 2016-06-13 21:30:50 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2016-06-13 21:30:50 -0700 |
commit | 6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c (patch) | |
tree | 3e54e92bcb13aa4d0fcced59c3eaba8b0b330beb /src/service.c | |
parent | f64ceea943f1ff3b9ccc025a1cac7ada2d8daa91 (diff) | |
parent | 0e83b35474b8e01ccbaff484665a6f525ecd67fa (diff) | |
download | connman-6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c.tar.gz connman-6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c.tar.bz2 connman-6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c.zip |
Merge "Add support for WPS2-PSK security type in Security property of service interface" into tizensubmit/tizen/20160614.053635accepted/tizen/wearable/20160614.103626accepted/tizen/tv/20160614.103619accepted/tizen/mobile/20160614.103642accepted/tizen/ivi/20160614.103653accepted/tizen/common/20160614.144019
Diffstat (limited to 'src/service.c')
-rwxr-xr-x | src/service.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index ca291199..b424bd5c 100755 --- a/src/service.c +++ b/src/service.c @@ -327,6 +327,10 @@ enum connman_service_security __connman_service_string2security(const char *str) return CONNMAN_SERVICE_SECURITY_NONE; if (!strcmp(str, "wep")) return CONNMAN_SERVICE_SECURITY_WEP; +#if defined TIZEN_EXT + if (!strcmp(str, "rsn")) + return CONNMAN_SERVICE_SECURITY_RSN; +#endif return CONNMAN_SERVICE_SECURITY_UNKNOWN; } @@ -342,8 +346,14 @@ static const char *security2string(enum connman_service_security security) return "wep"; case CONNMAN_SERVICE_SECURITY_PSK: case CONNMAN_SERVICE_SECURITY_WPA: +#if defined TIZEN_EXT + return "psk"; + case CONNMAN_SERVICE_SECURITY_RSN: + return "rsn"; +#else case CONNMAN_SERVICE_SECURITY_RSN: return "psk"; +#endif case CONNMAN_SERVICE_SECURITY_8021X: return "ieee8021x"; } @@ -3377,7 +3387,9 @@ static int check_passphrase(enum connman_service_security security, case CONNMAN_SERVICE_SECURITY_UNKNOWN: case CONNMAN_SERVICE_SECURITY_NONE: case CONNMAN_SERVICE_SECURITY_WPA: +#if !defined TIZEN_EXT case CONNMAN_SERVICE_SECURITY_RSN: +#endif DBG("service security '%s' (%d) not handled", security2string(security), security); @@ -3385,6 +3397,9 @@ static int check_passphrase(enum connman_service_security security, return -EOPNOTSUPP; case CONNMAN_SERVICE_SECURITY_PSK: +#if defined TIZEN_EXT + case CONNMAN_SERVICE_SECURITY_RSN: +#endif /* A raw key is always 64 bytes length, * its content is in hex representation. * A PSK key must be between [8..63]. |