Bluetooth: Controller: Added ISO CH feature bit check in le_create_cis

Check that the Isochronous Channels (Host Support) feature bit is set
before creating a CIS.

Signed-off-by: Lucas Mathias Balling <lutb@demant.com>
This commit is contained in:
Lucas Mathias Balling 2023-07-13 07:54:46 +02:00 committed by Fabio Baltieri
commit b8546150a3

View file

@ -2121,6 +2121,15 @@ static void le_create_cis(struct net_buf *buf, struct net_buf **evt)
uint8_t status;
uint8_t i;
/*
* Only create a CIS if the Isochronous Channels (Host Support) feature bit
* is set. Refer to BT Spec v5.4 Vol 6 Part B Section 4.6.33.1.
*/
if (!(ll_feat_get() & BIT64(BT_LE_FEAT_BIT_ISO_CHANNELS))) {
*evt = cmd_status(BT_HCI_ERR_CMD_DISALLOWED);
return;
}
/*
* Creating new CISes is disallowed until all previous CIS
* established events have been generated