hci: enable connection subrating during init

This commit is contained in:
Matthias Ringwald 2024-10-24 15:39:28 +02:00
parent 03a8d1d24d
commit f266fcb126
2 changed files with 15 additions and 0 deletions

View File

@ -2369,6 +2369,15 @@ static void hci_initializing_run(void){
}
#endif
#ifdef ENABLE_BLE
/* fall through */
case HCI_INIT_LE_SET_HOST_FEATURE_CONNECTION_SUBRATING:
if (hci_le_supported()) {
hci_stack->substate = HCI_INIT_W4_LE_SET_HOST_FEATURE_CONNECTION_SUBRATING;
hci_send_cmd(&hci_le_set_host_feature, 38, 1);
break;
}
#endif
/* fall through */
case HCI_INIT_DONE:

View File

@ -899,11 +899,17 @@ typedef enum hci_init_state{
HCI_INIT_W4_LE_READ_MAX_ADV_DATA_LEN,
#endif
#endif
#ifdef ENABLE_LE_ISOCHRONOUS_STREAMS
HCI_INIT_LE_SET_HOST_FEATURE_CONNECTED_ISO_STREAMS,
HCI_INIT_W4_LE_SET_HOST_FEATURE_CONNECTED_ISO_STREAMS,
#endif
#ifdef ENABLE_BLE
HCI_INIT_LE_SET_HOST_FEATURE_CONNECTION_SUBRATING,
HCI_INIT_W4_LE_SET_HOST_FEATURE_CONNECTION_SUBRATING,
#endif
HCI_INIT_DONE,
HCI_FALLING_ASLEEP_DISCONNECT,