summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpradeep kumar B <b.pradeep@samsung.com>2015-07-03 14:23:16 (GMT)
committerSeonah Moon <seonah1.moon@samsung.com>2015-07-08 07:39:15 (GMT)
commite1484de035e0c9e13615f7fed21937400c46a020 (patch)
tree1b0a8658912dcf56d5815cca33e2e4f859e140a8 /src
parent02a8508865bc4085f2d7df718bd3f0e2b8e4f3d5 (diff)
downloadconnman-e1484de035e0c9e13615f7fed21937400c46a020.zip
connman-e1484de035e0c9e13615f7fed21937400c46a020.tar.gz
connman-e1484de035e0c9e13615f7fed21937400c46a020.tar.bz2
Fix for wifi_scan-->"no Wifi-ap found"submit/tizen/20150708.074848refs/changes/43/43343/1
Change-Id: Ia624ab6e2ddc967c1581ed48a7eababa0cdb909f Signed-off-by: pradeep kumar B <b.pradeep@samsung.com
Diffstat (limited to 'src')
-rw-r--r--src/connman.h4
-rw-r--r--src/service.c15
2 files changed, 19 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index 733f87c..9c62116 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -692,6 +692,10 @@ struct connman_network *__connman_service_get_network(struct connman_service *se
enum connman_service_security __connman_service_get_security(struct connman_service *service);
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_autoconnect(struct connman_service *service,
+ bool autoconnect);
+#endif
int __connman_service_set_favorite(struct connman_service *service,
bool favorite);
int __connman_service_set_favorite_delayed(struct connman_service *service,
diff --git a/src/service.c b/src/service.c
index fb4a61f..7cf4904 100644
--- a/src/service.c
+++ b/src/service.c
@@ -5562,6 +5562,21 @@ void __connman_service_update_search_domains(struct connman_service *service,
service->domains = g_strdupv(domains);
}
+#if defined TIZEN_EXT
+void __connman_service_set_autoconnect(struct connman_service *service,
+ bool autoconnect)
+{
+ if (service == NULL)
+ return;
+
+ if (service->autoconnect != autoconnect) {
+ DBG("updated autoconnect flag (%d)", autoconnect);
+ service->autoconnect = autoconnect;
+ service_save(service);
+ }
+}
+#endif
+
static void service_complete(struct connman_service *service)
{
reply_pending(service, EIO);