Skip to content

Commit 52db790

Browse files
niag-Oticoncarlescufi
authored andcommitted
tests: bluetooth: controller: release of padding PDUs for framed prod.
Implemented tests to check release of framed padding PDUs as the end of the event. Signed-off-by: Nirosharn Amarasinghe <[email protected]>
1 parent b1fe487 commit 52db790

File tree

2 files changed

+728
-3
lines changed

2 files changed

+728
-3
lines changed

tests/bluetooth/ctrl_isoal/src/isoal_test_common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
#define COLLATED_RX_SDU_INFO(_non_buf, _buf) (_non_buf)
5252
#endif /* ISOAL_CONFIG_BUFFER_RX_SDUS_ENABLE */
5353

54+
/* Maximum PDU payload for given number of PDUs */
55+
#define MAX_FRAMED_PDU_PAYLOAD(_pdus) \
56+
(TEST_TX_PDU_PAYLOAD_MAX * _pdus) - \
57+
((PDU_ISO_SEG_HDR_SIZE * _pdus) + PDU_ISO_SEG_TIMEOFFSET_SIZE)
5458

5559
struct rx_pdu_meta_buffer {
5660
struct isoal_pdu_rx pdu_meta;

0 commit comments

Comments
 (0)