linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Werner Almesberger <werner@openmoko.org>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: linux-wireless@vger.kernel.org
Subject: Re: AR6k: to rfkill or not to rfkill ?
Date: Mon, 22 Dec 2008 17:50:47 -0200	[thread overview]
Message-ID: <20081222195047.GA5020@almesberger.net> (raw)
In-Reply-To: <20081220201541.GD25001@khazad-dum.debian.net>

Henrique de Moraes Holschuh wrote:
> There is one screening rule that does help:
> 
> Is that a way you can program the device that *ENSURES* without any doubt,
> that it will never emit energy off the transmitter?

Heh, I knew there would be a catch :-) All the magic happens in the
firmware black box on the module. I'll ask Atheros if it's really safe
or if there's perhaps a better way to do this.

> If your rfkill controller has been set to "block the radio", you must NOT
> allow any energy to be emmited by the transmitter.  This is all that
> matters.

Hmm, so are you saying that the behaviour of the device is unspecified
while rfkill is blocking ? That's not the impression I got from reading
Documentation/rfkill.txt

E.g., if I rfkill the transmitter and then user space issues an ioctl,
say, to set the ESSID, is it okay if the ioctl fails because rfkill
is in force ?

Continuing the above example, once rfkill unblocks the transmitter,
should the device's state reflect any configuration changes made
while the transmitter was shut down ? I.e., in the example, the MAC
would use the new ESSID (as opposed to the previous one or perhaps
even having been reset completely).

What I'm currently doing is to add yet another layer of blocking
(on top of SIWTXPOW and the Atheros-specific
AR6000_XIOCTRL_WMI_SET_WLAN_STATE), transparent to the others, and
then decide on the combined state what needs to be done when
unblocking, plus plug the holes created by a few other ioctls that
could also cause the MAC to unblock behind our back.

Thanks,
- Werner

  reply	other threads:[~2008-12-22 19:51 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
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 [this message]
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=20081222195047.GA5020@almesberger.net \
    --to=werner@openmoko.org \
    --cc=hmh@hmh.eng.br \
    --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;
as well as URLs for NNTP newsgroup(s).