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:
Vinayak Kariappa Chettimada 2021-07-13 05:47:32 +05:30 committed by Carles Cufí
commit 3501148922

View file

@ -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);