summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2024-08-28 13:37:53 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2024-08-28 13:37:53 +0900
commitc9d3ac9e0012865284537bd550fffca6680487f9 (patch)
treebb844935484ad59a69420707bc98cccc62647415
parent081e3a5fa55d56c100bf1675449097335d4dac27 (diff)
downloadconnman-c9d3ac9e0012865284537bd550fffca6680487f9.tar.gz
connman-c9d3ac9e0012865284537bd550fffca6680487f9.tar.bz2
connman-c9d3ac9e0012865284537bd550fffca6680487f9.zip
Change-Id: I4d654211a0da8e9509b5ab1f16cbfc05e8db532b Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rwxr-xr-xsrc/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 8b0a995c..39d51a9a 100755
--- a/src/main.c
+++ b/src/main.c
@@ -165,7 +165,7 @@ static struct {
.auto_ip = true,
.global_nameserver = NULL,
.supplicant_debug = false,
- .def_wifi_ifname = DEFAULT_WIFI_INTERFACE,
+ .def_wifi_ifname = NULL,
.file_log = true,
.dlog_log = true,
.simple_log = true,
@@ -737,6 +737,9 @@ static void check_tizen_configuration(GKeyFile *config)
CONF_WIFI_DEF_IFNAME, &error);
if (!error)
connman_settings.def_wifi_ifname = default_wifi_ifname;
+ else
+ connman_settings.def_wifi_ifname =
+ g_strdup(DEFAULT_WIFI_INTERFACE);
g_clear_error(&error);
@@ -1725,6 +1728,7 @@ int main(int argc, char *argv[])
g_free(connman_settings.online_check_ipv6_url);
#if defined TIZEN_EXT
+ g_free(connman_settings.def_wifi_ifname);
g_free(connman_ins_settings.ins_preferred_freq_bssid);
g_free(connman_ins_settings.ins_preferred_freq);
if (connman_ins_settings.ins_security_priority)