Added bugfix to enable connection subrating

This commit is contained in:
Sumeet Singh
2024-11-28 12:33:01 +05:30
committed by Rahul Tank
parent 71ab12e581
commit 028d21100a
3 changed files with 6 additions and 0 deletions
+4
View File
@@ -2304,6 +2304,9 @@ void
ble_gap_rx_subrate_change(const struct ble_hci_ev_le_subev_subrate_change *ev) ble_gap_rx_subrate_change(const struct ble_hci_ev_le_subev_subrate_change *ev)
{ {
struct ble_gap_event event; struct ble_gap_event event;
uint16_t conn_handle;
conn_handle = le16toh(ev->conn_handle);
memset(&event, 0x0, sizeof event); memset(&event, 0x0, sizeof event);
@@ -2316,6 +2319,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); event.subrate_change.supervision_tmo = le16toh(ev->supervision_tmo);
ble_gap_event_listener_call(&event); ble_gap_event_listener_call(&event);
ble_gap_call_conn_event_cb(&event, conn_handle);
} }
#endif #endif
+1
View File
@@ -267,6 +267,7 @@ ble_hs_startup_le_set_evmask_tx(void)
* 0x0000000400000000 LE Subrate change event * 0x0000000400000000 LE Subrate change event
*/ */
mask |= 0x0000000400000000; mask |= 0x0000000400000000;
}
#endif #endif
#if MYNEWT_VAL(BLE_POWER_CONTROL) #if MYNEWT_VAL(BLE_POWER_CONTROL)
+1
View File
@@ -1232,6 +1232,7 @@ struct ble_hci_le_subrate_req_cp {
uint16_t conn_handle; uint16_t conn_handle;
uint16_t subrate_min; uint16_t subrate_min;
uint16_t subrate_max; uint16_t subrate_max;
uint16_t max_latency;
uint16_t cont_num; uint16_t cont_num;
uint16_t supervision_tmo; uint16_t supervision_tmo;
} __attribute__((packed)); } __attribute__((packed));