Skip to content

Commit

Permalink
hci_spi_st: send ACI config synchronously
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
arbrauns committed Jul 30, 2024
1 parent 48d69b4 commit c942abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bluetooth/hci/hci_spi_st.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

Expand Down

0 comments on commit c942abe

Please sign in to comment.