Skip to content

Commit 2c45deb

Browse files
MarekPietanordicjm
authored andcommitted
bluetooth: controller: Return an error if LLPM is not supported
Return an error when handling LLPM enable command in case LLPM feature is not supported (e.g. on nRF53 SoC Series). Jira: NCSDK-29545 Signed-off-by: Marek Pieta <[email protected]>
1 parent 638711e commit 2c45deb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Amazon Sidewalk
108108
Bluetooth® LE
109109
-------------
110110

111-
|no_changes_yet_note|
111+
* Updated the Bluetooth LE SoftDevice Controller driver to make the :c:func:`hci_vs_sdc_llpm_mode_set` function return an error if Low Latency Packet Mode (LLPM) is not supported or not enabled in the Bluetooth LE Controller driver configuration (:kconfig:option:`CONFIG_BT_CTLR_SDC_LLPM`).
112112

113113
Bluetooth Mesh
114114
--------------

subsys/bluetooth/controller/hci_internal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,9 @@ static void vs_supported_commands(sdc_hci_vs_supported_vs_commands_t *cmds)
673673
memset(cmds, 0, sizeof(*cmds));
674674

675675
cmds->read_supported_vs_commands = 1;
676+
#if defined(CONFIG_BT_CTLR_SDC_LLPM)
676677
cmds->llpm_mode_set = 1;
678+
#endif
677679
cmds->conn_update = 1;
678680
cmds->conn_event_extend = 1;
679681
cmds->qos_conn_event_report_enable = 1;
@@ -1681,8 +1683,10 @@ static uint8_t vs_cmd_put(uint8_t const *const cmd, uint8_t *const raw_event_out
16811683
*param_length_out += sizeof(sdc_hci_cmd_vs_read_supported_vs_commands_return_t);
16821684
vs_supported_commands((void *)event_out_params);
16831685
return 0;
1686+
#if CONFIG_BT_CTLR_SDC_LLPM
16841687
case SDC_HCI_OPCODE_CMD_VS_LLPM_MODE_SET:
16851688
return sdc_hci_cmd_vs_llpm_mode_set((void *)cmd_params);
1689+
#endif /* CONFIG_BT_CTLR_SDC_LLPM */
16861690
case SDC_HCI_OPCODE_CMD_VS_CONN_UPDATE:
16871691
return sdc_hci_cmd_vs_conn_update((void *)cmd_params);
16881692
case SDC_HCI_OPCODE_CMD_VS_CONN_EVENT_EXTEND:

0 commit comments

Comments
 (0)