summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/bluetooth.c2
-rw-r--r--plugins/ethernet.c1
-rw-r--r--plugins/ofono.c5
-rw-r--r--plugins/supplicant.c3
-rw-r--r--plugins/wifi.c3
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;