Skip to content

Commit

Permalink
Bluetooth: Controller: Inherit BT_ISO_TX_MTU value
Browse files Browse the repository at this point in the history
Inherit BT_ISO_TX_MTU value for BT_CTLR_ISO_TX_BUFFER_SIZE.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
  • Loading branch information
cvinayak committed Jun 29, 2023
1 parent 5a48346 commit 5835b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions subsys/bluetooth/controller/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ config BT_CTLR_ISO_TX_BUFFER_SIZE
int "Isochronous Tx buffer size"
depends on BT_CTLR_ADV_ISO || BT_CTLR_CONN_ISO
range 1 4095
default BT_ISO_TX_MTU if BT_ISO
default 1
help
Size of the Isochronous Tx buffers and the value returned in HCI LE
Expand Down
6 changes: 1 addition & 5 deletions subsys/bluetooth/controller/include/ll_feat.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,8 @@

#if defined(CONFIG_BT_CTLR_ADV_ISO)
#define LL_FEAT_BIT_ISO_BROADCASTER BIT64(BT_LE_FEAT_BIT_ISO_BROADCASTER)
#if defined(CONFIG_BT_ISO_TX_MTU)
#define LL_BIS_OCTETS_TX_MAX MIN(CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX, \
CONFIG_BT_ISO_TX_MTU)
#else /* !CONFIG_BT_ISO_TX_MTU */
#define LL_BIS_OCTETS_TX_MAX CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX
#endif /* !CONFIG_BT_ISO_TX_MTU */
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE)
#else /* !CONFIG_BT_CTLR_ADV_ISO */
#define LL_FEAT_BIT_ISO_BROADCASTER 0
#define LL_BIS_OCTETS_TX_MAX 0
Expand Down

0 comments on commit 5835b5e

Please sign in to comment.