drivers: Bluetooth: rpmsg: Add missing BT_QUIRK_NO_AUTO_DLE

Add BT_QUIRK_NO_AUTO_DLE quirk option for HCI rpmsg driver
when the Zephyr open source BLE controller is used.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2020-09-09 21:28:29 +05:30 committed by Carles Cufí
commit bd7ee86496
2 changed files with 16 additions and 0 deletions

View file

@ -134,3 +134,16 @@ config BT_RPMSG_NRF53_RX_PRIO
default 8
endif # BT_RPMSG_NRF53
config BT_DRIVER_QUIRK_NO_AUTO_DLE
bool "Host auto-initiated Data Length Update quirk"
depends on BT_AUTO_DATA_LEN_UPDATE
default y if BT_RPMSG_NRF53
help
Enable the quirk wherein BT Host stack will auto-initiate Data Length
Update procedure for new connections for controllers that do not
auto-initiate the procedure if the default data length parameters are
not equal to the initial parameters.
This has to be enabled when the BLE controller connected is Zephyr
open source controller.

View file

@ -198,6 +198,9 @@ static const struct bt_hci_driver drv = {
.open = bt_rpmsg_open,
.send = bt_rpmsg_send,
.bus = BT_HCI_DRIVER_BUS_IPM,
#if defined(BT_DRIVER_QUIRK_NO_AUTO_DLE)
.quirks = BT_QUIRK_NO_AUTO_DLE,
#endif
};
static int bt_rpmsg_init(const struct device *unused)