mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-14 01:37:23 +00:00
Added bugfix to enable connection subrating
This commit is contained in:
@@ -2091,6 +2091,9 @@ void
|
||||
ble_gap_rx_subrate_change(const struct ble_hci_ev_le_subev_subrate_change *ev)
|
||||
{
|
||||
struct ble_gap_event event;
|
||||
uint16_t conn_handle;
|
||||
|
||||
conn_handle = le16toh(ev->conn_handle);
|
||||
|
||||
memset(&event, 0x0, sizeof event);
|
||||
|
||||
@@ -2103,6 +2106,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, conn_handle);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -245,6 +245,7 @@ ble_hs_startup_le_set_evmask_tx(void)
|
||||
* 0x0000000400000000 LE Subrate change event
|
||||
*/
|
||||
mask |= 0x0000000400000000;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if MYNEWT_VAL(BLE_POWER_CONTROL)
|
||||
|
||||
Reference in New Issue
Block a user