Merge branch 'bugfix/fix_ble_sync_cmd_command_status_err' into 'master'

fix(ble/bluedroid): unblock sync HCI cmd on Command Status error

Closes BLERP-2926

See merge request espressif/esp-idf!49965
This commit is contained in:
Island
2026-06-26 16:52:18 +08:00
2 changed files with 17 additions and 0 deletions
@@ -1965,6 +1965,11 @@ static void btu_hcif_command_status_evt(uint8_t status, BT_HDR *command, void *c
{
BT_HDR *event = osi_calloc(sizeof(BT_HDR) + sizeof(command_status_hack_t));
command_status_hack_t *hack = (command_status_hack_t *)&event->data[0];
#if ((BLE_50_FEATURE_SUPPORT == TRUE) || (BLE_42_FEATURE_SUPPORT == TRUE))
if (status != HCI_SUCCESS) {
btsnd_hci_ble_set_status(status);
}
#endif // #if ((BLE_50_FEATURE_SUPPORT == TRUE) || (BLE_42_FEATURE_SUPPORT == TRUE))
hack->callback = btu_hcif_command_status_evt_on_task;
hack->status = status;