Skip to content

Commit 39a70be

Browse files
rugeGerritsenfabiobaltieri
authored andcommitted
Bluetooth: Only enable data length extensions when needed
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]>
1 parent 063cf39 commit 39a70be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ config BT_PHY_UPDATE
147147

148148
config BT_DATA_LEN_UPDATE
149149
bool "Data Length Update"
150-
default y
150+
default y if ((BT_BUF_ACL_TX_SIZE > 27) || (BT_BUF_ACL_RX_SIZE > 27))
151151
depends on !BT_CTLR || BT_CTLR_DATA_LEN_UPDATE_SUPPORT
152152
help
153153
Enable support for Bluetooth v4.2 LE Data Length Update procedure.

0 commit comments

Comments
 (0)