mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-24 15:02:43 +00:00
hci: skip failed cis during iso path setup
This commit is contained in:
parent
8850b501b6
commit
c5f5d70624
@ -7148,7 +7148,7 @@ static bool hci_run_iso_tasks(void){
|
|||||||
hci_send_cmd(&hci_le_create_cis, cig->num_cis, cig->cis_con_handles, cig->acl_con_handles);
|
hci_send_cmd(&hci_le_create_cis, cig->num_cis, cig->cis_con_handles, cig->acl_con_handles);
|
||||||
return true;
|
return true;
|
||||||
case LE_AUDIO_CIG_STATE_SETUP_ISO_PATH:
|
case LE_AUDIO_CIG_STATE_SETUP_ISO_PATH:
|
||||||
while (cig->state_vars.next_cis < (cig->num_cis * 2)){
|
for ( ; cig->state_vars.next_cis < (cig->num_cis * 2) ; cig->state_vars.next_cis++ ){
|
||||||
// find next path to setup
|
// find next path to setup
|
||||||
uint8_t cis_index = cig->state_vars.next_cis >> 1;
|
uint8_t cis_index = cig->state_vars.next_cis >> 1;
|
||||||
if (cig->cis_established[cis_index] == false) {
|
if (cig->cis_established[cis_index] == false) {
|
||||||
@ -7172,9 +7172,7 @@ static bool hci_run_iso_tasks(void){
|
|||||||
hci_send_cmd(&hci_le_setup_iso_data_path, cig->cis_con_handles[cis_index], cis_direction, 0, HCI_AUDIO_CODING_FORMAT_TRANSPARENT, 0, 0, 0, 0, NULL);
|
hci_send_cmd(&hci_le_setup_iso_data_path, cig->cis_con_handles[cis_index], cis_direction, 0, HCI_AUDIO_CODING_FORMAT_TRANSPARENT, 0, 0, 0, 0, NULL);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
cig->state_vars.next_cis++;
|
|
||||||
}
|
}
|
||||||
// emit done
|
|
||||||
cig->state = LE_AUDIO_CIG_STATE_ACTIVE;
|
cig->state = LE_AUDIO_CIG_STATE_ACTIVE;
|
||||||
break;
|
break;
|
||||||
case LE_AUDIO_CIG_STATE_REMOVE:
|
case LE_AUDIO_CIG_STATE_REMOVE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user