Skip to content

Commit c3f89eb

Browse files
olivier-le-sagerlubos
authored andcommitted
bluetooth: remove hci_vs_sdc_set_conn_event_trigger()
This command was deprecated some time ago. + clarify in the kconfig docs that the task can be in any task/peripheral Signed-off-by: Olivier Lesage <[email protected]>
1 parent bffb2a6 commit c3f89eb

File tree

4 files changed

+1
-24
lines changed

4 files changed

+1
-24
lines changed

include/bluetooth/hci_vs_sdc.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -273,16 +273,6 @@ int hci_vs_sdc_read_average_rssi(const sdc_hci_cmd_vs_read_average_rssi_t *param
273273
int hci_vs_sdc_central_acl_event_spacing_set(
274274
const sdc_hci_cmd_vs_central_acl_event_spacing_set_t *params);
275275

276-
/** @brief Set Connection Event Trigger.
277-
*
278-
* For the complete API description, see sdc_hci_cmd_vs_set_conn_event_trigger().
279-
*
280-
* @param[in] params Input parameters.
281-
*
282-
* @return 0 on success or negative error value on failure.
283-
*/
284-
int hci_vs_sdc_set_conn_event_trigger(const sdc_hci_cmd_vs_set_conn_event_trigger_t *params);
285-
286276
/** @brief Get Next Connection Event Counter.
287277
*
288278
* For the complete API description, see sdc_hci_cmd_vs_get_next_conn_event_counter().

subsys/bluetooth/controller/Kconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,7 @@ config BT_CTLR_SDC_EVENT_TRIGGER
398398
Enable support for the Event Trigger feature.
399399
The event trigger is a proprietary SDC feature which can be used
400400
to perform tasks in synchronization with radio activity.
401-
When enabled, this feature will trigger a (D)PPI task at the start of radio events.
402-
When used for connections, the connection event trigger can be configured to trigger
403-
every N connection events starting from a given connection event counter.
401+
When enabled, this feature will trigger a peripheral task at the start of radio events.
404402

405403
config BT_CTLR_SDC_CONN_ANCHOR_POINT_REPORT
406404
bool "Connection event anchor point reports"

subsys/bluetooth/controller/hci_internal.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,6 @@ static void vs_supported_commands(sdc_hci_vs_supported_vs_commands_t *cmds)
688688
#endif
689689

690690
#if defined(CONFIG_BT_CTLR_SDC_EVENT_TRIGGER)
691-
cmds->set_conn_event_trigger = 1;
692691
cmds->set_event_start_task = 1;
693692
#endif
694693

@@ -1719,8 +1718,6 @@ static uint8_t vs_cmd_put(uint8_t const *const cmd, uint8_t *const raw_event_out
17191718
return sdc_hci_cmd_vs_central_acl_event_spacing_set((void *)cmd_params);
17201719
#endif
17211720
#if defined(CONFIG_BT_CTLR_SDC_EVENT_TRIGGER)
1722-
case SDC_HCI_OPCODE_CMD_VS_SET_CONN_EVENT_TRIGGER:
1723-
return sdc_hci_cmd_vs_set_conn_event_trigger((void *)cmd_params);
17241721
case SDC_HCI_OPCODE_CMD_VS_SET_EVENT_START_TASK:
17251722
return sdc_hci_cmd_vs_set_event_start_task((void *)cmd_params);
17261723
#endif

subsys/bluetooth/hci_vs_sdc.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,6 @@ int hci_vs_sdc_central_acl_event_spacing_set(
242242
sizeof(*params));
243243
}
244244

245-
246-
int hci_vs_sdc_set_conn_event_trigger(const sdc_hci_cmd_vs_set_conn_event_trigger_t *params)
247-
{
248-
return hci_vs_cmd_no_rsp(SDC_HCI_OPCODE_CMD_VS_SET_CONN_EVENT_TRIGGER,
249-
params,
250-
sizeof(*params));
251-
}
252-
253245
int hci_vs_sdc_get_next_conn_event_counter(
254246
const sdc_hci_cmd_vs_get_next_conn_event_counter_t *params,
255247
sdc_hci_cmd_vs_get_next_conn_event_counter_return_t *return_params)

0 commit comments

Comments
 (0)