From: Johannes Berg <johannes@sipsolutions.net>
To: Paul Stewart <pstew@google.com>
Cc: linux-wireless@vger.kernel.org, luis.rodriguez@atheros.com
Subject: Re: [PATCH] mac80211: Push idle state to driver before stop
Date: Thu, 16 Dec 2010 13:35:34 +0100 [thread overview]
Message-ID: <1292502934.3612.15.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <AANLkTiktMJvk55fz-Ww_nUtHcTS1mNVSR-hhkfbux+j_@mail.gmail.com>
On Thu, 2010-12-16 at 04:27 -0800, Paul Stewart wrote:
> > How so? After resume, mac80211 will invoke start(), add interfaces and
> > stations back, and then invoke drv_config with all flags in "changed"
> > set. Therefore, at this point, the device should be reset. Where's this
> > not working?
>
> I haven't dug deep into it, but I can guess at a reason -- ath9k stores idle
> state in two different places -- one is meant to mirror mac80211's state,
> and the other one is internal, periodically computed from the state of all
> wiphys. The ath9k version of the fix modified the
> internal state without the mac80211 mirror.
But at this point mac80211 doesn't care what the state is any more.
> The ath9k config() routine
> probably does nothing when called with "all changed" on resume because
> in fact, if we suspend and resume when non-idle, nothing _has_ changed
> from that perspective.
Hmm, I still don't get it. The "idle just changed" flag is set -- and
idle will actually be what it was at suspend time. If ath9k was simply
setting its own idle state on stop(), and returning to what mac80211
says when it first configures the device after start(), what would the
problem be?
> I fear that unless ath9k gets changed more
> substantially, it really does need to be informed of IDLE changes.
I'd rather have ath9k change more than try to enforce this perfectly in
mac80211. I still think that's brittle, and every little bug in a corner
case will cause severe problems since it causes suspend/resume to fail.
johannes
next prev parent reply other threads:[~2010-12-16 12:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-15 18:54 [PATCH] mac80211: Push idle state to driver before stop Paul Stewart
2010-12-16 6:59 ` Johannes Berg
2010-12-16 11:17 ` Paul Stewart
2010-12-16 11:30 ` Johannes Berg
2010-12-16 11:51 ` Paul Stewart
2010-12-16 12:04 ` Johannes Berg
2010-12-16 12:27 ` Paul Stewart
2010-12-16 12:35 ` Johannes Berg [this message]
2010-12-16 12:46 ` Paul Stewart
2010-12-16 12:53 ` Johannes Berg
2010-12-16 16:02 ` Paul Stewart
2010-12-16 17:44 ` Luis R. Rodriguez
2010-12-16 17:49 ` Luis R. Rodriguez
2010-12-16 19:08 ` Paul Stewart
2010-12-16 19:12 ` Luis R. Rodriguez
2011-01-04 18:19 ` Paul Stewart
2011-01-04 22:29 ` Paul Stewart
2011-01-05 18:26 ` Luis R. Rodriguez
2011-01-05 22:57 ` Luis R. Rodriguez
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=1292502934.3612.15.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=luis.rodriguez@atheros.com \
--cc=pstew@google.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).