aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index ce75426764a1..de48c5c68eff 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -277,7 +277,6 @@ static const struct rt2x00debug rt2500usb_rt2x00debug = {
277}; 277};
278#endif /* CONFIG_RT2X00_LIB_DEBUGFS */ 278#endif /* CONFIG_RT2X00_LIB_DEBUGFS */
279 279
280#ifdef CONFIG_RT2X00_LIB_RFKILL
281static int rt2500usb_rfkill_poll(struct rt2x00_dev *rt2x00dev) 280static int rt2500usb_rfkill_poll(struct rt2x00_dev *rt2x00dev)
282{ 281{
283 u16 reg; 282 u16 reg;
@@ -285,9 +284,6 @@ static int rt2500usb_rfkill_poll(struct rt2x00_dev *rt2x00dev)
285 rt2500usb_register_read(rt2x00dev, MAC_CSR19, &reg); 284 rt2500usb_register_read(rt2x00dev, MAC_CSR19, &reg);
286 return rt2x00_get_field32(reg, MAC_CSR19_BIT7); 285 return rt2x00_get_field32(reg, MAC_CSR19_BIT7);
287} 286}
288#else
289#define rt2500usb_rfkill_poll NULL
290#endif /* CONFIG_RT2X00_LIB_RFKILL */
291 287
292#ifdef CONFIG_RT2X00_LIB_LEDS 288#ifdef CONFIG_RT2X00_LIB_LEDS
293static void rt2500usb_brightness_set(struct led_classdev *led_cdev, 289static void rt2500usb_brightness_set(struct led_classdev *led_cdev,
@@ -1603,10 +1599,8 @@ static int rt2500usb_init_eeprom(struct rt2x00_dev *rt2x00dev)
1603 /* 1599 /*
1604 * Detect if this device has an hardware controlled radio. 1600 * Detect if this device has an hardware controlled radio.
1605 */ 1601 */
1606#ifdef CONFIG_RT2X00_LIB_RFKILL
1607 if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO)) 1602 if (rt2x00_get_field16(eeprom, EEPROM_ANTENNA_HARDWARE_RADIO))
1608 __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags); 1603 __set_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags);
1609#endif /* CONFIG_RT2X00_LIB_RFKILL */
1610 1604
1611 /* 1605 /*
1612 * Check if the BBP tuning should be disabled. 1606 * Check if the BBP tuning should be disabled.
@@ -1902,11 +1896,13 @@ static const struct ieee80211_ops rt2500usb_mac80211_ops = {
1902 .remove_interface = rt2x00mac_remove_interface, 1896 .remove_interface = rt2x00mac_remove_interface,
1903 .config = rt2x00mac_config, 1897 .config = rt2x00mac_config,
1904 .configure_filter = rt2x00mac_configure_filter, 1898 .configure_filter = rt2x00mac_configure_filter,
1899 .set_tim = rt2x00mac_set_tim,
1905 .set_key = rt2x00mac_set_key, 1900 .set_key = rt2x00mac_set_key,
1906 .get_stats = rt2x00mac_get_stats, 1901 .get_stats = rt2x00mac_get_stats,
1907 .bss_info_changed = rt2x00mac_bss_info_changed, 1902 .bss_info_changed = rt2x00mac_bss_info_changed,
1908 .conf_tx = rt2x00mac_conf_tx, 1903 .conf_tx = rt2x00mac_conf_tx,
1909 .get_tx_stats = rt2x00mac_get_tx_stats, 1904 .get_tx_stats = rt2x00mac_get_tx_stats,
1905 .rfkill_poll = rt2x00mac_rfkill_poll,
1910}; 1906};
1911 1907
1912static const struct rt2x00lib_ops rt2500usb_rt2x00_ops = { 1908static const struct rt2x00lib_ops rt2500usb_rt2x00_ops = {