Search Linux Wireless

Re: [PATCH] rfkill: create useful userspace interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 01 Jun 2009, Johannes Berg wrote:
> On Mon, 2009-06-01 at 12:50 -0300, Henrique de Moraes Holschuh wrote:
> > Yes, it "calls itself" right now... so I can certainly do that :)
> > 
> > However, the in-driver shortcut means I give rfkill a kick and say "the soft
> > state has changed, deal with it", instead of "please change the state" which
> > it might deny due to EPO, etc.
> 
> But ... now I'm confused ... why would the driver ever ask to change the
> state? Sounds like something that should be a button instead.

I have a stable userspace ABI that exposes a sysfs control that the user can
use to enable/disable bluetooth and wwan.  I need that thing to remain
working well for at least one more year before I can try to remove it.

And right now, it ignores EPO since such state change do not go through the
rfkill core (this is not a regression, but might as well get it fixed now
that I expect rfkill to see more and more usage).

Before you ask, thinkpad-acpi enable/disable radio support predates the
existence of the rfkill subsystem (it was called ibm-acpi back then), this
is the reason for the driver-specific way of enabling/disabling radios.

Anyway, this sort of stuff it is not an input device (and it is not supposed
to be subject to the whims of userspace hotkey processing to begin with), so
it can't go over the input layer.  That, and I have no desire to attempt to
get EV_SW SW_BLUETOOTH and EV_SW SW_WWAN past Dmitri without a good reason
(such as a device that actually has those switches...).

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux