#if defined TIZEN_EXT
char **cellular_interfaces;
bool tizen_tv_extension;
+ bool use_gateway_timeserver;
#endif
} connman_settings = {
.bg_scan = true,
#if defined TIZEN_EXT
.cellular_interfaces = NULL,
.tizen_tv_extension = false,
+ .use_gateway_timeserver = false,
#endif
};
#if defined TIZEN_EXT
#define CONF_CELLULAR_INTERFACE "NetworkCellularInterfaceList"
#define CONF_TIZEN_TV_EXT "TizenTVExtension"
+#define CONF_USE_GATEWAY_TIMESERVER "UseGatewayTimeserver"
#endif
static const char *supported_options[] = {
#if defined TIZEN_EXT
CONF_CELLULAR_INTERFACE,
CONF_TIZEN_TV_EXT,
+ CONF_USE_GATEWAY_TIMESERVER,
#endif
NULL
};
connman_settings.tizen_tv_extension = boolean;
g_clear_error(&error);
+
+ boolean = __connman_config_get_bool(config, "General",
+ CONF_USE_GATEWAY_TIMESERVER, &error);
+ if (!error)
+ connman_settings.use_gateway_timeserver = boolean;
+
+ g_clear_error(&error);
}
static void set_nofile_inc(void)
if (g_str_equal(key, CONF_ENABLE_ONLINE_CHECK))
return connman_settings.enable_online_check;
+#if defined TIZEN_EXT
+ if (g_str_equal(key, CONF_USE_GATEWAY_TIMESERVER))
+ return connman_settings.use_gateway_timeserver;
+#endif
+
return false;
}
# AlwaysConnectedTechnologies =
NetworkCellularInterfaceList = pdp,rmnet,seth_td,seth_w
+
+# Allow connman to add service gateway to the time server list.
+# Default value is false.
+# UseGatewayTimeserver = false
# Enable6to4 = false
NetworkCellularInterfaceList = pdp,rmnet,seth_td,seth_w
+
+# Allow connman to add service gateway to the time server list.
+# Default value is false.
+# UseGatewayTimeserver = false
# Enable6to4 = false
NetworkCellularInterfaceList = pdp,rmnet,seth_td,seth_w
+
+# Allow connman to add service gateway to the time server list.
+# Default value is false.
+# UseGatewayTimeserver = false
NetworkCellularInterfaceList = pdp,rmnet,seth_td,seth_w
-
+# Allow connman to add service gateway to the time server list.
+# Default value is false.
+# UseGatewayTimeserver = false
# Enable Tizen TV Profile Features
TizenTVExtension = true
for (i = 0; service_ts && service_ts[i]; i++)
list = __connman_timeserver_add_list(list, service_ts[i]);
+#if defined TIZEN_EXT
+ if (connman_setting_get_bool("UseGatewayTimeserver")) {
+#endif
network = __connman_service_get_network(service);
if (network) {
index = connman_network_get_index(network);
if (service_gw)
list = __connman_timeserver_add_list(list, service_gw);
}
-
+#if defined TIZEN_EXT
+ }
+#endif
/* Then add Global Timeservers to the list */
timeservers = load_timeservers();