Message ID | 20250415214811.1677842-2-luiz.dentz@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | [BlueZ,v2] bap: Fix not setting SID for broadcast receiver | expand |
diff --git a/emulator/btdev.c b/emulator/btdev.c index 7e4cb9393593..a1c82ae306d7 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -5728,6 +5728,12 @@ static int cmd_pa_create_sync(struct btdev *dev, const void *data, uint8_t len) uint8_t status = BT_HCI_ERR_SUCCESS; struct le_per_adv *per_adv; + if (cmd->sid > 0x0f) { + cmd_status(dev, BT_HCI_ERR_INVALID_PARAMETERS, + BT_HCI_CMD_LE_PA_CREATE_SYNC); + return 0; + } + /* Create new train */ per_adv = le_per_adv_new(dev, cmd->addr_type, cmd->addr); if (!per_adv)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> --- emulator/btdev.c | 6 ++++++ 1 file changed, 6 insertions(+)