Bluetooth: Controller: Fix incorrect HCI ISO Data length check
Fix incorrect HCI ISO data length check for Broadcast ISO transmissions. Removed initially added code when preliminary support for Broadcast ISO was implemented. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
9ca7e4e487
commit
818ae7acb0
1 changed files with 0 additions and 10 deletions
|
@ -5868,16 +5868,6 @@ int hci_iso_handle(struct net_buf *buf, struct net_buf **evt)
|
|||
struct ll_adv_iso_set *adv_iso;
|
||||
struct lll_adv_iso *lll_iso;
|
||||
uint16_t stream_handle;
|
||||
uint16_t slen;
|
||||
|
||||
/* FIXME: Code only expects header present */
|
||||
slen = iso_data_hdr ? iso_data_hdr->slen : 0;
|
||||
|
||||
/* Check invalid BIS PDU length */
|
||||
if (slen > LL_BIS_OCTETS_TX_MAX) {
|
||||
LOG_ERR("Invalid HCI ISO Data length");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Get BIS stream handle and stream context */
|
||||
stream_handle = LL_BIS_ADV_IDX_FROM_HANDLE(handle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue