All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonah Petri <jonah@sense.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	"linux-bluetooth@vger.kernel.org"
	<linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH] gatt-server: Implement NegotiatedMTU property on Device1
Date: Mon, 17 Jul 2017 11:30:56 -0400	[thread overview]
Message-ID: <F04ADABE-DEA1-4003-9E95-E9FE8B8C94F4@sense.com> (raw)
In-Reply-To: <8E72D5C7-FA44-4B06-82D7-2FCB22E26778@holtmann.org>

Hello Marcel and Luiz,

Thanks for looking at the patch!

> On Jul 15, 2017, at 2:03 PM, Marcel Holtmann <marcel@holtmann.org> =
wrote:
>=20
>>> --- a/doc/device-api.txt
>>> +++ b/doc/device-api.txt
>>> @@ -234,3 +234,8 @@ Properties  string Address [readonly]
>>>               array{byte} AdvertisingFlags [readonly, experimental]
>>>=20
>>>                       The Advertising Data Flags of the remote =
device.
>>> +
>>> +               int16 NegotiatedMTU [readonly, optional, =
experimental]
>>> +
>>> +                       The ATT MTU negotiated with the connected =
host.
>>> +                       Available only once MTU negotiation is =
complete.
>>=20
>> Despite being odd that we start exposing transport specific details =
on
>> device interface, there maybe a chance this is useful if we can
>> properly detect BR/EDR MTU not only LE, though this means checking =
the
>> via bt_att API not bt_gatt_server. Obviously, this would have to be
>> exposed even before it is negotiated since LE start with 23 but on
>> BR/EDR this is negotiated via L2CAP signaling, and perhaps it should
>> not really be MTU that we expose but the actual payload without the
>> headers that bluetoothd takes care of adding.
>=20
> I think that exposing max payload is a better idea.

I am fine with the revised naming, and revising the exposed device =
attribute to represent the max ATT payload.  However, how can a dbus =
client know whether the MTU negotiation has occurred or not?  The point =
of the patch is to allow for clients to take advantage of a larger =
negotiated MTU.

The negotiation of the MTU can be a significant event to the client =
interacting via dbus, so how should the completion of that negotiation =
be exposed, if not via an attribute as I proposed above?  Some boolean =
"MaxPayloadNegotiationCompleted" method?

Jonah=

  parent reply	other threads:[~2017-07-17 15:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-14 15:56 [PATCH] gatt-server: Implement NegotiatedMTU property on Device1 Jonah Petri
2017-07-15 17:57 ` Luiz Augusto von Dentz
2017-07-15 18:03   ` Marcel Holtmann
2017-07-15 18:06     ` Luiz Augusto von Dentz
2017-07-17 15:30     ` Jonah Petri
2017-07-17 15:30     ` Jonah Petri [this message]
2017-07-17 18:08       ` Marcel Holtmann
2017-07-17 20:50         ` Jonah Petri
2017-07-18  6:42           ` Marcel Holtmann
2017-07-18 12:40             ` Jonah Petri
2017-07-18 12:41             ` Jonah Petri
2017-07-17 14:07 ` Olivier MARTIN
2017-07-17 14:59   ` Emil Lenngren
2017-07-17 15:29     ` Luiz Augusto von Dentz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F04ADABE-DEA1-4003-9E95-E9FE8B8C94F4@sense.com \
    --to=jonah@sense.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.