Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4644858ybf; Wed, 4 Mar 2020 07:57:13 -0800 (PST) X-Google-Smtp-Source: ADFU+vtLAf0VUZ/vB6EHb6BEAzQSvGwpIdDqGRhWHA6yQeLaD8NaNry6LN0LjKqyFNSj9q43Id0u X-Received: by 2002:aca:ed58:: with SMTP id l85mr590608oih.70.1583337433856; Wed, 04 Mar 2020 07:57:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583337433; cv=none; d=google.com; s=arc-20160816; b=bv+ioN+EkN0ryePk8IsVmd8xWaE4croiKK7x63dv/FUrTBB/M4U/baftoNVWxfDzTQ JNbteRu08nRDyCSRLMiQDNe2YMOSf/PtGepwU0WrBIpzQ/xZIjkNsvbtL43sdT5HHojM Hgm0STDq77ZGm3EqPFNUdLhoLLQI7Y0SxKgFpPqn9u4ARmILaGJpTGKi3PtcBhMLbLPW 2NYQTEOaR+2szuhe1Q/hQKgncmaZFscjAt0h6kVFsUhZxekcvrLFtCU6K+Vq/7T0jU/u xhRc2eOwX7UAPRy8O2+C1VaCLYL7HpRiDRAXQitftrbrwva2MDzk6bXH4ILwjKOruGs2 D3Rw== 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=VV/LwjGAuFG122pw9deWkt8oTfImhEcvzc9d+ks21nk=; b=AeNUV9JrOw+b+lVAhJkW2LubVj7bJv8+FukxDcFzlyYtV4+yi8MGEDay2ZTiZGu2b3 9P9/tuycuE54gr7iViBPwe3XuyrM8dKYjy+1/i5jce8ng2ny2d69LaTyMqAx/8MaS969 B5UGRb3FIEf1CjqRmCznwuBNDCru5Ip87m5Gzocq2zzcwYKOfUNbEXAvn2IKiR1EqYIn Ry84iRIAuJju4U5XZmO7rTq+Z5Gm+t0g4xgGkHxjE9s/xiqPRnIA0rcgrOmJZNPLXdoy 2rxZs9OVRexF3Xw4qIxlg5jPux/GDg3ySvDQhs/oczrwGZpck+yLv8OSKDunHeXCdQ/B T1og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Swh77TG3; 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 t1si1352717oic.140.2020.03.04.07.56.53; Wed, 04 Mar 2020 07:57:13 -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=Swh77TG3; 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 S1728022AbgCDP4W (ORCPT + 99 others); Wed, 4 Mar 2020 10:56:22 -0500 Received: from mail-oi1-f180.google.com ([209.85.167.180]:43009 "EHLO mail-oi1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729588AbgCDP4W (ORCPT ); Wed, 4 Mar 2020 10:56:22 -0500 Received: by mail-oi1-f180.google.com with SMTP id p125so2534457oif.10 for ; Wed, 04 Mar 2020 07:56:21 -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=VV/LwjGAuFG122pw9deWkt8oTfImhEcvzc9d+ks21nk=; b=Swh77TG3TlFSsrqm0ARSwq5RLztRO7+6IOts4yprOGxrkV1pwRmOP7gUq4KdIabRaP xkmRvZfmM0y8UdI62FYGj11QryfTc50dCZp+PuXYQ+TisjMUzqaHFInf+PpxKmag1nIc ppUUoEXO+42jl3SUAlfYov1fv8zZFHOhAxyJzMKtubhYN+3W91QIYgxOACF6IIgyem7O xjOhSgj1dukuljrhJlt+AflTcQICMJqHCMI4GPOe1KiO3ak6D7sqjDJqWU9VZTTwCCQN rEfladMFtklRVqhPKuBwRJD/x553mdNj+Rtw+KZUsrpA5iXy3xGHTUU2EbygcTRt7zkU N2aw== 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=VV/LwjGAuFG122pw9deWkt8oTfImhEcvzc9d+ks21nk=; b=tp0QDEwimuDrqZVpSrH6VrBg/JO0wPRZVzBv6ubQs5qJf/m0cJKVePdolZDfggGbIS Jh13YA0T9czBmqrr8chkfwIo5UsMYSZfb+jCdnqMNVi5SGv1ck76MMlyWfkFKZXRFu+U YqDsJUGbS4OkYoucWeInkevTXl3ZsiDsvM61H+ZOb0vvbfczhos2HHurPev854CgujS8 vB97WznbwF775ptrhfwQeoPaMmYaSBslXVYXoWBCT0uoC1CwwgNiRDNf8WO8cyRNN8Pp sg+BGbU44lT/dcX2c0fhsWlSo2gwgh3m6j5AG89xckWuGCGQkEA3+43kkfCmFabrnGcD /nLw== X-Gm-Message-State: ANhLgQ0NfaYZp7agJb07Z3yrwot4kuaEaayFRDj8GhrNOCCc/bMYqirU xn3XiTl+bffakZoOScKRdxb5lYq5EjtzWszzhfE= X-Received: by 2002:aca:56ca:: with SMTP id k193mr2255868oib.133.1583337381513; Wed, 04 Mar 2020 07:56:21 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Emil Lenngren Date: Wed, 4 Mar 2020 16:56:10 +0100 Message-ID: Subject: Re: Get negotiated ATT MTU? To: Jamie Mccrae Cc: Luiz Augusto von Dentz , 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, 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 request > > 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, L2CAP_= CREDIT_BASED_RECONFIGURE_REQ, which allows for the MTU to be changed after = it has been established. This requires an enhanced ATT service however, but= 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. /Emil