[PATCH 7/8] android/tester: Make avrcp use sdp pdu sending helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes any potential issues with the sdp response transaction id not
matching the request.
---
 android/tester-avrcp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/android/tester-avrcp.c b/android/tester-avrcp.c
index 46c92e3..6beab7d 100644
--- a/android/tester-avrcp.c
+++ b/android/tester-avrcp.c
@@ -173,8 +173,8 @@ static void sdp_cid_hook_cb(const void *data, uint16_t len, void *user_data)
 	struct bthost *bthost = hciemu_client_get_host(t_data->hciemu);
 	struct emu_cid_data *cid_data = user_data;
 
-	bthost_send_cid(bthost, cid_data->handle, cid_data->cid,
-					sdp_rsp_pdu.data, sdp_rsp_pdu.size);
+	tester_send_sdp_pdu(bthost, cid_data->handle, cid_data->cid,
+					get_be16(data + 1), &sdp_rsp_pdu);
 }
 static void sdp_connect_request_cb(uint16_t handle, uint16_t cid,
 							void *user_data)
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux