Skip to content

Commit 9d5c36d

Browse files
Scepticznashif
authored andcommitted
Bluetooth: hci: Fix incomplete acl mtu setup
This change is supposed to fix the issue of incomplete acl mtu initialization in the absence of BREDR. Find further information here: #39549 Signed-off-by: Tobias Scharnowski <[email protected]>
1 parent 9a9ccfe commit 9d5c36d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

subsys/bluetooth/host/hci_core.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3291,6 +3291,12 @@ static int hci_init(void)
32913291
BT_ERR("Non-BR/EDR controller detected");
32923292
return -EIO;
32933293
}
3294+
#if defined(CONFIG_BT_CONN)
3295+
else if (!bt_dev.le.acl_mtu) {
3296+
BT_ERR("ACL BR/EDR buffers not initialized");
3297+
return -EIO;
3298+
}
3299+
#endif
32943300

32953301
err = set_event_mask();
32963302
if (err) {

0 commit comments

Comments
 (0)