aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00lib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h
index 88f2f9275528..bbee2cd40993 100644
--- a/drivers/net/wireless/rt2x00/rt2x00lib.h
+++ b/drivers/net/wireless/rt2x00/rt2x00lib.h
@@ -416,13 +416,13 @@ static inline u16 rt2x00ht_center_channel(struct rt2x00_dev *rt2x00dev,
416 */ 416 */
417static inline void rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev) 417static inline void rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev)
418{ 418{
419 if (test_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags)) 419 if (test_bit(CAPABILITY_HW_BUTTON, &rt2x00dev->cap_flags))
420 wiphy_rfkill_start_polling(rt2x00dev->hw->wiphy); 420 wiphy_rfkill_start_polling(rt2x00dev->hw->wiphy);
421} 421}
422 422
423static inline void rt2x00rfkill_unregister(struct rt2x00_dev *rt2x00dev) 423static inline void rt2x00rfkill_unregister(struct rt2x00_dev *rt2x00dev)
424{ 424{
425 if (test_bit(CONFIG_SUPPORT_HW_BUTTON, &rt2x00dev->flags)) 425 if (test_bit(CAPABILITY_HW_BUTTON, &rt2x00dev->cap_flags))
426 wiphy_rfkill_stop_polling(rt2x00dev->hw->wiphy); 426 wiphy_rfkill_stop_polling(rt2x00dev->hw->wiphy);
427} 427}
428 428