Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/3] emulator: Fix extended advertising report types
@ 2026-10-05 16:21 Kevin Dewald
  2026-10-05 16:21 ` [PATCH BlueZ 1/3] emulator: Remove unused le_ext_adv_type Kevin Dewald
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Kevin Dewald @ 2026-10-05 16:21 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Kevin Dewald

btdev sends the wrong Event_Type in two of the LE Extended Advertising
Reports it generates for an advertising set:

- the scan response to non-legacy scannable advertising is reported
  with Event_Type 0x0000 instead of 0x000a
- with more than one active scanner, every scanner after the first gets
  the advertisement reported as a scan response

The first patch removes le_ext_adv_type, which sits next to this code
and has been unused since advertising sets got their own struct.

I reproduced both with a small test driving an advertiser and two
scanners in-process. On master it shows:

  scannable set: scan response 0x0000, expected 0x000a
  two scanners:  scanner 1 adv 0x001b, expected 0x0013

I can send it as a unit test if that would be useful.

mgmt-tester, iso-tester and smp-tester give the same results with and
without the series, apart from LL Privacy tests that fail
intermittently on both.

Kevin Dewald (3):
  emulator: Remove unused le_ext_adv_type
  emulator: Fix extended scan response Event_Type
  emulator: Fix report type after a scan response

 emulator/btdev.c | 37 ++++++-------------------------------
 1 file changed, 6 insertions(+), 31 deletions(-)

-- 
2.54.0 (Apple Git-157)


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

end of thread, other threads:[~2026-10-07 18:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-05 16:21 [PATCH BlueZ 0/3] emulator: Fix extended advertising report types Kevin Dewald
2026-10-05 16:21 ` [PATCH BlueZ 1/3] emulator: Remove unused le_ext_adv_type Kevin Dewald
2026-10-05 20:12   ` emulator: Fix extended advertising report types bluez.test.bot
2026-10-05 16:21 ` [PATCH BlueZ 2/3] emulator: Fix extended scan response Event_Type Kevin Dewald
2026-10-05 16:21 ` [PATCH BlueZ 3/3] emulator: Fix report type after a scan response Kevin Dewald
2026-10-07 18:40 ` [PATCH BlueZ 0/3] emulator: Fix extended advertising report types patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox