diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-12-12 18:41:33 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-12-12 18:42:36 +0100 |
commit | 62707bec15cf177cf094686a8989f8c657c08d2d (patch) | |
tree | 55ecebb956db2a4db7869ee87e02f440b372a9b5 | |
parent | 6c0c97410663c5d621cf1ac9f22737ced3ab5787 (diff) | |
download | connman-62707bec15cf177cf094686a8989f8c657c08d2d.tar.gz connman-62707bec15cf177cf094686a8989f8c657c08d2d.tar.bz2 connman-62707bec15cf177cf094686a8989f8c657c08d2d.zip |
network: Remove connman_network_set_roaming
The current code uses connman_network_set_bool(network, "Roaming", value).
-rw-r--r-- | include/network.h | 2 | ||||
-rw-r--r-- | src/network.c | 19 |
2 files changed, 1 insertions, 20 deletions
diff --git a/include/network.h b/include/network.h index b0a86173..bb61f2d6 100644 --- a/include/network.h +++ b/include/network.h @@ -110,8 +110,6 @@ int connman_network_set_name(struct connman_network *network, int connman_network_set_strength(struct connman_network *network, connman_uint8_t strength); connman_uint8_t connman_network_get_strength(struct connman_network *network); -int connman_network_set_roaming(struct connman_network *network, - connman_bool_t roaming); int connman_network_set_frequency(struct connman_network *network, connman_uint16_t frequency); connman_uint16_t connman_network_get_frequency(struct connman_network *network); diff --git a/src/network.c b/src/network.c index a2c28ae5..bf522c12 100644 --- a/src/network.c +++ b/src/network.c @@ -1526,23 +1526,6 @@ connman_uint16_t connman_network_get_wifi_channel(struct connman_network *networ } /** - * connman_network_set_roaming: - * @network: network structure - * @roaming: roaming state - * - * Set roaming state for network - */ -int connman_network_set_roaming(struct connman_network *network, - connman_bool_t roaming) -{ - DBG("network %p roaming %d", network, roaming); - - network->roaming = roaming; - - return 0; -} - -/** * connman_network_set_string: * @network: network structure * @key: unique identifier @@ -1672,7 +1655,7 @@ int connman_network_set_bool(struct connman_network *network, DBG("network %p key %s value %d", network, key, value); if (g_strcmp0(key, "Roaming") == 0) - return connman_network_set_roaming(network, value); + network->roaming = value; else if (g_strcmp0(key, "WiFi.WPS") == 0) network->wifi.wps = value; else if (g_strcmp0(key, "WiFi.UseWPS") == 0) |