network: Remove connman_network_set_roaming
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 12 Dec 2011 17:41:33 +0000 (18:41 +0100)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 12 Dec 2011 17:42:36 +0000 (18:42 +0100)
The current code uses connman_network_set_bool(network, "Roaming", value).

include/network.h
src/network.c

index b0a86173126117cd7e9a8fa7298282ad032b3db4..bb61f2d6caec639fc3a22af4946d7a92b071f76b 100644 (file)
@@ -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);
index a2c28ae5d8292fa15a5feac4e33660e5e16e91f1..bf522c12d617c7726d4e0fa7555c4dcac7f2ea24 100644 (file)
@@ -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)