Skip to content

Commit c3f15b2

Browse files
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.
1 parent 779ab3f commit c3f15b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nimble/host/src/ble_gap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,6 +1993,7 @@ ble_gap_rx_subrate_change(const struct ble_hci_ev_le_subev_subrate_change *ev)
19931993
event.subrate_change.supervision_tmo = le16toh(ev->supervision_tmo);
19941994

19951995
ble_gap_event_listener_call(&event);
1996+
ble_gap_call_conn_event_cb(&event, ev->conn_handle);
19961997
}
19971998
#endif
19981999

0 commit comments

Comments
 (0)