diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-06-16 10:00:26 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-06-16 15:26:11 +0200 |
commit | c4a2cdcfcae4ee047616bb4455508f22bd1fbb54 (patch) | |
tree | 1ef4894273cf4506e192d9e9a7537b1de648fbb7 | |
parent | 9fb3e5efb59b09aae8cd8209bde6d96c494a6c7c (diff) | |
download | connman-c4a2cdcfcae4ee047616bb4455508f22bd1fbb54.tar.gz connman-c4a2cdcfcae4ee047616bb4455508f22bd1fbb54.tar.bz2 connman-c4a2cdcfcae4ee047616bb4455508f22bd1fbb54.zip |
network: Remove element code from connman_network_[set|get]_bool()
-rw-r--r-- | include/network.h | 1 | ||||
-rw-r--r-- | src/network.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/network.h b/include/network.h index c5742abf..1ed6f6ab 100644 --- a/include/network.h +++ b/include/network.h @@ -1,3 +1,4 @@ + /* * * Connection Manager diff --git a/src/network.c b/src/network.c index c212f034..9f906c1b 100644 --- a/src/network.c +++ b/src/network.c @@ -1454,7 +1454,7 @@ int connman_network_set_bool(struct connman_network *network, else if (g_strcmp0(key, "WiFi.UseWPS") == 0) network->wifi.use_wps = value; - return connman_element_set_bool(&network->element, key, value); + return -EINVAL; } /** @@ -1476,7 +1476,7 @@ connman_bool_t connman_network_get_bool(struct connman_network *network, else if (g_str_equal(key, "WiFi.UseWPS") == TRUE) return network->wifi.use_wps; - return connman_element_get_bool(&network->element, key); + return FALSE; } /** |