From c942abe22c58545d46f5ef1621d94ed89fac3ce4 Mon Sep 17 00:00:00 2001 From: Armin Brauns Date: Tue, 30 Jul 2024 12:47:52 +0000 Subject: [PATCH] hci_spi_st: send ACI config synchronously There's no reason to send these async, and since the reply isn't waited for anywhere, this can cause the HCI buffer pool to be exhausted and `bt_enable()` to fail. Signed-off-by: Armin Brauns --- drivers/bluetooth/hci/hci_spi_st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci/hci_spi_st.c b/drivers/bluetooth/hci/hci_spi_st.c index fcfe2f4b750243..cc4d7f8b9d0e99 100644 --- a/drivers/bluetooth/hci/hci_spi_st.c +++ b/drivers/bluetooth/hci/hci_spi_st.c @@ -350,7 +350,7 @@ static int bt_spi_send_aci_config(uint8_t offset, const uint8_t *value, size_t v #if defined(CONFIG_BT_HCI_RAW) return bt_send(buf); #else - return bt_hci_cmd_send(BLUENRG_ACI_WRITE_CONFIG_DATA, buf); + return bt_hci_cmd_send_sync(BLUENRG_ACI_WRITE_CONFIG_DATA, buf, NULL); #endif /* CONFIG_BT_HCI_RAW */ }