summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Winkler <danielwinkler@google.com>2021-04-05 16:33:04 -0700
committerMarcel Holtmann <marcel@holtmann.org>2021-04-06 10:43:25 +0200
commit25e70886c20005ac7facbd997ff4c3526dcd0de3 (patch)
tree0e9ad60438754062d80916c068a7e2a68712688e /lib
parent93917fd224fdaebd0864143468e358300d1ffe36 (diff)
Bluetooth: Use ext adv handle from requests in CCs
Some extended advertising hci command complete events are still using hdev->cur_adv_instance to map the request to the correct advertisement handle. However, with extended advertising, "current instance" doesn't make sense as we can have multiple concurrent advertisements. This change switches these command complete handlers to use the advertising handle from the request/event, to ensure we will always use the correct advertising handle regardless of the state of hdev->cur_adv_instance. This change is tested on hatch and kefka chromebooks and run through single- and multi-advertising automated tests to confirm callbacks report tx power to the correct advertising handle, etc. Reviewed-by: Miao-chen Chou <mcchou@chromium.org> Signed-off-by: Daniel Winkler <danielwinkler@google.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions