diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-11-04 22:50:54 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-11-04 22:50:54 +0100 |
commit | c865c773213ed9fa142a159f06c3657e6e157102 (patch) | |
tree | 91a0f4d3bbaafb7a48c461b946b3b13b1794056a /plugins | |
parent | 5f4949b4f2b2319497cdf445985cb1d870394fb9 (diff) | |
download | connman-c865c773213ed9fa142a159f06c3657e6e157102.tar.gz connman-c865c773213ed9fa142a159f06c3657e6e157102.tar.bz2 connman-c865c773213ed9fa142a159f06c3657e6e157102.zip |
Remove unneeded enum connman_network_protocol
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/bluetooth.c | 2 | ||||
-rw-r--r-- | plugins/ethernet.c | 1 | ||||
-rw-r--r-- | plugins/ofono.c | 5 | ||||
-rw-r--r-- | plugins/supplicant.c | 3 | ||||
-rw-r--r-- | plugins/wifi.c | 3 |
5 files changed, 1 insertions, 13 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 37f0a6ca..bf89b98c 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -427,8 +427,6 @@ static void network_properties_reply(DBusPendingCall *call, void *user_data) connman_network_set_string(network, "Path", path); - connman_network_set_protocol(network, CONNMAN_NETWORK_PROTOCOL_IP); - connman_network_set_name(network, name); connman_device_add_network(device, network); diff --git a/plugins/ethernet.c b/plugins/ethernet.c index 9a7b0578..797fc7c4 100644 --- a/plugins/ethernet.c +++ b/plugins/ethernet.c @@ -95,7 +95,6 @@ static void add_network(struct connman_device *device) connman_network_set_index(network, index); connman_network_set_name(network, "Wired"); - connman_network_set_protocol(network, CONNMAN_NETWORK_PROTOCOL_IP); if (connman_device_add_network(device, network) < 0) { connman_network_unref(network); diff --git a/plugins/ofono.c b/plugins/ofono.c index a58f2ce6..691037db 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -574,10 +574,7 @@ static int add_network(struct connman_device *device, const char *type; dbus_message_iter_get_basic(&value, &type); - if (g_strcmp0(type, "internet") == 0) { - connman_network_set_protocol(network, - CONNMAN_NETWORK_PROTOCOL_IP); - } else { + if (g_strcmp0(type, "internet") != 0) { DBG("path %p type %s", path, type); goto error; } diff --git a/plugins/supplicant.c b/plugins/supplicant.c index f0d1a4ff..5f2d2045 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -1929,9 +1929,6 @@ static void properties_reply(DBusPendingCall *call, void *user_data) index = connman_device_get_index(task->device); connman_network_set_index(network, index); - connman_network_set_protocol(network, - CONNMAN_NETWORK_PROTOCOL_IP); - connman_network_set_address(network, result.addr, result.addr_len); diff --git a/plugins/wifi.c b/plugins/wifi.c index 69548fdf..e3247a14 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -439,9 +439,6 @@ static void network_added(GSupplicantNetwork *supplicant_network) connman_network_set_index(network, wifi->index); - connman_network_set_protocol(network, - CONNMAN_NETWORK_PROTOCOL_IP); - if (connman_device_add_network(wifi->device, network) < 0) { connman_network_unref(network); return; |