From: Michael Buesch <mb@bu3sch.de>
To: Werner Almesberger <werner@openmoko.org>
Cc: Dan Williams <dcbw@redhat.com>, linux-wireless@vger.kernel.org
Subject: Re: rfkill: how murderous can it be ?
Date: Tue, 13 Jan 2009 16:17:31 +0100 [thread overview]
Message-ID: <200901131617.31618.mb@bu3sch.de> (raw)
In-Reply-To: <20090112211313.GK13290@almesberger.net>
On Monday 12 January 2009 22:13:13 Werner Almesberger wrote:
> Dan Williams wrote:
> > Instead of putting a bunch of
> > complexity in the kernel and drivers that *already* has to be in
> > userspace, just punt it out to userspace where it's already done and
> > works well.
>
> That's the way I like things :-) Can the information user space may
> have to recover include DHCP leases and routes ? I.e., can an rfkill
> implementation choose to just restart the network interface ?
>
> Next: what happens while the device is rfkill'ed ? E.g., is it okay to
> just remove the interface, so any attempt to configure the interface
> while it's rfkill'ed would yield an ENODEV ?
>
> Basically, could rfkill block/unblock semantics just be equivalent to
> removal and reloading of the module containing the respective WLAN
> device driver ? (Ignoring any response time issues for now.)
No. If you are in an rfkill situation, you're not required to kill the receiver.
(However, currently most (all?) devices kill both TX and RX).
So I think completely killing the interface is the wrong way to go.
And I don't think we should care about stuff above the MAC layer, too.
If the user hits rfkill, he should _expect_ all upper layer connections
to break (DHCP, TCP or whatever). That's a basic assumption about rfkill.
The default timeouts will handle that just fine.
In any way, this is nothing the kernel has to care about. It's userspace business, if any.
--
Greetings, Michael.
next prev parent reply other threads:[~2009-01-13 15:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-12 19:15 rfkill: how murderous can it be ? Werner Almesberger
2009-01-12 19:31 ` Hans Henry von Tresckow
2009-01-13 13:14 ` Henrique de Moraes Holschuh
2009-01-13 16:11 ` Werner Almesberger
2009-01-13 20:56 ` Henrique de Moraes Holschuh
2009-01-12 19:34 ` Dan Williams
2009-01-12 19:49 ` Michael Buesch
2009-01-12 21:13 ` Werner Almesberger
2009-01-13 15:17 ` Michael Buesch [this message]
2009-01-13 0:54 ` Matthew Garrett
2009-01-13 13:21 ` Henrique de Moraes Holschuh
2009-01-13 13:40 ` Johannes Berg
2009-01-15 2:16 ` 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=200901131617.31618.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=dcbw@redhat.com \
--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).