hfp: fix setup/accept of synchronous connection

This commit is contained in:
Matthias Ringwald 2023-05-11 09:30:43 +02:00
parent 654447538d
commit d2e34ffbec
3 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- A2DP: emit A2DP_SUBEVENT_STREAM_ESTABLISHED with if connection fails, e.g. because of Page Timeout
- A2DP: use samples as timestamp, fixes issue with Apple Airpods Pro 2nd Gen
- AVRCP: re-register for notification
- HFP: fix setup/accept of synchronous connection
- PBAP Client: make pbap_set_property_selector work for Pull Phonebook
- esp32: fix power amplifier control on Lyra T v4.3

View File

@ -1133,6 +1133,7 @@ static int hfp_ag_run_for_audio_connection(hfp_connection_t * hfp_connection){
if (sent) return 1;
if (hfp_connection->codecs_state != HFP_CODECS_EXCHANGED) return 0;
if (hci_can_send_command_packet_now() == false) return 0;
if (hfp_connection->establish_audio_connection){
hfp_connection->state = HFP_W4_SCO_CONNECTED;
hfp_connection->establish_audio_connection = 0;

View File

@ -711,6 +711,7 @@ static int hfp_hf_run_for_audio_connection(hfp_connection_t * hfp_connection){
if (done) return 1;
if (hfp_connection->codecs_state != HFP_CODECS_EXCHANGED) return 0;
if (hci_can_send_command_packet_now() == false) return 0;
if (hfp_connection->establish_audio_connection){
hfp_connection->state = HFP_W4_SCO_CONNECTED;
hfp_connection->establish_audio_connection = 0;