From b2fd4c7e1ecf715a0f56e0a4534329db9b4e44b1 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. --- 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 0b4c80ea7..70a3e40b2 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -1367,7 +1367,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.47.3