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 <armin.brauns@embedded-solutions.at>
This commit is contained in:
Armin Brauns 2024-07-30 12:47:52 +00:00 committed by Fabio Baltieri
parent f810e1318f
commit 6ba6c66ab5

View file

@ -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 */
}