Skip to content

Commit a3aa513

Browse files
sjancjhedberg
authored andcommitted
Bluetooth: tester: Fix TBS Originate Call BTP command
bt_tbs_originate() returns assigned Call ID as non-negative value. Signed-off-by: Szymon Janc <[email protected]>
1 parent 8af3795 commit a3aa513

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/bluetooth/tester/src/audio/btp_ccp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,8 @@ static uint8_t tbs_originate(const void *cmd, uint16_t cmd_len, void *rsp, uint1
918918
uri[cp->uri_len] = '\0';
919919

920920
err = bt_tbs_originate(cp->index, uri, &call_index);
921-
if (err) {
921+
/* TODO should we extend BTP to return call ID? */
922+
if (err < 0) {
922923
return BTP_STATUS_FAILED;
923924
}
924925

0 commit comments

Comments
 (0)