All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez PATCH 0/3] Bluetooth: Fix scannable broadcast advertising on extended APIs
@ 2021-03-03 19:20 Daniel Winkler
  2021-03-03 19:20 ` [Bluez PATCH 1/3] advertising: Generate advertising data earlier in pipeline Daniel Winkler
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Daniel Winkler @ 2021-03-03 19:20 UTC (permalink / raw)
  To: linux-bluetooth, luiz.dentz
  Cc: chromeos-bluetooth-upstreaming, Daniel Winkler

Hello Maintainers,

We have discovered that when userspace registers a broadcast
(non-connectable) advertisement with scan response data, it exposes a
limitation in the new extended MGMT APIs. At the time that the
parameters are registered with the controller, kernel does not yet have
the advertising data and scan response (coming in a separate MGMT call),
and will default to a non-scannable PDU. When the MGMT call for
data/scan response is received, the controller will either fail when we
request to set the scan response, or return success and not use it.

This series along with another in kernel will allow userspace to pass a
flag with the params request indicating if the advertisement contains a
scan response. This allows kernel to register the parameters correctly
with the controller.

The patch is tested with a scannable broadcast advertisement on Hatch
and Kukui chromebooks (ext and non-ext capabilities) and ensuring a
peripheral device can detect the scan response.

Best,
Daniel


Daniel Winkler (3):
  advertising: Generate advertising data earlier in pipeline
  advertising: Create and use scannable adv param flag
  doc/mgmt-api: Update documentation for scan_rsp param flag

 doc/mgmt-api.txt  |  5 +++
 lib/mgmt.h        |  1 +
 src/advertising.c | 83 ++++++++++++++++++++++++++---------------------
 3 files changed, 52 insertions(+), 37 deletions(-)

-- 
2.30.1.766.gb4fecdf3b7-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-04 20:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03 19:20 [Bluez PATCH 0/3] Bluetooth: Fix scannable broadcast advertising on extended APIs Daniel Winkler
2021-03-03 19:20 ` [Bluez PATCH 1/3] advertising: Generate advertising data earlier in pipeline Daniel Winkler
2021-03-03 19:20 ` [Bluez PATCH 2/3] advertising: Create and use scannable adv param flag Daniel Winkler
2021-03-04 18:59   ` Luiz Augusto von Dentz
2021-03-04 20:27     ` Daniel Winkler
2021-03-03 19:20 ` [Bluez PATCH 3/3] doc/mgmt-api: Update documentation for scan_rsp " Daniel Winkler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.