From 62707bec15cf177cf094686a8989f8c657c08d2d Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 12 Dec 2011 18:41:33 +0100 Subject: network: Remove connman_network_set_roaming The current code uses connman_network_set_bool(network, "Roaming", value). --- src/network.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src') diff --git a/src/network.c b/src/network.c index a2c28ae5..bf522c12 100644 --- a/src/network.c +++ b/src/network.c @@ -1525,23 +1525,6 @@ connman_uint16_t connman_network_get_wifi_channel(struct connman_network *networ return network->wifi.channel; } -/** - * 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 @@ -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) -- cgit v1.2.3