All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Zaborowski <andrew.zaborowski@intel.com>
To: iwd@lists.01.org
Subject: Re: [RFCv3] Document P2P dbus interfaces
Date: Sat, 16 Nov 2019 04:02:53 +0100	[thread overview]
Message-ID: <CAOq732Jq2EyqvXxsHznHyhpgeOcefAH0gTwaFY2shoyp0ummbA@mail.gmail.com> (raw)
In-Reply-To: <c2a1d379-3c59-eb6b-2f8d-c4bb026f3f02@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3239 bytes --]

On Sat, 16 Nov 2019 at 03:28, Denis Kenzior <denkenz@gmail.com> wrote:
> >>   And if we become a GO, then things
> >> become even more funny since we can only send invites, not actually
> >> initiate a connection.
> >
> > Invitation is just a technical name for a frame sequence, group
> > formation is another, but it's just ways to connect to a device.  Note
> > how Android shows the same Accept/Decline dialog whether you're using
> > group formation or invitation. (same or similar... I thought the
> > wording was the same but don't have screenshots at hand)
>
> - How are you handling the case where the Peer wants us to display our
> PIN?  And provision discovery in general?

We can add a signal for this, but this is independent of the role and
not a high priority.

Do we have a use case for this?

> - Invitations?
> - invitation by a P2P Device (not group owner) of another P2P Device?

We don't need to unless we're also going to be running on peripheral
devices, but that's not our current use case.

> - The fact that GO has a bunch of stats about its clients and you
> probably want to expose that similarly to AP mode?

We don't expose anything in AP mode?

Our main use case is to provide bluetooth-like connections to devices.

> - The fact that GO has to handle connections from legacy clients and
> thus needs to provide legacy WPS methods?

Is there a use case for this?

> - persistent groups, with custom or saved credentials?

We will need to start saving credentials because that's something
that's actually in use, and we need to do this both on the GO and
client.

>
> To me it seems quite impractical to mix GO and client and to try and
> hide these details.  I have very strong doubts you will succeed here.
>
> And I also think you're not avoiding exposing topology details.  For
> example, is Peer.Disconnect resulting in a disconnection of a single
> peer or group tear down?

Assuming that is the last peer in that group then either will work, I
don't see the difference here.

If there are more peers then obviously you don't want to break things
by disconnecting them?

>
> I think you really need to send a v4.  I just don't see how you're

Yes, we agreed on that, although I'm still missing any reasoning for
the Cancel method for example.  If you have ideas on how to handle the
following I'd also welcome them:

 * how to best signal whether the device is available to start a new connection,
   assuming you didn't like the AvailableConnections (int) property.

 * how to trigger device discovery, optimally in a way that forces the
client to stop it after
   a while, basically to make sure it's not left running when the UI
isn't active.  For
   example for our "agents" we automatically detect if they're
disconnected, here we
   probably also want the client to "own" the scan in some way.

> handling many of the P2P concepts, much less P2P-GO specific ones in
> this one.

What are some P2P-GO specific concepts that would affect the DBus API?
 As long as we provide for having multiple active connections, and we
allow for new properties on the Peer interface in the future, we
should be fine.

Best regards

  reply	other threads:[~2019-11-16  3:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-10 20:51 [RFCv3] Document P2P dbus interfaces Andrew Zaborowski
2019-11-14  4:40 ` Denis Kenzior
2019-11-14 16:59   ` Andrew Zaborowski
2019-11-14 18:19     ` Denis Kenzior
2019-11-14 19:37       ` Andrew Zaborowski
2019-11-14 20:33         ` Denis Kenzior
2019-11-15  0:38           ` Andrew Zaborowski
2019-11-15  3:25             ` Denis Kenzior
2019-11-15  4:02               ` Andrew Zaborowski
2019-11-15  5:08                 ` Denis Kenzior
2019-11-15 12:33                   ` Andrew Zaborowski
2019-11-15 14:51                     ` Denis Kenzior
2019-11-15 15:10                       ` Andrew Zaborowski
2019-11-15 15:25                         ` Denis Kenzior
2019-11-15 22:35                           ` Andrew Zaborowski
2019-11-16  2:27                             ` Denis Kenzior
2019-11-16  3:02                               ` Andrew Zaborowski [this message]
2019-11-16  4:10                                 ` Denis Kenzior
2019-11-16 23:57                                   ` Andrew Zaborowski

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=CAOq732Jq2EyqvXxsHznHyhpgeOcefAH0gTwaFY2shoyp0ummbA@mail.gmail.com \
    --to=andrew.zaborowski@intel.com \
    --cc=iwd@lists.01.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.