Bluetooth: HCI: Fix not always setting Scan Response/Advertising Data
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 8 Jun 2022 22:00:01 +0000 (15:00 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Jul 2022 00:07:30 +0000 (17:07 -0700)
commit34a718bc86f908de8ef79affaff6a3de7b95759c
tree9d3a2a323a9b8dd6de240cc7df50726538fa2fb0
parentdd7b8cdde098cf9f7c8de409b5b7bbb98f97be80
Bluetooth: HCI: Fix not always setting Scan Response/Advertising Data

The scan response and advertising data needs to be tracked on a per
instance (adv_info) since when these instaces are removed so are their
data, to fix that new flags are introduced which is used to mark when
the data changes and then checked to confirm when the data needs to be
synced with the controller.

Tested-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_sync.c