From 8727b65ec80e4e098faa65b2a60ecb99a21c74f0 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 3 Jul 2019 15:25:00 +0300 Subject: [PATCH] avctp: Fix not accounting output MTU properly The code shall use BT_IO_OPT_OMTU to read the output MTU. Change-Id: Ie97e172469b26177a612c8f2d3231c196e877a83 Signed-off-by: himanshu --- profiles/audio/avctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index 0c4bb82..44eb19c 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1428,7 +1428,7 @@ static void avctp_connect_cb(GIOChannel *chan, GError *err, gpointer data) bt_io_get(chan, &gerr, BT_IO_OPT_DEST, &address, BT_IO_OPT_IMTU, &imtu, - BT_IO_OPT_IMTU, &omtu, + BT_IO_OPT_OMTU, &omtu, BT_IO_OPT_INVALID); if (gerr) { avctp_set_state(session, AVCTP_STATE_DISCONNECTED, -EIO); -- 2.7.4