[SPIN] config: Ignore provision_service for open(none) security. 26/74526/3
authorNiraj Kumar Goit <niraj.g@samsung.com>
Tue, 14 Jun 2016 17:07:28 +0000 (22:37 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Tue, 14 Jun 2016 14:29:59 +0000 (07:29 -0700)
Change-Id: I9f787846f3b1f4b4f147f64821a8b5c25b0367d7
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
src/config.c

index a238d57..3818fb8 100755 (executable)
@@ -1363,6 +1363,13 @@ int __connman_config_provision_service(struct connman_service *service)
                        type != CONNMAN_SERVICE_TYPE_GADGET)
                return -ENOSYS;
 
+#if defined TIZEN_EXT
+       if(type == CONNMAN_SERVICE_TYPE_WIFI &&
+                       __connman_service_get_security(service) ==
+                       CONNMAN_SERVICE_SECURITY_NONE)
+               return -ENOSYS;
+#endif
+
        return find_and_provision_service(service);
 }