connman_uint16_t scan_interval;
char *name;
char *node;
+ char *address;
char *interface;
unsigned int connections;
guint scan_timeout;
connman_dbus_dict_append_variant(&dict, "Type",
DBUS_TYPE_STRING, &str);
+ if (device->address != NULL)
+ connman_dbus_dict_append_variant(&dict, "Address",
+ DBUS_TYPE_STRING, &device->address);
+
if (device->interface != NULL)
connman_dbus_dict_append_variant(&dict, "Interface",
DBUS_TYPE_STRING, &device->interface);
g_free(device->node);
g_free(device->name);
+ g_free(device->address);
g_free(device->interface);
g_free(device->last_network);
{
DBG("device %p key %s value %s", device, key, value);
- if (g_str_equal(key, "Name") == TRUE) {
+ if (g_str_equal(key, "Address") == TRUE) {
+ g_free(device->address);
+ device->address = g_strdup(value);
+ } else if (g_str_equal(key, "Name") == TRUE) {
g_free(device->name);
device->name = g_strdup(value);
} else if (g_str_equal(key, "Node") == TRUE) {
{
DBG("device %p key %s", device, key);
- if (g_str_equal(key, "Name") == TRUE)
+ if (g_str_equal(key, "Address") == TRUE)
+ return device->address;
+ else if (g_str_equal(key, "Name") == TRUE)
return device->name;
else if (g_str_equal(key, "Node") == TRUE)
return device->node;