diff mbox series

[BlueZ,1/1] Revert "device: Consider service state on device_is_connected"

Message ID 20240403205252.71978-2-dimitris.on.linux@gmail.com
State New
Headers show
Series [BlueZ,1/1] Revert "device: Consider service state on device_is_connected" | expand

Commit Message

Dimitris April 3, 2024, 8:52 p.m. UTC
This reverts commit 44d3f67277f83983e1e9697eda7b9aeb40ca231d.
---
 src/device.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/src/device.c b/src/device.c
index 5e74633c6..de5f94c7d 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3273,11 +3273,7 @@  uint8_t btd_device_get_bdaddr_type(struct btd_device *dev)
 
 bool btd_device_is_connected(struct btd_device *dev)
 {
-	if (dev->bredr_state.connected || dev->le_state.connected)
-		return true;
-
-	return find_service_with_state(dev->services,
-						BTD_SERVICE_STATE_CONNECTED);
+	return dev->bredr_state.connected || dev->le_state.connected;
 }
 
 static void clear_temporary_timer(struct btd_device *dev)