All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Lamparter <chunkeey@web.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org,
	John W Linville <linville@tuxdriver.com>,
	Stefan Steuerwald <salsasepp@googlemail.com>
Subject: Re: [PATCH 1/3] mac80211: add power state transition callbacks
Date: Sat, 29 Nov 2008 13:15:01 +0100	[thread overview]
Message-ID: <200811291315.01685.chunkeey@web.de> (raw)
In-Reply-To: <1227951709.3542.1.camel@johannes.berg>

On Saturday 29 November 2008 10:41:49 Johannes Berg wrote:
> On Fri, 2008-11-28 at 23:45 +0100, Christian Lamparter wrote:
> 
> >  /**
> >   * enum sta_notify_cmd - sta notify command
> >   *
> > - * Used with the sta_notify() callback in &struct ieee80211_ops, this
> > - * indicates addition and removal of a station to station table.
> > + * Used with the sta_notify() callback in &struct ieee80211_ops.
> > + * this command indicates addition and removal of a station to
> > + * station table, or if a station made a power state transition.
> >   *
> >   * @STA_NOTIFY_ADD: a station was added to the station table
> >   * @STA_NOTIFY_REMOVE: a station being removed from the station table
> > + * @STA_NOTIFY_SLEEP: a station is now sleeping
> > + * @STA_NOTIFY_AWAKE: a sleeping station woke up
> >   */
> >  enum sta_notify_cmd {
> > -	STA_NOTIFY_ADD, STA_NOTIFY_REMOVE
> > +	STA_NOTIFY_ADD, STA_NOTIFY_REMOVE,
> > +	STA_NOTIFY_SLEEP, STA_NOTIFY_AWAKE,
> >  };
> 
> You know, I'm sorry, but I've come to realise that adding it to
> sta_notify isn't a good idea after all. The one thing I forgot is that
> this new callback has to be atomic because it's called from the rx path,
> and sta_notify doesn't have to be.
> 
> Unless we want to defer RX packet processing to a workqueue rather than
> a tasklet?
> 
Hmm, but if we put the RX packet processing into a workqueue, we have to
put the tx status report processing in one too (see comment about rx/tx race
in main.c line 400)?

Or do you mean I should only put ap_sta_ps_end  (& ap_sta_ps_start) 
resending stuff into a workqueue? (Yeah, this makes a lot more sense,
and might actually work!, well let's prepare another patch)

Regards,
	Chr

  reply	other threads:[~2008-11-29 12:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-28 22:45 [PATCH 1/3] mac80211: add power state transition callbacks Christian Lamparter
2008-11-29  9:41 ` Johannes Berg
2008-11-29 12:15   ` Christian Lamparter [this message]
2008-11-29 12:21     ` Johannes Berg
2008-11-29 17:06       ` Christian Lamparter
2008-11-29 21:33         ` Johannes Berg

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=200811291315.01685.chunkeey@web.de \
    --to=chunkeey@web.de \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=salsasepp@googlemail.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.