Skip to content

Commit

Permalink
bluetooth: controller: Return code from sdc_init was overwirtten
Browse files Browse the repository at this point in the history
There is a bug in hci_driver_init() that overwrites sdc_init()
return code. That can lead to wired behavior in the host and
stack cooperation if there is an error during SDC init.

The commit fixes the issue.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
  • Loading branch information
ppryga-nordic authored and rugeGerritsen committed Feb 19, 2025
1 parent dc14f98 commit 007584f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subsys/bluetooth/controller/hci_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1519,6 +1519,9 @@ static int hci_driver_init(const struct device *dev)
int err = 0;

err = sdc_init(sdc_assertion_handler);
if (err) {
return err;
}

err = configure_supported_features();
if (err) {
Expand Down

0 comments on commit 007584f

Please sign in to comment.