From ad83ba99d649ae19183de82b6c35374152a8b847 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Mon, 17 Nov 2025 14:26:35 +0100 Subject: [PATCH 1/2] nimble/ll: Allow HCI VS for CSS only if CSS is enabled HCI VS commands should only be allowed if the CSS feature is enabled. --- nimble/controller/syscfg.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/nimble/controller/syscfg.yml b/nimble/controller/syscfg.yml index 517cfe0fdf..4715be6fe6 100644 --- a/nimble/controller/syscfg.yml +++ b/nimble/controller/syscfg.yml @@ -428,6 +428,7 @@ syscfg.defs: value: 0 restrictions: - BLE_LL_HCI_VS if 1 + - BLE_LL_CONN_STRICT_SCHED if 1 BLE_LL_HCI_VS_LOCAL_IRK: description: > Enables HCI command to set local IRK. From 5fe65a5356bd819cbf0588d18964e202d93ec090 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Mon, 17 Nov 2025 14:27:10 +0100 Subject: [PATCH 2/2] nimble/ll: Send CSS slot event after connection complete If CSS is enabled and HCI VS are also enabled, we should send slot event to the host to indicate which slot was assigned to the new connection. --- nimble/controller/src/ble_ll_conn.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nimble/controller/src/ble_ll_conn.c b/nimble/controller/src/ble_ll_conn.c index a702f35323..1f7b477328 100644 --- a/nimble/controller/src/ble_ll_conn.c +++ b/nimble/controller/src/ble_ll_conn.c @@ -2901,6 +2901,10 @@ ble_ll_conn_created(struct ble_ll_conn_sm *connsm, struct ble_mbuf_hdr *rxhdr) #if MYNEWT_VAL(BLE_LL_CFG_FEAT_LE_CSA2) ble_ll_hci_ev_le_csa(connsm); #endif +#if MYNEWT_VAL(BLE_LL_HCI_VS_CONN_STRICT_SCHED) + ble_ll_hci_ev_send_vs_css_slot_changed(connsm->conn_handle, + connsm->css_slot_idx); +#endif /* * Initiate features exchange