summaryrefslogtreecommitdiff
path: root/src/network.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-07-09 02:24:51 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-07-09 02:24:51 +0200
commitb09f2865e0ccd574613f368291960cb0ae752619 (patch)
treeca45f723c096061b9a694263f41862990d49ebe2 /src/network.c
parent21eefd4611ff25fe99a3fdb8c2502978a780c948 (diff)
downloadconnman-b09f2865e0ccd574613f368291960cb0ae752619.tar.gz
connman-b09f2865e0ccd574613f368291960cb0ae752619.tar.bz2
connman-b09f2865e0ccd574613f368291960cb0ae752619.zip
network: Set network driver before creating the service
The autoconnect machine can potentially start from __connman_service_create_from_network() so it needs a network driver.
Diffstat (limited to 'src/network.c')
-rw-r--r--src/network.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network.c b/src/network.c
index 4a9e8634..58bfb164 100644
--- a/src/network.c
+++ b/src/network.c
@@ -161,12 +161,11 @@ static int network_probe(struct connman_network *network)
case CONNMAN_NETWORK_TYPE_CELLULAR:
case CONNMAN_NETWORK_TYPE_WIFI:
case CONNMAN_NETWORK_TYPE_WIMAX:
+ network->driver = driver;
if (__connman_service_create_from_network(network) == NULL)
return -EINVAL;
}
- network->driver = driver;
-
return 0;
}