summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2011-12-02 16:18:24 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-12-12 10:44:40 +0100
commitb83ee35aaf078295fd1f07582180caee319829a1 (patch)
tree5c4aabed765bc928eaa2267a58e8053e338b7231 /src/service.c
parent5bc1f27efd0ebe70b5bddfab5543a8f48f33eae6 (diff)
downloadconnman-b83ee35aaf078295fd1f07582180caee319829a1.tar.gz
connman-b83ee35aaf078295fd1f07582180caee319829a1.tar.bz2
connman-b83ee35aaf078295fd1f07582180caee319829a1.zip
service: Use boolean variable to determine valid values
Use the provided boolean variable to determine when valid values are passed to the authentication_cb_t function.
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 214cc8ca..a0a29bcc 100644
--- a/src/service.c
+++ b/src/service.c
@@ -3951,12 +3951,13 @@ static void report_error_cb(struct connman_service *service,
}
static void request_input_cb (struct connman_service *service,
+ connman_bool_t values_received,
const char *identity, const char *passphrase,
void *user_data)
{
DBG ("RequestInput return, %p", service);
- if (identity == NULL && passphrase == NULL && service->wps == FALSE) {
+ if (values_received == FALSE) {
service_complete(service);
services_changed(FALSE);
__connman_device_request_scan(CONNMAN_DEVICE_TYPE_UNKNOWN);