]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit462ef340da93f6c092ed58c40f99e40507627bc0
tree967a54a4d430cd6c81f4c13bc22e4c967b27674c
parent1f02753c72d1fa9ed387fb1dae0d051a55ba9fcb
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: 4436c752bfe64 ("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