Change-Id: I1a32004a8aaea706156e9e53d304b9f149081a0d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
STC_LOGI("%s interface(%s)", sig, interface);
STC_LOGI("%s interface(%s)", sig, interface);
- sta = (tether_sta_info_s *)g_malloc0(sizeof(tether_sta_info_s));
- if (sta == NULL) {
- STC_LOGE("g_malloc0 failed");
- return;
- }
-
g_variant_get(param, "(susssu)", &state, &type, &ip, &mac, &hostname, &tm);
STC_LOGI("%s: ip(%s) mac(%s) name(%s) tm(%d)", state, ip, mac, hostname, tm);
if (!g_strcmp0(state, "DhcpConnected")) {
g_variant_get(param, "(susssu)", &state, &type, &ip, &mac, &hostname, &tm);
STC_LOGI("%s: ip(%s) mac(%s) name(%s) tm(%d)", state, ip, mac, hostname, tm);
if (!g_strcmp0(state, "DhcpConnected")) {
+ sta = (tether_sta_info_s *)g_malloc0(sizeof(tether_sta_info_s));
+ if (sta == NULL) {
+ STC_LOGE("g_malloc0 failed");
+ return;
+ }
+
g_strlcpy(sta->ip, ip, INET_ADDRSTRLEN);
g_strlcpy(sta->mac, mac, STATION_MAC_STR_LEN);
g_strlcpy(sta->name, hostname, STATION_STR_HOSTNAME_LEN);
g_strlcpy(sta->ip, ip, INET_ADDRSTRLEN);
g_strlcpy(sta->mac, mac, STATION_MAC_STR_LEN);
g_strlcpy(sta->name, hostname, STATION_STR_HOSTNAME_LEN);