Skip to content

Commit 3501148

Browse files
cvinayakcarlescufi
authored andcommitted
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 <[email protected]>
1 parent 5910072 commit 3501148

File tree

1 file changed

+12
-0
lines changed
  • subsys/bluetooth/controller/hci

1 file changed

+12
-0
lines changed

subsys/bluetooth/controller/hci/hci.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3209,6 +3209,10 @@ static void le_per_adv_create_sync(struct net_buf *buf, struct net_buf **evt)
32093209
uint8_t status;
32103210
uint16_t skip;
32113211

3212+
if (adv_cmds_ext_check(evt)) {
3213+
return;
3214+
}
3215+
32123216
skip = sys_le16_to_cpu(cmd->skip);
32133217
sync_timeout = sys_le16_to_cpu(cmd->sync_timeout);
32143218

@@ -3225,6 +3229,10 @@ static void le_per_adv_create_sync_cancel(struct net_buf *buf,
32253229
struct bt_hci_evt_cc_status *ccst;
32263230
uint8_t status;
32273231

3232+
if (adv_cmds_ext_check(evt)) {
3233+
return;
3234+
}
3235+
32283236
status = ll_sync_create_cancel(node_rx);
32293237

32303238
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)
32383246
uint16_t handle;
32393247
uint8_t status;
32403248

3249+
if (adv_cmds_ext_check(evt)) {
3250+
return;
3251+
}
3252+
32413253
handle = sys_le16_to_cpu(cmd->handle);
32423254

32433255
status = ll_sync_terminate(handle);

0 commit comments

Comments
 (0)