Bluetooth: Fail on init if BR/EDR is enabled but not supported
For now if BR/EDR support is enabled we require chip to support it. This is due to rest of the BR/EDR code doesn't do runtime check but just assumes BR/EDR is there. Change-Id: I26124a7f1a06cd65800c0b1b17842eb4a4ffb6cb Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
945fbfe52b
commit
c10d6156d6
1 changed files with 5 additions and 0 deletions
|
@ -3189,7 +3189,12 @@ static int hci_init(void)
|
|||
return err;
|
||||
}
|
||||
} else {
|
||||
#if defined(CONFIG_BLUETOOTH_BREDR)
|
||||
BT_ERR("Non-BR/EDR controller detected");
|
||||
return -EIO;
|
||||
#else
|
||||
BT_DBG("Non-BR/EDR controller detected! Skipping BR init.");
|
||||
#endif
|
||||
}
|
||||
|
||||
err = set_event_mask();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue