summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-14 16:10:37 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-14 16:10:37 +0530
commitfeff02b233419bcaabeba92c85a9038629b73c1a (patch)
tree189c53195438aed980d632f8bbf7e8237fa2fd27 /src
parentec1a6e217ee11c79dc5618bc685abe60f4bcf127 (diff)
downloadconnman-feff02b233419bcaabeba92c85a9038629b73c1a.tar.gz
connman-feff02b233419bcaabeba92c85a9038629b73c1a.tar.bz2
connman-feff02b233419bcaabeba92c85a9038629b73c1a.zip
[SPIN] wifi: enable to reload service profile from storage.
Change-Id: Idf19d82d0052f83a69b424536ecfceca65e840cb Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/connman.h2
-rwxr-xr-xsrc/service.c16
2 files changed, 18 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index c39210b4..2e9c26f8 100755
--- a/src/connman.h
+++ b/src/connman.h
@@ -698,6 +698,8 @@ enum connman_service_security __connman_service_get_security(struct connman_serv
const char *__connman_service_get_phase2(struct connman_service *service);
bool __connman_service_wps_enabled(struct connman_service *service);
#if defined TIZEN_EXT
+void __connman_service_set_storage_reload(struct connman_service *service,
+ bool storage_reload);
void __connman_service_set_autoconnect(struct connman_service *service,
bool autoconnect);
#endif
diff --git a/src/service.c b/src/service.c
index 71e2c09c..3f842878 100755
--- a/src/service.c
+++ b/src/service.c
@@ -156,6 +156,7 @@ struct connman_service {
* manage open/close connection requests by each application.
*/
int user_pdn_connection_refcount;
+ bool storage_reload;
#endif
#if defined TIZEN_TV_EXT
enum connman_dnsconfig_method dns_config_method;
@@ -5368,6 +5369,7 @@ static void service_initialize(struct connman_service *service)
service->wps = false;
#if defined TIZEN_EXT
+ service->storage_reload = false;
/*
* Description: TIZEN implements system global connection management.
*/
@@ -5759,6 +5761,13 @@ int __connman_service_get_connected_count_of_iface(
return count;
}
+
+void __connman_service_set_storage_reload(struct connman_service *service,
+ bool storage_reload)
+{
+ if (service != NULL)
+ service->storage_reload = storage_reload;
+}
#endif
/**
@@ -8003,6 +8012,13 @@ void __connman_service_update_from_network(struct connman_network *network)
if (!service->network)
return;
+#if defined TIZEN_EXT
+ if (service->storage_reload) {
+ service_load(service);
+ __connman_service_set_storage_reload(service, false);
+ }
+#endif
+
name = connman_network_get_string(service->network, "Name");
if (g_strcmp0(service->name, name) != 0) {
g_free(service->name);