Add ssp auto accept logic in DA Headless case 90/292490/1 accepted/tizen/7.0/unified/20230511.022348
authorWootak Jung <wootak.jung@samsung.com>
Tue, 9 May 2023 01:13:42 +0000 (10:13 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Tue, 9 May 2023 04:11:33 +0000 (13:11 +0900)
Change-Id: Ib909e6ae5b12e2bedac9464018634bf0dcd7f245
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-oal/bluez_hal/src/bt-hal-agent.c

index 230a3ec..0059789 100644 (file)
@@ -709,15 +709,16 @@ static gboolean __bt_hal_confirm_request(GapAgentPrivate *agent, GDBusProxy *dev
        } else {
                DBG("Headless Confirmation");
 
-               if (TIZEN_FEATURE_BLUEZ_SPEAKER_REFERENCE) {
-                       /* Reply the ssp confirmation automaticaly */
+               /* Reply the ssp confirmation automaticaly */
+               if (TIZEN_FEATURE_DA_REFERENCE && !TIZEN_FEATURE_FHUB_REFERENCE) {
+                       DBG("DA Headless Device. Auto Accept");
                        gap_agent_reply_confirmation(agent, GAP_AGENT_ACCEPT, NULL);
                        goto done;
-               }
-
-               if (TIZEN_FEATURE_ROBOT_REFERENCE) {
+               } else if (TIZEN_FEATURE_BLUEZ_SPEAKER_REFERENCE) {
+                       gap_agent_reply_confirmation(agent, GAP_AGENT_ACCEPT, NULL);
+                       goto done;
+               } else if (TIZEN_FEATURE_ROBOT_REFERENCE) {
                        DBG("Robot Device. Auto Accept");
-                       /* Reply the ssp confirmation automaticaly */
                        gap_agent_reply_confirmation(agent, GAP_AGENT_ACCEPT, NULL);
                        goto done;
                }