Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: linux-wireless@vger.kernel.org
Cc: Kalle Valo <kalle.valo@iki.fi>
Subject: Re: rewriting powersave
Date: Thu, 10 Nov 2011 14:37:41 +0100	[thread overview]
Message-ID: <1320932261.3967.53.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1320929045.3967.52.camel@jlt3.sipsolutions.net> (sfid-20111110_134417_015524_7F885E2A)

On Thu, 2011-11-10 at 13:44 +0100, Johannes Berg wrote:

> Since clearly it is possible to implement this in the lower layers, I'm
> thinking we should provide an implementation that the drivers can use to
> implement powersave and be in category 4 from mac80211's POV.
> 
> I think the API for case 3 could look something like this:
> 
> struct powersave {
> 	...
> };
> 
> struct powersave_ops {
> 	void (*tx_nulldata)(void *ctx, ...);
> 	void (*set_radio)(void *ctx, bool on);
> 	void (*timeout_radio_off)(void *ctx);
> };

[...]

Also, the stick will be I'm going to remove the existing implementation
eventually, and the carrot will be that you'll get PS for multiple
virtual interfaces with this and I'm not going to take it directly into
mac80211 :-)

johannes


  reply	other threads:[~2011-11-10 13:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-10 12:44 rewriting powersave Johannes Berg
2011-11-10 13:37 ` Johannes Berg [this message]
2011-11-14  5:43 ` Kalle Valo

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=1320932261.3967.53.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=kalle.valo@iki.fi \
    --cc=linux-wireless@vger.kernel.org \
    /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