From: Wootak Jung Date: Wed, 15 Nov 2023 01:18:21 +0000 (+0900) Subject: Add logic to start hf-agent when bt is enabled in DA devices X-Git-Tag: accepted/tizen/unified/20231127.164946~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F33%2F301433%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Add logic to start hf-agent when bt is enabled in DA devices When restarting the bluetooth adapter, hf-agent does not restart after termination. Change-Id: Ie67312a778582e396d80f8816b03e9b5c215fc5f Signed-off-by: Wootak Jung --- diff --git a/bt-core/bt-core-adapter.c b/bt-core/bt-core-adapter.c index b566e64..b094c7b 100644 --- a/bt-core/bt-core-adapter.c +++ b/bt-core/bt-core-adapter.c @@ -220,6 +220,15 @@ static int __bt_stack_up(void) } } + if (TIZEN_FEATURE_DA_REFERENCE) { + /* activate bluetooth-hf-agent */ + ret = __bt_call_systemact_service(BT_SYSTEMACT_HF_AGENT); + if (ret < 0) { + BT_ERR("Failed to call systemact service"); + return -1; + } + } + return 0; }