rfkill - rt2x00 should use rfkill
Subsystems (3)
PATCH 2/2 rfkill - rt2x00 should use rfkill
Now rfkill is available rt2x00 should make use of it let
the hardware button status be periodically probed by rfkill. This makes the ACPI implementation as done in rt2x00 no longer required.
Signed-off-by Ivo van Doorn <[email protected]>
---
drivers/net/wireless/d80211/rt2x00/Kconfig +12 -12
@@ -17,12 +17,12 @@ config RT2400PCI_BUTTON bool "Ralink rt2400 hardware button support" - depends on RT2400PCI && X86 + depends on RT2400PCI && RFKILL ---help--- In some notebooks the rt2400 chipset is integrated in the machine, - with this option enabled the device will periodically poll the - the status of this button and will send and ACPI event when - the button has been pressed. + with this option enabled the driver will register itself to the + rfkill driver for periodical polling of the hardware button + status, and the correct handling of button press events. config RT2400PCI_DEBUG bool "Ralink rt2400 debug output"
@@ -40,12 +40,12 @@ config RT2500PCI_BUTTON bool "Ralink rt2500 hardware button support" - depends on RT2500PCI && X86 + depends on RT2500PCI && RFKILL ---help--- In some notebooks the rt2500 chipset is integrated in the machine, - with this option enabled the device will periodically poll the - the status of this button and will send and ACPI event when - the button has been pressed. + with this option enabled the driver will register itself to the + rfkill driver for periodical polling of the hardware button + status, and the correct handling of button press events. config RT2500PCI_DEBUG bool "Ralink rt2500 debug output"
@@ -64,12 +64,12 @@ config RT61PCI_BUTTON bool "Ralink rt61 hardware button support" - depends on RT61PCI && X86 + depends on RT61PCI && RFKILL ---help--- In some notebooks the rt61 chipset is integrated in the machine, - with this option enabled the device will periodically poll the - the status of this button and will send and ACPI event when - the button has been pressed. + with this option enabled the driver will register itself to the + rfkill driver for periodical polling of the hardware button + status, and the correct handling of button press events. config RT61PCI_DEBUG bool "Ralink rt61 debug output"
drivers/net/wireless/d80211/rt2x00/rt2400pci.c +56 -24
110 lines not on this page · raw message
drivers/net/wireless/d80211/rt2x00/rt2500pci.c +56 -24
110 lines not on this page · raw message
drivers/net/wireless/d80211/rt2x00/rt2x00.h +10 -0
@@ -82,6 +82,16 @@ __FUNCTION__, ##__args);/* +* Hardware button support (through radiobtn) +* The delay between each poll can be set by the user +* using the module parameter. Default value is 0, +* which means polling is disabled. +*/ +#ifdef CONFIG_RT2X00_BUTTON +#include <linux/rfkill.h> +#endif /* CONFIG_RT2X00_BUTTON */ + +/* * Ring sizes. * Ralink PCI devices demand the Frame size to be a multiple of 128 bytes. * DATA_FRAME_SIZE is used for TX, RX, ATIM and PRIO rings.
drivers/net/wireless/d80211/rt2x00/rt2x00pci.h +0 -111
115 lines not on this page · raw message
drivers/net/wireless/d80211/rt2x00/rt61pci.c +56 -24
110 lines not on this page · raw message