Linux bluetooth development
 help / color / mirror / Atom feed
From: Weihong Guan <weihong.guan@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Weihong Guan <weihong.guan@gmail.com>,
	Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	Marcel Holtmann <marcel@holtmann.org>,
	Kyle Pepper <cochcoder@proton.me>
Subject: Re: [PATCH] Bluetooth: hci_sync: Unfiltered scan for peers outside resolving list
Date: Fri, 27 Nov 2026 16:46:56 +0000	[thread overview]
Message-ID: <20261127164657.3505415-1-weihong.guan@gmail.com> (raw)
In-Reply-To: <20261127054519.3146135-1-weihong.guan@gmail.com>

Hi Luiz,

The CI's mgmt-tester fails four LL Privacy cases with this patch:

  LL Privacy - Scan RPA - Auto-connect with IRK
  LL Privacy - Scan RPA - Background report with IRK
  LL Privacy - Add Device 2 (2 Devices to AL)
  LL Privacy - Add Device 3 (AL is full)

They fail as designed, not by accident. Your BlueZ commit fa6ba55020
("mgmt-tester: Add LL Privacy host-resolved RPA scan checks") expects a
peer with an IRK, added without HCI_CONN_FLAG_ADDRESS_RESOLUTION, to stay
in the accept list with filter policy 0x01, "since the controller
resolves RPAs". The patch changes exactly that case, so I would like to
ask which way you prefer before sending a v2.

What I see on hardware: without the flag, hci_le_add_resolve_list_sync()
returns early, so the peer's IRK never reaches the controller's resolving
list. The controller then cannot resolve the peer's RPA, and the accept
list holds only its identity address, so every advertisement from the RPA
is filtered out. A connect by identity to a bonded private peer never
completes (no connection in 15 s, resolv_list empty), on an nRF52840
(Zephyr hci_usb) and on a WCH CH583 running our open controller, as in
the patch's notes. With the flag set, the resolving list path works.

Two ways I can see:

1. Keep this patch (an unflagged peer with an IRK is scanned unfiltered
   and resolved by the host, as on a controller without LL privacy), and
   I send a BlueZ patch updating the four cases to expect that.

2. Leave the scan filtered, and instead put a peer with an IRK into the
   resolving list on an LL privacy controller even without the flag, so
   the accept list matches its resolved identity. That keeps these tests
   as they are, but changes what the flag means, and the Set Device
   Flags cases may need a look.

Is either of these what you had in mind, or is the flag meant to always
be set by userspace for such peers, making the unflagged case unsupported?

Thanks,
Weihong

  parent reply	other threads:[~2026-11-27 16:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  5:45 [PATCH] Bluetooth: hci_sync: Unfiltered scan for peers outside resolving list Weihong Guan
2026-11-27 13:53 ` bluez.test.bot
2026-11-27 16:46 ` Weihong Guan [this message]
2026-11-27 17:10   ` [PATCH] " Luiz Augusto von Dentz
2026-11-28  2:18     ` Weihong Guan
2026-12-04  4:08       ` Weihong Guan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261127164657.3505415-1-weihong.guan@gmail.com \
    --to=weihong.guan@gmail.com \
    --cc=cochcoder@proton.me \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox