Skip to content

Commit

Permalink
bluetooth: hci_driver: Process recvd msgs directly from SDC callback
Browse files Browse the repository at this point in the history
After replacing K_FOREVER with K_NO_WAIT when requesting a buffer from
the host pool, it became possible to call `hci_driver_receive_process`
directly from the SDC callback instead of going through
`receive_signal_raise` as `hci_driver_receive_process` is now
non-blocking.

Signed-off-by: Pavel Vasilyev <[email protected]>
  • Loading branch information
PavelVPV committed Nov 27, 2024
1 parent 38d5fc9 commit f77cf88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/controller/hci_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ static int hci_driver_open(const struct device *dev, bt_hci_recv_t recv_func)
}
#endif

err = sdc_enable(receive_signal_raise, sdc_mempool);
err = sdc_enable(hci_driver_receive_process, sdc_mempool);
if (err) {
MULTITHREADING_LOCK_RELEASE();
return err;
Expand Down

0 comments on commit f77cf88

Please sign in to comment.