From 719aedb8b544b3c145555b7e8d98b9134fb03d7d Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 9 Sep 2020 10:14:35 +0200 Subject: [PATCH] hfp: ignore hci event that are out of context --- src/classic/hfp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classic/hfp.c b/src/classic/hfp.c index b06cffb6c..e46b83cea 100644 --- a/src/classic/hfp.c +++ b/src/classic/hfp.c @@ -694,6 +694,7 @@ void hfp_handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet hfp_connection->hf_accept_sco = 1; } log_info("hf accept sco %u\n", hfp_connection->hf_accept_sco); + sco_establishment_active = hfp_connection; if (!hfp_hf_run_for_context) break; (*hfp_hf_run_for_context)(hfp_connection); break;