Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1024543ybf; Sat, 29 Feb 2020 22:48:40 -0800 (PST) X-Google-Smtp-Source: APXvYqywlUPUXCXEmguPJBiJYwTsPaa/0V3sXFsHqeIhtRESSi82BoHMPUKLkGlinJGw0VjsI80W X-Received: by 2002:aca:c3d1:: with SMTP id t200mr5711649oif.41.1583045320716; Sat, 29 Feb 2020 22:48:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583045320; cv=none; d=google.com; s=arc-20160816; b=ef9+cekxYpex3AkT+eGuWLlH05L94XCNYd9lEPu4+56UM3WkAdc22lSv1QclOhbx3B KQrLfk52FhtTKxvrdAoskvTg3psZ+aHgeu4LfUgyty9hFIzOXcQx6gEcmMGPu1bTpXtx EtlbPYPZHk+TJOVlhoSyp4tNk+MlyIPGq7EEA/YZK5LTVtGvDYDRTjz7NUDZSzfR1rFk LmUC/8L58e626oKWr7hG5cxtrjKktaY+qs93HP6JOOiKG4l+0VeNLCWSExJSaTg1rKAI lKYWOJDC5Ig99JNIe/jCSZvhRsxIMwt8r7WOop8O20GMgABXi1MPms6w8GbHmkoDMTG5 CxPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4Hm9tjczIkXblNXcfENkvYBm7CmOG6HZ6SgO4DUwYWk=; b=bkNPcMmp48cfUZp7ZI14RRGzuzUepJgR686sKQq1Qtubq+XiTAQZi3tQioeHNHecWF 6U71QFSeqxt1pzGwAXmKy+IZUqlkjV+2IiuhRLAAkLp3XagzClXDkXGP4ohl0HaAKneQ sdFCF7POYbVQx9qdc4xWz3O85R3KiJ7UgQO0Xz2fsz5l43IetrELpxgKTabfnwGdyy8I ifIuEvZuqBksvAhPe+0AmJNLl04klm/P0SZWHJO7pH5rZj6CcMylwvPznjOd/2jKGhP9 me/ho7pkI0VgYnE7Cwp0NT5G49sM5cVlbWQFYEzBMF/OFMGJwvWnaWiMb3qb/3tKkdP2 vi5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="O5Y/JdSk"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si4615981otk.164.2020.02.29.22.48.12; Sat, 29 Feb 2020 22:48:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="O5Y/JdSk"; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725787AbgCAGq7 (ORCPT + 99 others); Sun, 1 Mar 2020 01:46:59 -0500 Received: from mail-ot1-f43.google.com ([209.85.210.43]:40377 "EHLO mail-ot1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgCAGq6 (ORCPT ); Sun, 1 Mar 2020 01:46:58 -0500 Received: by mail-ot1-f43.google.com with SMTP id x19so1826280otp.7 for ; Sat, 29 Feb 2020 22:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4Hm9tjczIkXblNXcfENkvYBm7CmOG6HZ6SgO4DUwYWk=; b=O5Y/JdSkiUVQUHrI0vYClmp+i2ge0PrfHtXW4ESWqXcO/PfvOJvrXBnZ2z4Rcj9B90 4cfi9swG1+ga7vf3sLVa877FxZwW3ZRR5oGKAOLe+Io7Uk4gi4wLC5U6n+5y6uABtP6k EE676rluZw4oNzIpOKInAoJ9c21Wht/BYOZULzZf8KAn3mbVnFiw1OgVXzPj8x/mgwFf zESAB1CG5B/rkzNV5o6L4Ky5D07MoGtdoWM7Gp+FzHvL9YN89mJhGPLH4BOcOjRQ2d5n OnD/wjjJWEB93Hhog659l8dLYTDOOuKLARQhj5k+06oeOGatJP2XiJLbJJPQh2ErwES/ IejQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4Hm9tjczIkXblNXcfENkvYBm7CmOG6HZ6SgO4DUwYWk=; b=olqQXwEQo9DwPsyaQVvGnP2MgyE8sINVIi0PoBvX0m3lGc6OPmwdBXPnt2TckbuQJe nFugsjiI6s+0AhAomz65dXaOUrrJeTvCMKVEYTAEoDowTq+5C5KXs9mJWRoq/IRAtg/X hpVIYxmmp6noodI0QxZLO9WmhdYFuwzv2+/mzegCKMQLnKCzzae/vSybxdZbs9DUkeym xnmt5O8Bx7IlktO9lup7yNDMz3kn1X6gRvg6qqZE2VvyXaA4wwLyWgeIUVQaVjl3J6ta NnGwR2yV/0k20sWTFFKjVP1+6mQ4wZSfMkcvl4YpNYgtIN1LcUZpaBbQMEMTLY9XOe9D gkfg== X-Gm-Message-State: APjAAAWDvrv0Amo7BvpxpCKzj6MRDFi4jPRjNF82ybN383ivQXCaKBFD xGYctcTy3QHVeNzvC1NJvOZn6P3Hmd9WUTp2pFs= X-Received: by 2002:a05:6830:1690:: with SMTP id k16mr9610608otr.79.1583045218091; Sat, 29 Feb 2020 22:46:58 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Sat, 29 Feb 2020 22:46:46 -0800 Message-ID: Subject: Re: Get negotiated ATT MTU? To: Emil Lenngren Cc: Bluez mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Emil, On Sat, Feb 29, 2020 at 2:13 AM Emil Lenngren wrote: > > Hi. I have a feature request that the negotiated ATT MTU should be > exposed as a property in the org.bluez.Device1 interface. > > For some applications it's good to know or required how much data that > can be written / read / notified in each packet, and it's not always > desired or possible to use AcquireNotify / AcquireWrite. We already negotiate a fairly big MTU maximum by default, and you can just use AcquireWrite/AcquireNotify just to discover it and the close the fd immediately, so I suppose we cover much of what the feature is, except perhaps if the application requires something bellow the default MTU bluetoothd but that can be a problem if other application would start requiring their own MTU as well, so even if we introduce a Property that would have to be read-only but there may be races if the application start writing/reading too fast or the remote end do trigger its own exchange for some reason. -- Luiz Augusto von Dentz