Bluetooth: Controller: Legacy vs Extended check for Periodic Adv HCI
Add the check for mixed use of Legacy vs Extended HCI commands for Periodic Advertising related HCI commands. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
591007206d
commit
3501148922
1 changed files with 12 additions and 0 deletions
|
@ -3209,6 +3209,10 @@ static void le_per_adv_create_sync(struct net_buf *buf, struct net_buf **evt)
|
|||
uint8_t status;
|
||||
uint16_t skip;
|
||||
|
||||
if (adv_cmds_ext_check(evt)) {
|
||||
return;
|
||||
}
|
||||
|
||||
skip = sys_le16_to_cpu(cmd->skip);
|
||||
sync_timeout = sys_le16_to_cpu(cmd->sync_timeout);
|
||||
|
||||
|
@ -3225,6 +3229,10 @@ static void le_per_adv_create_sync_cancel(struct net_buf *buf,
|
|||
struct bt_hci_evt_cc_status *ccst;
|
||||
uint8_t status;
|
||||
|
||||
if (adv_cmds_ext_check(evt)) {
|
||||
return;
|
||||
}
|
||||
|
||||
status = ll_sync_create_cancel(node_rx);
|
||||
|
||||
ccst = hci_cmd_complete(evt, sizeof(*ccst));
|
||||
|
@ -3238,6 +3246,10 @@ static void le_per_adv_terminate_sync(struct net_buf *buf, struct net_buf **evt)
|
|||
uint16_t handle;
|
||||
uint8_t status;
|
||||
|
||||
if (adv_cmds_ext_check(evt)) {
|
||||
return;
|
||||
}
|
||||
|
||||
handle = sys_le16_to_cpu(cmd->handle);
|
||||
|
||||
status = ll_sync_terminate(handle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue