From fc41a18566f0bb753fd8ce35873d1442942f464c Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Fri, 15 Jun 2012 16:00:21 +0300 Subject: 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. --- src/device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/device.c') 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) -- cgit v1.2.3