while (g_variant_iter_loop(inner_iter, "{sv}", &key, &value)) {
if (g_strcmp0(key, "Type") == 0) {
interface = g_variant_get_int32(value);
- if (interface != 3) {
+ if (interface != 4) {
g_free(key);
key = NULL;
g_variant_unref(value);
g_strlcpy(client.mac, mac, sizeof(client.mac));
} else if (g_strcmp0(key, "Name") == 0) {
g_variant_get(value, "s", &hostname);
- SDBG("hsotname is %s\n", hostname);
+ SDBG("hostname is %s\n", hostname);
if (hostname)
client.hostname = g_strdup(hostname);
} else if (g_strcmp0(key, "Time") == 0) {
g_free(client.hostname);
client.hostname = NULL;
g_variant_iter_free(outer_iter);
- g_variant_unref(station);
g_variant_unref(result);
DBG("-\n");
return SOFTAP_ERROR_OPERATION_FAILED;
//LCOV_EXCL_STOP
}
g_variant_iter_free(outer_iter);
- g_variant_unref(station);
g_variant_unref(result);
DBG("-\n");
return SOFTAP_ERROR_NONE;
g_print("\tIP Address %s\n", ip_address);
g_print("\tMAC Address : %s\n", mac_address);
g_print("\tHostname : %s\n", hostname);
- g_print("\tTime stamp : %04d-%02d-%02d %02d:%02d:%02d",
+ g_print("\tTime stamp : %04d-%02d-%02d %02d:%02d:%02d\n",
t.tm_year + 1900, t.tm_mon + 1,
t.tm_mday, t.tm_hour,
t.tm_min, t.tm_sec);