public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] device: Reset svc_resolved on device_discover_services() request
@ 2025-04-16 15:55 Frédéric Danis
  2025-04-16 15:55 ` [PATCH BlueZ 2/2] input: device: Browse SDP records if not cached Frédéric Danis
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Frédéric Danis @ 2025-04-16 15:55 UTC (permalink / raw)
  To: linux-bluetooth

This allows profiles requesting to re-retrieve the services records
(SDP or GATT) to be called back once the services are completed using
device_wait_for_svc_complete().
---
 src/device.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/device.c b/src/device.c
index 097b1fbba..ee9216a8e 100644
--- a/src/device.c
+++ b/src/device.c
@@ -5989,10 +5989,13 @@ int device_discover_services(struct btd_device *device)
 {
 	int err;
 
-	if (device->bredr)
+	if (device->bredr) {
+		device->bredr_state.svc_resolved = FALSE;
 		err = device_browse_sdp(device, NULL);
-	else
+	} else {
+		device->le_state.svc_resolved = FALSE;
 		err = device_browse_gatt(device, NULL);
+	}
 
 	if (err == 0 && device->discov_timer) {
 		timeout_remove(device->discov_timer);
-- 
2.43.0


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

end of thread, other threads:[~2025-04-24 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-16 15:55 [PATCH BlueZ 1/2] device: Reset svc_resolved on device_discover_services() request Frédéric Danis
2025-04-16 15:55 ` [PATCH BlueZ 2/2] input: device: Browse SDP records if not cached Frédéric Danis
2025-04-16 17:39 ` [BlueZ,1/2] device: Reset svc_resolved on device_discover_services() request bluez.test.bot
2025-04-24 17:06 ` bluez.test.bot

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