Bluetooth: Fix Set Extended (Scan Response) Data
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 9 Jun 2021 18:09:27 +0000 (11:09 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 26 Jun 2021 05:12:44 +0000 (07:12 +0200)
commitc9ed0a7077306f9d41d74fb006ab5dbada8349c5
tree967a54a4d430cd6c81f4c13bc22e4c967b27674c
parent3d4f9c00492b4e21641e5140a5e78cb50b58d60b
Bluetooth: Fix Set Extended (Scan Response) Data

These command do have variable length and the length can go up to 251,
so this changes the struct to not use a fixed size and then when
creating the PDU only the actual length of the data send to the
controller.

Fixes: a0fb3726ba551 ("Bluetooth: Use Set ext adv/scan rsp data if controller supports")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h
net/bluetooth/hci_request.c