tests: bluetooth: tester: Fix BTP_BAP_BROADCAST_SINK_BIS_SYNC command
After recent changes to BIS bitfield it is no longer required to adjust BIS Index bitfield. Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
This commit is contained in:
parent
031f9f2943
commit
d9f348962c
1 changed files with 1 additions and 8 deletions
|
@ -1208,14 +1208,7 @@ uint8_t btp_bap_broadcast_sink_bis_sync(const void *cmd, uint16_t cmd_len,
|
|||
return BTP_STATUS_FAILED;
|
||||
}
|
||||
|
||||
if (cp->requested_bis_sync == BT_BAP_BIS_SYNC_NO_PREF) {
|
||||
broadcaster->requested_bis_sync = sys_le32_to_cpu(cp->requested_bis_sync);
|
||||
} else {
|
||||
/* For semantic purposes Zephyr API uses BIS Index bitfield
|
||||
* where BIT(1) means BIS Index 1
|
||||
*/
|
||||
broadcaster->requested_bis_sync = sys_le32_to_cpu(cp->requested_bis_sync) << 1;
|
||||
}
|
||||
broadcaster->requested_bis_sync = sys_le32_to_cpu(cp->requested_bis_sync);
|
||||
|
||||
err = bt_bap_broadcast_sink_sync(broadcaster->sink, broadcaster->requested_bis_sync,
|
||||
broadcaster->sink_streams,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue