Skip to content

Commit 0b9f8dd

Browse files
MarekPietakapi-no
authored andcommitted
applications: nrf_desktop: Update LLPM dependency in BLE conn params
Use CONFIG_CAF_BLE_USE_LLPM to allow using the module also in case BLE controller is not part of the main application. Jira: NCSDK-31539 Signed-off-by: Marek Pieta <[email protected]> Signed-off-by: Pekka Niskanen <[email protected]>
1 parent e043b16 commit 0b9f8dd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

applications/nrf_desktop/src/modules/ble_conn_params.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#include <zephyr/bluetooth/hci.h>
99
#include <bluetooth/gatt_dm.h>
1010

11-
#ifdef CONFIG_BT_LL_SOFTDEVICE
11+
#ifdef CONFIG_CAF_BLE_USE_LLPM
1212
#include <bluetooth/hci_vs_sdc.h>
13-
#endif /* CONFIG_BT_LL_SOFTDEVICE */
13+
#endif /* CONFIG_CAF_BLE_USE_LLPM */
1414

1515
#define MODULE ble_conn_params
1616
#include <caf/events/module_state_event.h>
@@ -86,7 +86,7 @@ static int interval_reg_to_us(uint16_t reg)
8686

8787
static int set_llpm_conn_param(struct bt_conn *conn, uint16_t latency)
8888
{
89-
#ifdef CONFIG_BT_CTLR_SDC_LLPM
89+
#ifdef CONFIG_CAF_BLE_USE_LLPM
9090
sdc_hci_cmd_vs_conn_update_t cmd_conn_update;
9191
uint16_t conn_handle;
9292

@@ -106,7 +106,7 @@ static int set_llpm_conn_param(struct bt_conn *conn, uint16_t latency)
106106
#else
107107
__ASSERT_NO_MSG(false);
108108
return -ENOTSUP;
109-
#endif /* CONFIG_BT_CTLR_SDC_LLPM */
109+
#endif /* CONFIG_CAF_BLE_USE_LLPM */
110110
}
111111

112112
static int set_conn_params(struct connected_peer *peer)

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,9 @@ nRF Desktop
354354
* The :ref:`nrf_desktop_dvfs` to no longer consume the :c:struct:`ble_peer_conn_params_event`.
355355
This allows to propagate the event to further listeners of the same or lower priority.
356356
This prevents an issue where :ref:`nrf_desktop_ble_latency` is not informed about the connection parameter update (it might cause missing connection latency updates).
357+
* The Low Latency Packet Mode (LLPM) dependency in the :ref:`nrf_desktop_ble_conn_params`.
358+
The module relies on the :kconfig:option:`CONFIG_CAF_BLE_USE_LLPM` Kconfig option.
359+
This allows using the module also when the Bluetooth LE controller is not part of the main application.
357360

358361
* Removed:
359362

0 commit comments

Comments
 (0)