linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: Werner Almesberger <werner@openmoko.org>
Cc: linux-wireless@vger.kernel.org
Subject: Re: AR6k: to rfkill or not to rfkill ?
Date: Thu, 18 Dec 2008 23:20:17 +0100	[thread overview]
Message-ID: <200812182320.17457.mb@bu3sch.de> (raw)
In-Reply-To: <20081218212234.GI5019@almesberger.net>

On Thursday 18 December 2008 22:22:34 Werner Almesberger wrote:
> So, first of all, given that TX power is controlled only indirectly
> anyway, should we implement rfkill control or not ? There is no kill
> switch, so there would be no rfkill input.
> 
> If the answer is "yes", would the following semantics be right for
> the disabled state ?

I think you should probably implement it.
Rfkill is supposed to be a central place for userspace to turn the radios
off. So if your radio doesn't register an rfkill device, it will result in
inconsistent userspace state. Userspace (network manager, or whatever app)
thinks that it disabled all radios, but it didn't, in fact.

So yes, I think you should implement rfkill by stopping any TX actions
immediately if it hits. The state callback would simply be emulated in software.

> - we de-associate

Rfkill is supposed to stop TX _immediately_.
So no MAC cleanup, etc...

> - we stop scanning
> - all ioctls still work as usual, but they have no effect on
>   association and scanning until rfkill re-enables the device

basically, yes.


Note that current rfkill subsystem implementation is not that nice and you
might get some headache from it. ;)

-- 
Greetings, Michael.

  reply	other threads:[~2008-12-18 22:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-18 21:22 AR6k: to rfkill or not to rfkill ? Werner Almesberger
2008-12-18 22:20 ` Michael Buesch [this message]
2008-12-18 23:59   ` Werner Almesberger
2008-12-19  9:54     ` Michael Buesch
2008-12-18 22:28 ` AR6k: to rfkill Andy Green
2008-12-18 22:37   ` Michael Buesch
2008-12-18 22:44     ` Andy Green
2008-12-18 22:43       ` Michael Buesch
2008-12-18 22:49         ` Andy Green
2008-12-20 20:15 ` AR6k: to rfkill or not to rfkill ? Henrique de Moraes Holschuh
2008-12-22 19:50   ` Werner Almesberger
2008-12-22 23:59     ` Henrique de Moraes Holschuh

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=200812182320.17457.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=werner@openmoko.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;
as well as URLs for NNTP newsgroup(s).