char *name;
char *node;
char *group;
+ char *path;
struct connman_network_driver *driver;
void *driver_data;
g_free(network->wifi.phase2_auth);
g_free(network->wifi.pin_wps);
+ g_free(network->path);
g_free(network->group);
g_free(network->node);
g_free(network->name);
if (g_strcmp0(key, "Name") == 0)
return connman_network_set_name(network, value);
- if (g_str_equal(key, "Node") == TRUE) {
+ if (g_str_equal(key, "Path") == TRUE) {
+ g_free(network->path);
+ network->path = g_strdup(value);
+ } else if (g_str_equal(key, "Node") == TRUE) {
g_free(network->node);
network->node = g_strdup(value);
} else if (g_str_equal(key, "WiFi.Mode") == TRUE) {
} else if (g_str_equal(key, "WiFi.PinWPS") == TRUE) {
g_free(network->wifi.pin_wps);
network->wifi.pin_wps = g_strdup(value);
+ } else {
+ return -EINVAL;
}
- return connman_element_set_string(&network->element, key, value);
+ return 0;
}
/**
{
DBG("network %p key %s", network, key);
- if (g_str_equal(key, "Name") == TRUE)
+ if (g_str_equal(key, "Path") == TRUE)
+ return network->path;
+ else if (g_str_equal(key, "Name") == TRUE)
return network->name;
else if (g_str_equal(key, "Node") == TRUE)
return network->node;
else if (g_str_equal(key, "WiFi.PinWPS") == TRUE)
return network->wifi.pin_wps;
- return connman_element_get_string(&network->element, key);
+ return NULL;
}
/**