diff mbox series

[BlueZ,1/2] transport: Send reply to select/unselect

Message ID 20241025142842.46566-2-iulia.tanasescu@nxp.com
State New
Headers show
Series transport: Fix select/unselect reply missing | expand

Commit Message

Iulia Tanasescu Oct. 25, 2024, 2:28 p.m. UTC
When a transport is selected from bluetoothctl, a reply is expected.
Currently, if the method call is successful, no reply is sent, causing
the following error message in bluetoothctl:

transport.Failed to select: org.freedesktop.DBus.Error.NoReply

The same error can be reproduced for the unselect method.

This commit updates the select and unselect methods to send reply
messages.
---
 profiles/audio/transport.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

bluez.test.bot@gmail.com Oct. 25, 2024, 4:37 p.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=903164

---Test result---

Test Summary:
CheckPatch                    PASS      0.86 seconds
GitLint                       PASS      0.62 seconds
BuildEll                      PASS      24.79 seconds
BluezMake                     PASS      1751.11 seconds
MakeCheck                     PASS      12.97 seconds
MakeDistcheck                 PASS      181.16 seconds
CheckValgrind                 PASS      254.25 seconds
CheckSmatch                   PASS      360.17 seconds
bluezmakeextell               PASS      123.96 seconds
IncrementalBuild              PASS      3214.92 seconds
ScanBuild                     PASS      1042.41 seconds



---
Regards,
Linux Bluetooth
diff mbox series

Patch

diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index 68192bae6..bc63772a6 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -1423,7 +1423,7 @@  static DBusMessage *select_transport(DBusConnection *conn, DBusMessage *msg,
 		transport_update_playing(transport, TRUE);
 	}
 
-	return NULL;
+	return dbus_message_new_method_return(msg);
 }
 
 static DBusMessage *unselect_transport(DBusConnection *conn, DBusMessage *msg,
@@ -1436,7 +1436,7 @@  static DBusMessage *unselect_transport(DBusConnection *conn, DBusMessage *msg,
 		transport_update_playing(transport, FALSE);
 	}
 
-	return NULL;
+	return dbus_message_new_method_return(msg);
 }
 
 static void sink_state_changed(struct btd_service *service,