From 48ad25094c7f328505e7cb2a87317c1e61a93640 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 7 Oct 2025 08:21:13 +0200 Subject: [PATCH] Bluetooth: tester: Fix TBS Originate Call BTP command bt_tbs_originate() returns assigned Call ID as non-negative value. Signed-off-by: Szymon Janc --- tests/bluetooth/tester/src/audio/btp_ccp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/bluetooth/tester/src/audio/btp_ccp.c b/tests/bluetooth/tester/src/audio/btp_ccp.c index 591e73b5de0d5..7d5603fafb0eb 100644 --- a/tests/bluetooth/tester/src/audio/btp_ccp.c +++ b/tests/bluetooth/tester/src/audio/btp_ccp.c @@ -918,7 +918,8 @@ static uint8_t tbs_originate(const void *cmd, uint16_t cmd_len, void *rsp, uint1 uri[cp->uri_len] = '\0'; err = bt_tbs_originate(cp->index, uri, &call_index); - if (err) { + /* TODO should we extend BTP to return call ID? */ + if (err < 0) { return BTP_STATUS_FAILED; }