rt2x00: Make RFKILL enabled by default
RFKILL should be enabled for _all_ hardware whether or not they feature a rfkill button or not. Remove driver specific RFKILL configuration options and make the rt2x00lib version depend on CONFIG_RFKILL and defaulting to 'y' to make sure it will always be enabled when RFKILL was enabled. This also fixes some bugs where RFKILL wasn't initialized and didn't respond to RFKILL key presses. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
3d35f7c687
commit
5816952998
@ -231,7 +231,7 @@ static const struct rt2x00debug rt2500pci_rt2x00debug = {
|
||||
};
|
||||
#endif /* CONFIG_RT2X00_LIB_DEBUGFS */
|
||||
|
||||
#ifdef CONFIG_RT2500PCI_RFKILL
|
||||
#ifdef CONFIG_RT2X00_LIB_RFKILL
|
||||
static int rt2500pci_rfkill_poll(struct rt2x00_dev *rt2x00dev)
|
||||
{
|
||||
u32 reg;
|
||||
@ -241,7 +241,7 @@ static int rt2500pci_rfkill_poll(struct rt2x00_dev *rt2x00dev)
|
||||
}
|
||||
#else
|
||||
#define rt2500pci_rfkill_poll NULL
|
||||
#endif /* CONFIG_RT2500PCI_RFKILL */
|
||||
#endif /* CONFIG_RT2X00_LIB_RFKILL */
|
||||
|
||||
#ifdef CONFIG_RT2500PCI_LEDS
|
||||
static void rt2500pci_brightness_set(struct led_classdev *led_cdev,
|
||||
@ -1545,10 +1545,10 @@ static int rt2500pci_init_eeprom(struct rt2x00_dev *rt2x00dev)
|
||||
/*
|
||||
* Detect if this device has an hardware controlled radio.
|
||||
*/
|
||||
#ifdef CONFIG_RT2500PCI_RFKILL
|
||||
#ifdef CONFIG_RT2X00_LIB_RFKILL
|
||||
if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO))
|
||||
__set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags);
|
||||
#endif /* CONFIG_RT2500PCI_RFKILL */
|
||||
#endif /* CONFIG_RT2X00_LIB_RFKILL */
|
||||
|
||||
/*
|
||||
* Check if the BBP tuning should be enabled.
|
||||
|
Reference in New Issue
Block a user