if (path == NULL)
return -EINVAL;
- if (connman_network_get_index(network) >= 0)
- return -EISCONN;
-
message = dbus_message_new_method_call(BLUEZ_SERVICE, path,
BLUEZ_NETWORK_INTERFACE, CONNECT);
if (message == NULL)
}
connman_network_set_connected(network, FALSE);
- connman_network_set_index(network, -1);
done:
dbus_message_unref(reply);
if (path == NULL)
return -EINVAL;
- if (connman_network_get_index(network) < 0)
- return -ENOTCONN;
-
message = dbus_message_new_method_call(BLUEZ_SERVICE, path,
BLUEZ_NETWORK_INTERFACE, DISCONNECT);
if (message == NULL)