From: Johannes Berg <johannes@sipsolutions.net>
To: Arend van Spriel <arend@broadcom.com>
Cc: Jouni Malinen <j@w1.fi>,
"Undekari, Sunil Dutt" <usdutt@qti.qualcomm.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
Dan Williams <dcbw@redhat.com>
Subject: Re: [PATCH] cfg80211: Introduce critical protocol indication for p2p connection.
Date: Mon, 11 Nov 2013 17:26:26 +0100 [thread overview]
Message-ID: <1384187186.14334.39.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <5274D5DC.1090508@broadcom.com>
On Sat, 2013-11-02 at 11:37 +0100, Arend van Spriel wrote:
> > Currently, there is no way for wpa_supplicant to clearly indicate to the
> > driver that it is about to run through number of quick operations
> > (offchannel Action frame exchange for GO Negotiation, single channel
> > scan, WPS association + EAPOL exchange, data connection association +
> > 4-way handshake). The driver can guess that this is happening (or could
> > use really ugly hacks to see what Action frames are exchanged and
> > determine next likely operation based on that) and as such, would not
> > know how to configure the firmware to avoid background scans for the
> > station interface during this full sequence.
>
> I wanted this API primarily to avoid drivers doing that kind of hacks so
> I agree. It was intended to avoid extra latencies during IP connection
> setup, which is probably happening right after the group formation. So I
> recommend the connection managers to use this API. I think Dan Williams
> did some initial implementation testing in NetworkManager and had some
> concerns. I forgot about them completely so not sure how that ended.
>
> > While the background scan should in most cases not completely break the
> > process even with inconvenient timing (or well, hitting one in middle of
> > the three frame GO Negotiation would have potential to time out that
> > exchange), it would be nice if this common sequence could be optimized
> > to avoid extra latencies and to be more robust in general since there is
> > a 15 second timeout for group formation and quite a bit shorter timeouts
> > in practice for the individual operations within the sequence.
>
> I guess the decision is for Johannes to take, but I see your point.
I think after this long discussion we all finally understand the concern
and use case - that really could have been explained in the patch
message.
Anyhow, I think that the critical protocol API is still a bad fit
because it currently only allows
(1) a single user of the API at a time, so e.g. connman using it for
DHCP on a
P2P group interface while wpa_s is using it for GO negotation would
break
(2) changing that is probably not too difficult technically, but the
question is
how multiple concurrent protocols should behave and if anything
else has
really started using this yet
(3) the existing protocols here are *data/payload* protocols, the new
protocol
you're adding is more of a *management* protocol
johannes
next prev parent reply other threads:[~2013-11-11 16:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-31 14:40 [PATCH] cfg80211: Introduce critical protocol indication for p2p connection Sunil Dutt Undekari
2013-10-31 14:43 ` Johannes Berg
2013-10-31 15:22 ` Undekari, Sunil Dutt
2013-10-31 15:25 ` Johannes Berg
2013-10-31 15:54 ` Undekari, Sunil Dutt
2013-10-31 17:42 ` Arend van Spriel
2013-11-01 11:25 ` Undekari, Sunil Dutt
2013-11-01 13:07 ` Arend van Spriel
2013-11-02 7:33 ` Jouni Malinen
2013-11-02 10:37 ` Arend van Spriel
2013-11-08 15:06 ` Undekari, Sunil Dutt
2013-11-11 16:26 ` Johannes Berg [this message]
2013-11-11 17:20 ` Dan Williams
[not found] ` <52811F6E.3010100@broadcom.com>
2013-11-11 19:04 ` Dan Williams
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=1384187186.14334.39.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=arend@broadcom.com \
--cc=dcbw@redhat.com \
--cc=j@w1.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=usdutt@qti.qualcomm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).