char **blacklisted_interfaces;
connman_bool_t allow_hostname_updates;
connman_bool_t single_tech;
- char **allowed_tethering_technologies;
+ char **tethering_technologies;
connman_bool_t persistent_tethering_mode;
} connman_settings = {
.bg_scan = TRUE,
.blacklisted_interfaces = NULL,
.allow_hostname_updates = TRUE,
.single_tech = FALSE,
- .allowed_tethering_technologies = NULL,
+ .tethering_technologies = NULL,
.persistent_tethering_mode = FALSE,
};
#define CONF_BLACKLISTED_INTERFACES "NetworkInterfaceBlacklist"
#define CONF_ALLOW_HOSTNAME_UPDATES "AllowHostnameUpdates"
#define CONF_SINGLE_TECH "SingleConnectedTechnology"
-#define CONF_ALLOWED_TETHERING_TECHNOLOGIES "AllowedTetheringTechnologies"
+#define CONF_TETHERING_TECHNOLOGIES "TetheringTechnologies"
#define CONF_PERSISTENT_TETHERING_MODE "PersistentTetheringMode"
static const char *supported_options[] = {
CONF_BLACKLISTED_INTERFACES,
CONF_ALLOW_HOSTNAME_UPDATES,
CONF_SINGLE_TECH,
- CONF_ALLOWED_TETHERING_TECHNOLOGIES,
+ CONF_TETHERING_TECHNOLOGIES,
CONF_PERSISTENT_TETHERING_MODE,
NULL
};
g_clear_error(&error);
tethering = g_key_file_get_string_list(config, "General",
- CONF_ALLOWED_TETHERING_TECHNOLOGIES, &len, &error);
+ CONF_TETHERING_TECHNOLOGIES, &len, &error);
if (error == NULL)
- connman_settings.allowed_tethering_technologies = tethering;
+ connman_settings.tethering_technologies = tethering;
g_clear_error(&error);
if (g_str_equal(key, CONF_BLACKLISTED_INTERFACES) == TRUE)
return connman_settings.blacklisted_interfaces;
- if (g_str_equal(key, CONF_ALLOWED_TETHERING_TECHNOLOGIES) == TRUE)
- return connman_settings.allowed_tethering_technologies;
+ if (g_str_equal(key, CONF_TETHERING_TECHNOLOGIES) == TRUE)
+ return connman_settings.tethering_technologies;
return NULL;
}
g_free(connman_settings.preferred_techs);
g_strfreev(connman_settings.fallback_nameservers);
g_strfreev(connman_settings.blacklisted_interfaces);
- g_strfreev(connman_settings.allowed_tethering_technologies);
+ g_strfreev(connman_settings.tethering_technologies);
g_free(option_debug);
# normal. Default value is false.
# SingleConnectedTechnology = false
-# List of technologies that are allowed to enable tethering separated by ",".
-# The default value is wifi,bluetooth,gadget. Only those technologies listed
-# here are used for tethering. If one wants to tether ethernet,
-# then add "ethernet" in the list.
+# List of technologies for which tethering is allowed separated by ",".
+# The default value is wifi,bluetooth,gadget. Only those technologies
+# listed here are used for tethering. If ethernet tethering is desired,
+# then ethernet should be added to the list. The technologies listed here
+# have to support tethering, currently tethering is implemented for wifi,
+# bluetooth, gadget and ethernet.
# NOTE that if ethernet tethering is enabled, then a DHCP server is
# started on all ethernet interfaces. Tethered ethernet should
# never be connected to corporate or home network as it will disrupt
# normal operation of these networks. Due to this ethernet is not
# tethered by default. Do not activate ethernet tethering unless you
# really know what you are doing.
-# AllowedTetheringTechnologies = wifi,bluetooth,gadget
+# TetheringTechnologies = wifi,bluetooth,gadget
# Restore earlier tethering status when returning from offline mode,
# re-enabling a technology, and after restarts and reboots.