Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4786037ybf; Wed, 4 Mar 2020 10:37:07 -0800 (PST) X-Google-Smtp-Source: ADFU+vuIVV1WfYI97SUBzoqmsQmuWH40Syn0ikVgr126mOl8+RmW2PoZAqMhQdergSPnr7fx+HoZ X-Received: by 2002:a05:6830:16c8:: with SMTP id l8mr3408443otr.2.1583347027724; Wed, 04 Mar 2020 10:37:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583347027; cv=none; d=google.com; s=arc-20160816; b=b/jt8HUhCQCUoUecaYtRIA9ucp5xD5FKxBIjvCOfI8fxUNnTfsULVYG3R+NDeACZmI arrFoykE40Mjm44gdzvOC3PP3eBAUaWTMd21LFg9GSyWZc1EaJTn3UnSZvurU/t0olu7 zVIg+nBF2/PrYxiutOE1zC02jRqabmZPeTqcJlyuFFXfDobaanGh4gFg3VreJtdht/hA Rfp+piZD5njvAawAoURUizENJocVk/MLMV3iZ84Bg3XcgL522ZNDlwp32h5caBFWEEVW P51Dc95w6bToKLYFW5ENB6QgiLxehNeN4H69vQrLImDIiXOb0VW1fRkkbGtWCACpQ3Ok tPIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6zjVCgIDBiUnV97pPvDbMIe94i/6uVThNGHFUuea4lY=; b=uYU6WdoIRxpmFoLhK12zDGdVpvYb8/0Iq0SyJl3/pIsdx0OuVYcNaG65s+yLCQ864t lQ8PauYW72BXch3qmZjK5/zUPi87d1yExkGSctzTJb0/ZUpIMSr5V3olaC0km0qFXc/6 kWrZF1OF7slO7VBfvHbGP84JGa2deqKxS7QjVDPhK9fLDAHjHNxYGKsuwOp46+Q3+5U0 DQpwRfjTQ0Qz4CXRnfTr0MUhBcXNuwxeO1wG/8WNwobwWxVEKVwJ5vaymNbZ5dYk0Qr9 wWowjtwfHE85LS4eTzxU0kFHWCK9mvIC7T+vIWP9MG2VaThkPu5DCD3Y1LK1xbvYSHVq 9egg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RBBYGOIm; 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 t10si1866470otd.219.2020.03.04.10.36.40; Wed, 04 Mar 2020 10:37:07 -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=RBBYGOIm; 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 S1729965AbgCDSge (ORCPT + 99 others); Wed, 4 Mar 2020 13:36:34 -0500 Received: from mail-oi1-f176.google.com ([209.85.167.176]:37507 "EHLO mail-oi1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725795AbgCDSge (ORCPT ); Wed, 4 Mar 2020 13:36:34 -0500 Received: by mail-oi1-f176.google.com with SMTP id q65so3139051oif.4 for ; Wed, 04 Mar 2020 10:36:34 -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:content-transfer-encoding; bh=6zjVCgIDBiUnV97pPvDbMIe94i/6uVThNGHFUuea4lY=; b=RBBYGOImBEVDGwfcGzOtEb6yDd7TpWWftBlDU2yhVt6Ybbb/tfwWUM54IhBNQF56QI PljIlst2+c/FS1f9wRt66FDVGUmNYc8pYHzPlvn9xGNsoaSMX7PxOcOOWuR44LaqvZdp XBA96kn/pQeNRglfsEwDusGTn13bc8ab/IImfJEDvlFAMAn44EpsJXvsLOHAqhb3jH3V +Bhe5C+R28IQRyjb40VbPy5iAZCibmPVkhhSNtc3BNTWE29RAQME4UIJKf2FI8qzLtxp FjTNjpGjgBafqAqFSRzWlr3f7D8fs/avN3upvnAYbV3Snm3Jd9sYKPi9vH/1TaSGZbA5 VLVw== 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:content-transfer-encoding; bh=6zjVCgIDBiUnV97pPvDbMIe94i/6uVThNGHFUuea4lY=; b=r+t7XWP0YreakDlTDhGeQ80BFe7rafvFX8mQE79mJYpHMMGnvAmz5CkkNjQtG7QUvE XOEvhJSR2YbXa7zEdzuSBnZyCFNJG9CdxpIS1/O5OL232DtdmWRnJtspGkoMCIaITYIM OcmUEpe4y2Fr+++tczRzmd3878hLPda1kqw2uoxV+MR9Gw5uYAjvMMWIgPaMXpeA1YwU 7G7tJpHiuMb8DjwwO0if6B9ttSI/yyJpxMH0vqeKbqJU2IrjN6S3ma2iJnA7vd+qy1DR IwofH3B9iCvEVCVv2jYflKmg4uuWjRJ0RMoFqmR8pEpz4hh3tsQdV7pX0gwwXvh3IMtO mfnQ== X-Gm-Message-State: ANhLgQ2iG0286eF9sb2SQOVzGtGJ5Wrb8/9rVDKEiw5MexIseST37eCi ASgAOJj9CqUsEXzw5vMhUlWD3PGso259r/KaNVV40+LZyXw= X-Received: by 2002:aca:b1d5:: with SMTP id a204mr2710446oif.82.1583346993651; Wed, 04 Mar 2020 10:36:33 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Wed, 4 Mar 2020 10:36:22 -0800 Message-ID: Subject: Re: Get negotiated ATT MTU? To: Emil Lenngren Cc: Jamie Mccrae , Bluez mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Emil, On Wed, Mar 4, 2020 at 7:56 AM Emil Lenngren wrot= e: > > Hi, > > Den ons 4 mars 2020 kl 11:55 skrev Jamie Mccrae : > > > > Hi, > > > It should be fine also if the remote end sends an Exchange MTU reques= t > > > at the beginning of the connection since we can then immediately send > > > a response and assign the MTU property without waiting for the > > > Exchange MTU response (that corresponds to our request). > > > > > > Let me know if you think I've missed some edge case... > > > > In the core specification 5.2 volume 3 part A, there is a command, L2CA= P_CREDIT_BASED_RECONFIGURE_REQ, which allows for the MTU to be changed afte= r it has been established. This requires an enhanced ATT service however, b= ut it means that the initial MTU is subject to change. > > I just read the L2CAP/ATT/GATT parts in the new spec. Is EATT > implemented yet for the dbus-api, and will it affect the API? Anyway, > for EATT it's a requirement that the MTU can only increase, never > decrease, which shouldn't cause issues for apps. But change my "ATT > MTU exchanged" property name proposal to "Initial ATT MTU exchanged" > then, if waiting for the ServicesResolved wouldn't be enough, and set > it true immediately if EATT is used and after an Exchange MTU > procedure for unenhanced ATT. Then update the ATT MTU property when > the MTU is increased. It completely transparent to D-Bus, so if we do expose the MTU it should probably be reporting the biggest MTU of all connected channel, while it is possible to reconfigre the MTU with L2CAP_CREDIT_BASED_RECONFIGURE_REQ I doubt we would be exposing this sort of operation to applications, we have to keep in mind multiple application can request a change for their own needs so like Exchange MTU bluetoothd will be taking care of setting the MTU, that said with EATT incoming and outgoing MTUs don't need to be symmetric like the unenhanced bearer. --=20 Luiz Augusto von Dentz