Skip to content

Commit 0bca1f3

Browse files
committed
applications: nrf_desktop: align after BT_CONN_TX_MAX deprecation
Aligned the Bluetooth Kconfig configuration of the nRF Desktop application after the BT_CONN_TX_MAX Kconfig option has been deprecated. Ref: NCSDK-34284 Signed-off-by: Kamil Piszczek <[email protected]>
1 parent 2ed9c2c commit 0bca1f3

File tree

1 file changed

+31
-15
lines changed

1 file changed

+31
-15
lines changed

applications/nrf_desktop/Kconfig.ble

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ config BT_CONN_PARAM_UPDATE_TIMEOUT
124124
nRF Desktop peripherals update connection parameters earlier to lower
125125
HID data latency.
126126

127-
config BT_ATT_TX_COUNT
127+
config BT_BUF_ACL_TX_COUNT
128128
default 4
129129
help
130-
This number of ATT buffers allows the nRF Desktop peripheral to
131-
simultaneously send two GATT notifications with HID reports (required
132-
for HID input report pipeline support), BAS notification, and an ATT
133-
response.
130+
This number of outgoing ACL buffers allows the nRF Desktop peripheral
131+
to simultaneously send two GATT notifications with HID reports
132+
(required for HID input report pipeline support), BAS notification,
133+
and an ATT response.
134134

135135
config BT_ATT_SENT_CB_AFTER_TX
136136
default y
@@ -140,12 +140,6 @@ config BT_ATT_SENT_CB_AFTER_TX
140140
latency of provided HID data. The ATT sent callback is used by the
141141
application to trigger sending subsequent HID report.
142142

143-
config BT_CONN_TX_MAX
144-
default BT_ATT_TX_COUNT
145-
help
146-
For an nRF Desktop peripheral, the maximum number of pending TX
147-
buffers with a callback is aligned to the number of ATT buffers.
148-
149143
config BT_GATT_CHRC_POOL_SIZE
150144
default 7 if (DESKTOP_PERIPHERAL_TYPE_MOUSE && \
151145
!DESKTOP_CONFIG_CHANNEL_OUT_REPORT)
@@ -285,12 +279,12 @@ config BT_MAX_PAIRED
285279
Change the default value for the maximum number of paired devices
286280
to be compatible with the dongle bond count.
287281

288-
config BT_ATT_TX_COUNT
282+
config BT_BUF_ACL_TX_COUNT
289283
default 6
290284
help
291-
This number of ATT buffers allows nRF Desktop dongles to connect with
292-
a subsequent peripheral before finishing subscribing for HID reports
293-
from the previously connected peripheral.
285+
This number of outgoing ACL buffers allows nRF Desktop dongles to
286+
connect with a subsequent peripheral before finishing subscribing for
287+
HID reports from the previously connected peripheral.
294288

295289
endif # DESKTOP_BT_CENTRAL
296290

@@ -308,6 +302,16 @@ config BT_CTLR_CONN_PARAM_REQ
308302
nRF Desktop devices disable support for the Connection Parameter
309303
Request feature as it is not needed.
310304

305+
if BT_LL_SOFTDEVICE
306+
307+
config BT_CTLR_SDC_TX_PACKET_COUNT
308+
default BT_BUF_ACL_TX_COUNT
309+
help
310+
The number of ACL TX packets must be aligned between the Bluetooth
311+
Controller and Host.
312+
313+
endif # BT_LL_SOFTDEVICE
314+
311315
endif # HAS_BT_CTLR
312316

313317
config BT_DEVICE_NAME
@@ -342,6 +346,18 @@ config BT_SETTINGS_CCC_LAZY_LOADING
342346
descriptor to speed up reconnections and reduce delay for the
343347
first HID report.
344348

349+
config BT_ATT_TX_COUNT
350+
default BT_BUF_ACL_TX_COUNT
351+
help
352+
For an nRF Desktop device, the maximum number of ATT buffers
353+
is aligned to the number of outgoing ACL buffers.
354+
355+
config BT_L2CAP_TX_BUF_COUNT
356+
default BT_BUF_ACL_TX_COUNT
357+
help
358+
For an nRF Desktop device, the maximum number of L2CAP buffers
359+
is aligned to the number of outgoing ACL buffers.
360+
345361
choice BT_HCI_CORE_LOG_LEVEL_CHOICE
346362
default BT_HCI_CORE_LOG_LEVEL_WRN
347363
help

0 commit comments

Comments
 (0)