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:
Szymon Janc 2016-08-16 14:22:26 +02:00 committed by Johan Hedberg
commit c10d6156d6

View file

@ -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();