Added bugfix to enable connection subrating

This commit is contained in:
Sumeet Singh
2024-12-10 15:44:26 +05:30
parent 38083ef0e9
commit a1acc2cb3a
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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
+1
View File
@@ -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)