summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYu <jiung.yu@samsung.com>2019-07-25 13:24:57 +0900
committerYu <jiung.yu@samsung.com>2019-07-25 16:25:49 +0900
commit744ba68df7010ee6a3a962daad47d106998c15fa (patch)
tree0fcda6e592325ed7c4c746cd72486f61f7ab9694 /src
parent4f366734bb8b2be1b7f5aba9974947220af53716 (diff)
downloadconnman-744ba68df7010ee6a3a962daad47d106998c15fa.tar.gz
connman-744ba68df7010ee6a3a962daad47d106998c15fa.tar.bz2
connman-744ba68df7010ee6a3a962daad47d106998c15fa.zip
Add OWE security mode support
Change-Id: I03ab90b8ab78e489d1ef70fbec57f10576860a57 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/service.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 1b2ed23d..7b01002b 100644
--- a/src/service.c
+++ b/src/service.c
@@ -352,6 +352,8 @@ enum connman_service_security __connman_service_string2security(const char *str)
return CONNMAN_SERVICE_SECURITY_RSN;
if (!strcmp(str, "sae"))
return CONNMAN_SERVICE_SECURITY_SAE;
+ if (!strcmp(str, "owe"))
+ return CONNMAN_SERVICE_SECURITY_OWE;
#endif
return CONNMAN_SERVICE_SECURITY_UNKNOWN;
@@ -374,6 +376,8 @@ static const char *security2string(enum connman_service_security security)
return "rsn";
case CONNMAN_SERVICE_SECURITY_SAE:
return "sae";
+ case CONNMAN_SERVICE_SECURITY_OWE:
+ return "owe";
#else
case CONNMAN_SERVICE_SECURITY_RSN:
return "psk";
@@ -8212,6 +8216,9 @@ static int service_connect(struct connman_service *service)
switch (service->security) {
case CONNMAN_SERVICE_SECURITY_UNKNOWN:
case CONNMAN_SERVICE_SECURITY_NONE:
+#if defined TIZEN_EXT
+ case CONNMAN_SERVICE_SECURITY_OWE:
+#endif
break;
case CONNMAN_SERVICE_SECURITY_WEP:
case CONNMAN_SERVICE_SECURITY_PSK:
@@ -8292,6 +8299,7 @@ static int service_connect(struct connman_service *service)
case CONNMAN_SERVICE_SECURITY_RSN:
#if defined TIZEN_EXT
case CONNMAN_SERVICE_SECURITY_SAE:
+ case CONNMAN_SERVICE_SECURITY_OWE:
#endif
break;
case CONNMAN_SERVICE_SECURITY_8021X:
@@ -9046,6 +9054,8 @@ static enum connman_service_security convert_wifi_security(const char *security)
#if defined TIZEN_EXT
else if (g_str_equal(security, "sae"))
return CONNMAN_SERVICE_SECURITY_SAE;
+ else if (g_str_equal(security, "owe"))
+ return CONNMAN_SERVICE_SECURITY_OWE;
else if (g_str_equal(security, "ft_psk") == TRUE)
return CONNMAN_SERVICE_SECURITY_PSK;
else if (g_str_equal(security, "ft_ieee8021x") == TRUE)