device: Reply to connect request if SDP search failed
authorMiao-chen Chou <mcchou@chromium.org>
Mon, 19 Apr 2021 23:36:02 +0000 (16:36 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commite0fc743f425d30cd15ffc949374bbf5769d0d64b
treef6e947fdda560330cf4dc5c43732c95221fb0824
parent1fe09a74cca879a8a0a5f7a24c57f67ce22ae936
device: Reply to connect request if SDP search failed

SDP request can be initiated during BR/EDR connection. This fixes a
missing reply to the method call to prevent generic error message for
no reply.

The following test steps were performed:
(1) Put Bose QC35 into pairing mode, start scanning on bluetoothctl
(2) Turn off the headphones and connect to the headphones
(3) Verify that error should returns immediately to bluetoothctl

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c