Fix unnecessary event sending issue 49/273949/1
authorWootak Jung <wootak.jung@samsung.com>
Tue, 19 Apr 2022 01:34:43 +0000 (10:34 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Tue, 19 Apr 2022 01:36:24 +0000 (10:36 +0900)
passkey conformation event is not required in auto accept case

Change-Id: Idff8dc50b14416487ec358154fd7704aa95149ec

bt-oal/bluez_hal/src/bt-hal-agent.c

index 65f6446..230a3ec 100644 (file)
@@ -712,12 +712,14 @@ static gboolean __bt_hal_confirm_request(GapAgentPrivate *agent, GDBusProxy *dev
                if (TIZEN_FEATURE_BLUEZ_SPEAKER_REFERENCE) {
                        /* Reply the ssp confirmation automaticaly */
                        gap_agent_reply_confirmation(agent, GAP_AGENT_ACCEPT, NULL);
+                       goto done;
                }
 
                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;
                }
 
                __bt_hal_send_ssp_request_events(address, name, passkey,