We should update the GAttrib buffer length after exchanging ATT_MTU. --- src/attrib-server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/attrib-server.c b/src/attrib-server.c index 3954f99..5adbf92 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -886,6 +886,7 @@ static uint16_t mtu_exchange(struct gatt_channel *channel, uint16_t mtu, ATT_ECODE_UNLIKELY, pdu, len); channel->mtu = MIN(mtu, imtu); + g_attrib_set_mtu(channel->attrib, channel->mtu); return enc_mtu_resp(imtu, pdu, len); } -- 1.7.10.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