This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit ae62dda39e6f155025cdb4199f9aee34370b6f69
Author: Szymon Czapracki <[email protected]>
AuthorDate: Tue Jul 8 10:58:03 2025 +0200

    nimble/host/gap: Add callback for subrate change event
    
    `ble_gap_rx_subrate_change()` handler now
    invokes `ble_gap_call_conn_event_cb()` to allow applications to react
    to subrate change events.
    
    This addition ensures that registered connection event callbacks are
    notified when a subrate change occurs, providing better support
    for LE Subrate procedures.
---
 nimble/host/src/ble_gap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index baa010e0b..80ab840c8 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -1993,6 +1993,7 @@ ble_gap_rx_subrate_change(const struct 
ble_hci_ev_le_subev_subrate_change *ev)
     event.subrate_change.supervision_tmo = le16toh(ev->supervision_tmo);
 
     ble_gap_event_listener_call(&event);
+    ble_gap_call_conn_event_cb(&event, ev->conn_handle);
 }
 #endif
 

Reply via email to