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:
parent
63f718f9b8
commit
b8546150a3
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue