Bluetooth: Controller: Fix HCI command parameter check failures
Fix assorted HCI command parameter check failures faced during conformance testing. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
5130db3005
commit
5cb3721313
4 changed files with 41 additions and 9 deletions
|
@ -3278,10 +3278,12 @@ 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)) {
|
||||
if (adv_cmds_ext_check(NULL)) {
|
||||
*evt = cmd_status(BT_HCI_ERR_CMD_DISALLOWED);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
skip = sys_le16_to_cpu(cmd->skip);
|
||||
sync_timeout = sys_le16_to_cpu(cmd->sync_timeout);
|
||||
|
||||
|
@ -3334,6 +3336,10 @@ static void le_per_adv_recv_enable(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_recv_enable(handle, cmd->enable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue