public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bluez v3] adapter: Prepend the new added device to the adapter devices list
@ 2025-02-26  8:52 Ye He via B4 Relay
  2025-02-26 10:14 ` [bluez,v3] " bluez.test.bot
  2025-02-26 20:30 ` [PATCH bluez v3] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Ye He via B4 Relay @ 2025-02-26  8:52 UTC (permalink / raw)
  To: Linux Bluetooth; +Cc: Ye He

From: Ye He <ye.he@amlogic.com>

When the DUT is paired with a mobile phone using RPA multiple times,
multiple device contexts with the same bdaddr will be cached.
When we query the device context through bdaddr, we always get the
context at the head of adapter->devices, but its status is inactive.

https://github.com/bluez/bluez/issues/1095

Signed-off-by: Ye He <ye.he@amlogic.com>
---
Changes in v3:
- EDITME: Correct the formatting errors of author and SOB.
- EDITME: use bulletpoints and terse descriptions.
- Link to v2: https://patch.msgid.link/20250226-leaudio-no-media-v2-1-8d4dd95513ed@amlogic.com

Changes in v2:
- EDITME: Correct the formatting errors of author and SOB.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://patch.msgid.link/20250225-leaudio-no-media-v1-1-6da9454067d3@amlogic.com
---
 src/adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/adapter.c b/src/adapter.c
index cbe5b197963a7e07a50f74a697ad3d35f9bc3786..c0d647efdde0d9eab2e27c360c0bfb9fbadeb7ef 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -5252,7 +5252,7 @@ void device_resolved_drivers(struct btd_adapter *adapter,
 static void adapter_add_device(struct btd_adapter *adapter,
 						struct btd_device *device)
 {
-	adapter->devices = g_slist_append(adapter->devices, device);
+	adapter->devices = g_slist_prepend(adapter->devices, device);
 	device_added_drivers(adapter, device);
 }
 

---
base-commit: 4465c577778d812702d752dfd2812e25a2f69b31
change-id: 20250225-leaudio-no-media-634423086ea4

Best regards,
-- 
Ye He <ye.he@amlogic.com>



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

end of thread, other threads:[~2025-02-26 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26  8:52 [PATCH bluez v3] adapter: Prepend the new added device to the adapter devices list Ye He via B4 Relay
2025-02-26 10:14 ` [bluez,v3] " bluez.test.bot
2025-02-26 20:30 ` [PATCH bluez v3] " 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