From: Larry Finger <Larry.Finger@lwfinger.net>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: John Linville <linville@tuxdriver.com>,
linux-wireless <linux-wireless@vger.kernel.org>,
Michael Buesch <mb@bu3sch.de>
Subject: Re: [PATCH] rfkill: always init poll delayed work
Date: Fri, 05 Jun 2009 08:03:41 -0500 [thread overview]
Message-ID: <4A2917AD.2090008@lwfinger.net> (raw)
In-Reply-To: <1244138572.22576.90.camel@johannes.local>
Johannes Berg wrote:
>
> I do mean that, but I don't think you can access the 802.11 core's MMIO
> while it's down. I'm out of ideas expect taking the core up, checking,
> and down again periodically.
You were right. What I missed was that the stop callback was taking
the interface down to the uninitialized state, which caused the rfkill
poll routine to bail out without testing the switch state in the
hardware. A quick fix is for the poll routine to call
b43_wireless_core_init() whenever it detects the uninitialized state.
This call brings the interface back to the initialized state where the
switch state can be tested. With this change, the radio now follows
the switch. The LED now stays on all the time - always something to fix.
What bothers me is that this seems like a lot of work when the same
effect could be achieved by simply turning the radio off/on when the
rfkill blocking state changes. Perhaps there should be the option of
using two new ieee80211_ops callbacks (radio_off/radio_on) that would
default to stop/start if not specified. By specifying these callbacks,
each driver could choose how intrusive the radio shutdown need be.
Larry
prev parent reply other threads:[~2009-06-05 13:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-03 7:55 [PATCH] rfkill: always init poll delayed work Johannes Berg
2009-06-03 14:50 ` Larry Finger
2009-06-03 14:55 ` Johannes Berg
2009-06-04 14:52 ` Larry Finger
2009-06-04 15:12 ` Johannes Berg
2009-06-04 15:59 ` Larry Finger
2009-06-04 16:19 ` Johannes Berg
2009-06-04 16:28 ` Larry Finger
2009-06-04 16:31 ` Johannes Berg
2009-06-04 16:51 ` Larry Finger
2009-06-04 16:57 ` Johannes Berg
2009-06-04 17:52 ` Larry Finger
2009-06-04 18:02 ` Johannes Berg
2009-06-05 13:03 ` Larry Finger [this message]
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=4A2917AD.2090008@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mb@bu3sch.de \
/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.