All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Vitaly Wool <vitalywool@gmail.com>
Cc: Eliad Peller <eliad@wizery.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH/RFC] mac80211: wake queues if ieee80211_suspend failed
Date: Thu, 03 May 2012 21:34:35 +0200	[thread overview]
Message-ID: <1336073675.5167.14.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <CAMJBoFN7qhwwmYgmoaks2kue-ERVvRonKWGvyERtym==A6qDPA@mail.gmail.com> (sfid-20120502_213014_197928_DBA1B037)

On Wed, 2012-05-02 at 21:29 +0200, Vitaly Wool wrote:
> Hi Eliad,
> 
> On Mon, Apr 23, 2012 at 5:30 PM, Eliad Peller <eliad@wizery.com> wrote:
> > hi Vitaly,
> >
> > On Mon, Apr 23, 2012 at 5:57 PM, Vitaly Wool <vitalywool@gmail.com> wrote:
> >> Sometimes I'm seeing that after a rejected suspend which was
> >> rejected by the driver's suspend routine, the device can not
> >> associate to any AP any more. Investigation shows that it's
> >> due to the fact that the queues are left stopped with the
> >> reason IEEE80211_QUEUE_STOP_REASON_SUSPEND.
> >>
> >> With that known, it looks like we need to wake queues on an
> >> unsuccessful suspend attempt explicitly.
> >>
> >> ---
> >>  net/mac80211/pm.c           |    2 ++
> >>  1 file changed, 2 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
> >> index 844cefb..fd57913 100644
> >> --- a/net/mac80211/pm.c
> >> +++ b/net/mac80211/pm.c
> >> @@ -96,6 +96,8 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct
> >> cfg80211_wowlan *wowlan)
> >>                int err = drv_suspend(local, wowlan);
> >>                if (err) {
> >>                        local->quiescing = false;
> >> +                       ieee80211_wake_queues_by_reason(hw,
> >> +
> >> IEEE80211_QUEUE_STOP_REASON_SUSPEND);
> >>                        return err;
> >>                }
> >
> > it seems right.
> > looks like there's a similar issue with WLAN_STA_BLOCK_BA being set
> > for all the stations and not cleared on error..
> 
> thanks for the feedback. Johannes, any objections/additions? Should I
> resubmit the patch?

No, no objections -- as for resubmitting I don't know, I've been on
vacation (and really still am until Monday)

johannes


      reply	other threads:[~2012-05-03 19:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23 14:57 [PATCH/RFC] mac80211: wake queues if ieee80211_suspend failed Vitaly Wool
2012-04-23 15:30 ` Eliad Peller
2012-05-02 19:29   ` Vitaly Wool
2012-05-03 19:34     ` Johannes Berg [this message]

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=1336073675.5167.14.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=eliad@wizery.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=vitalywool@gmail.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 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.