From: Marcel Holtmann Date: Wed, 25 Mar 2009 12:50:39 +0000 (+0100) Subject: Set device index for network to be joined X-Git-Tag: 2.0_alpha~3958 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79399da515d6be3357ea3580a32a84ab0b66a442;p=framework%2Fconnectivity%2Fconnman.git Set device index for network to be joined --- diff --git a/src/device.c b/src/device.c index ef2e2d3..3ae6a80 100644 --- a/src/device.c +++ b/src/device.c @@ -476,7 +476,7 @@ static DBusMessage *join_network(DBusConnection *conn, struct connman_device *device = data; struct connman_network *network; DBusMessageIter iter, array; - int err; + int err, index; DBG("conn %p", conn); @@ -514,6 +514,9 @@ static DBusMessage *join_network(DBusConnection *conn, dbus_message_iter_next(&iter); } + index = connman_device_get_index(device); + connman_network_set_index(network, index); + err = device->driver->join(device, network); connman_network_unref(network);