Skip to content

Commit

Permalink
Bluetooth: Only enable data length extensions when needed
Browse files Browse the repository at this point in the history
We should disable the feature when it is not needed to
save flash and RAM.
There is no point in enabling data length extensions
when the maximum packet size used is always smaller or equal
to 27 bytes. Then data length updates would only use
parameters (octets=27, time=T) where T is some supported value
which would not improve throughput or power consumption.

Signed-off-by: Rubin Gerritsen <[email protected]>
  • Loading branch information
rugeGerritsen authored and fabiobaltieri committed Jul 30, 2024
1 parent 063cf39 commit 39a70be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ config BT_PHY_UPDATE

config BT_DATA_LEN_UPDATE
bool "Data Length Update"
default y
default y if ((BT_BUF_ACL_TX_SIZE > 27) || (BT_BUF_ACL_RX_SIZE > 27))
depends on !BT_CTLR || BT_CTLR_DATA_LEN_UPDATE_SUPPORT
help
Enable support for Bluetooth v4.2 LE Data Length Update procedure.
Expand Down

0 comments on commit 39a70be

Please sign in to comment.