Bluetooth: Controller: Code to generate ISO data buffer overflow event
Add code to generate ISO data buffer overflow event if more than allocated ISO data PDU buffers are tried to be requested by host or for SDU fragmentation. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
8cf58edb8b
commit
bb92b018dd
1 changed files with 9 additions and 1 deletions
|
@ -5749,7 +5749,15 @@ int hci_iso_handle(struct net_buf *buf, struct net_buf **evt)
|
|||
isoal_source_handle_t source = dp_in->source_hdl;
|
||||
|
||||
/* Start Fragmentation */
|
||||
if (isoal_tx_sdu_fragment(source, &sdu_frag_tx)) {
|
||||
isoal_status_t isoal_status =
|
||||
isoal_tx_sdu_fragment(source, &sdu_frag_tx);
|
||||
|
||||
if (isoal_status) {
|
||||
if (isoal_status & ISOAL_STATUS_ERR_PDU_ALLOC) {
|
||||
data_buf_overflow(evt, BT_OVERFLOW_LINK_ISO);
|
||||
return -ENOBUFS;
|
||||
}
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue