Add headless device handling logic 01/180801/2 accepted/tizen/unified/20180611.015238 submit/tizen/20180607.003351
authorWootak Jung <wootak.jung@samsung.com>
Mon, 4 Jun 2018 09:30:00 +0000 (18:30 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Tue, 5 Jun 2018 01:22:34 +0000 (10:22 +0900)
Change-Id: Iee83a7af02901787e3697d95f86ecf79103b9b67

src/adapter.c

index b3bc958..a7aec92 100644 (file)
@@ -10733,8 +10733,11 @@ static gboolean process_auth_queue(gpointer user_data)
 #ifndef TIZEN_FEATURE_BLUEZ_MODIFY
                if (device_is_trusted(device) == TRUE) {
 #else
-               if (device_is_trusted(device) == TRUE ||
-                               device_is_profile_trusted(device, auth->uuid)) {
+               if (device_is_trusted(device) == TRUE
+                               || device_is_profile_trusted(device, auth->uuid)
+                               || main_opts.pin_code) {
+                       /* In headless device(pin_code is existing),
+                          no need to request to agent */
 #endif
                        auth->cb(NULL, auth->user_data);
                        goto next;