From: Patrik Flykt <[email protected]>

Use the provided boolean variable to determine when valid
values are passed to the authentication_cb_t function.
---
 src/service.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/service.c b/src/service.c
index 54bbc15..e4e3294 100644
--- a/src/service.c
+++ b/src/service.c
@@ -3972,12 +3972,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);
-- 
1.7.2.5

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to