From: Dan Williams <dcbw@redhat.com>
To: Felix Fietkau <nbd@openwrt.org>
Cc: Johannes Berg <johannes@sipsolutions.net>,
Adrian Chadd <adrian@freebsd.org>,
Arend Van Spriel <arend@broadcom.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
Piotr Haber <phaber@broadcom.com>
Subject: Re: [PATCH 1/2] [RFC] cfg80211: configuration of Bluetooth coexistence mode
Date: Wed, 27 Feb 2013 11:27:06 +0100 [thread overview]
Message-ID: <1361960826.15573.8.camel@dcbw.foobar.com> (raw)
In-Reply-To: <512B61F9.60802@openwrt.org>
On Mon, 2013-02-25 at 14:07 +0100, Felix Fietkau wrote:
> On 2013-02-25 11:25 AM, Johannes Berg wrote:
> > On Mon, 2013-02-25 at 06:54 +0100, Felix Fietkau wrote:
> >
> >> Most devices have some kind of connection manager that has a high-level
> >> perspective of when it's fully connected (which includes DHCP/bootp).
> >> Why not just let that connection manager set a sane maximum network
> >> latency value via pm_qos network_latency and derive btcoex weight
> >> changing and multi-channel settings from that?
> >
> > Frankly, I don't think that's going to work well. We tried using the
> > pm_qos framework once and nothing ever used it. Android isn't going to
> > change to it, so we'd be stuck with hacks like setting pm_qos in
> > wpa_supplicant which is just as awkward.
> If only the connection manager gets changed to use it, that would
> already be enough. It doesn't have to be pushed into dhcp clients and
> other applications.
>
> > Also, what you mostly want isn't really so much a weight but rather a
> > time-based approach to give it high priority until the connection
> > handshake completes (we already do for auth/assoc/... until authorized)
> > so I think using the pm_qos framework to give priority wouldn't work
> > very well since there'd also be no way to tell when it was "done"
> Just release the latency requirement in the connection manager once the
> handshake is done. It knows...
We also don't know what IP configuration method will get used; whether
it will be IPv6 RA, DHCPv4 or DHCPv6, IPv4 autoconf, or static. Only
the connection manager knows that. Only the connection manager/DHCP
client know when they expect a lease renew operation to start too.
wpa_supplicant doesn't know any of these things either since it doesn't
do anything IP related.
I think the best approach here is to allow the higher layers to hint to
the driver that some operations that are about to start must be "more
reliable". That includes EAPOL, DHCP, IP autoconfiguration, etc. Then
when the higher layers know the operation is finished, they can indicate
the operations are done and the driver can go do whatever it wants.
The driver/stack may wish to do any of [set 1Mb rate, block rate
control, change BT coex, turn on microwave protection, whatever] and
that's great, the upper layers don't care about what the driver does,
just that the reliability of the operation is preserved.
Dan
next prev parent reply other threads:[~2013-02-27 10:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-22 16:59 [PATCH 1/2] [RFC] cfg80211: configuration of Bluetooth coexistence mode Arend Van Spriel
2013-02-22 20:28 ` Johannes Berg
2013-02-23 0:30 ` Adrian Chadd
2013-02-23 17:47 ` Arend Van Spriel
2013-02-24 9:12 ` Emmanuel Grumbach
2013-02-24 17:28 ` Johannes Berg
2013-02-25 5:08 ` Adrian Chadd
2013-02-25 5:54 ` Felix Fietkau
2013-02-25 10:11 ` Arend van Spriel
2013-02-25 10:25 ` Johannes Berg
2013-02-25 13:07 ` Felix Fietkau
2013-02-27 10:27 ` Dan Williams [this message]
2013-02-27 17:44 ` Arend van Spriel
2013-02-28 11:53 ` Piotr Haber
2013-02-27 18:45 ` Johannes Berg
2013-02-27 17:21 ` Arend van Spriel
-- strict thread matches above, loose matches on Subject: below --
2013-02-22 9:08 [RFC 0/2] control Bluetooth coexistence Piotr Haber
2013-02-22 9:08 ` [PATCH 1/2] [RFC] cfg80211: configuration of Bluetooth coexistence mode Piotr Haber
2013-02-22 11:52 ` Johannes Berg
2013-02-22 13:32 ` Piotr Haber
2013-02-22 14:07 ` Johannes Berg
2013-02-22 14:59 ` Piotr Haber
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=1361960826.15573.8.camel@dcbw.foobar.com \
--to=dcbw@redhat.com \
--cc=adrian@freebsd.org \
--cc=arend@broadcom.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=nbd@openwrt.org \
--cc=phaber@broadcom.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).