diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-06-15 16:00:21 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-06-18 10:57:08 +0300 |
commit | fc41a18566f0bb753fd8ce35873d1442942f464c (patch) | |
tree | f198bceea5eac8f186f15fd13eae23b9c1e13b11 /src/device.c | |
parent | 3ca789e446848eed6ca3c00af080cd737d115dcb (diff) | |
download | connman-fc41a18566f0bb753fd8ce35873d1442942f464c.tar.gz connman-fc41a18566f0bb753fd8ce35873d1442942f464c.tar.bz2 connman-fc41a18566f0bb753fd8ce35873d1442942f464c.zip |
service: Connecting hidden network waits until connected
If the user is connecting to hidden network, then we delay the
return of the reply to caller until the real service has connected.
This way the user connect to hidden and non-hidden networks works
the same way from caller point of view.
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c index e4339915..3af36800 100644 --- a/src/device.c +++ b/src/device.c @@ -1102,7 +1102,8 @@ int __connman_device_request_scan(enum connman_service_type type) int __connman_device_request_hidden_scan(struct connman_device *device, const char *ssid, unsigned int ssid_len, - const char *identity, const char *passphrase) + const char *identity, const char *passphrase, + void *user_data) { DBG("device %p", device); @@ -1114,7 +1115,7 @@ int __connman_device_request_hidden_scan(struct connman_device *device, return -EALREADY; return device->driver->scan_hidden(device, ssid, ssid_len, - identity, passphrase); + identity, passphrase, user_data); } connman_bool_t __connman_device_isfiltered(const char *devname) |