diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/core.h')
-rw-r--r-- | drivers/net/wireless/ath9k/core.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/core.h b/drivers/net/wireless/ath9k/core.h index 1faa1effa02c..b66de29cf662 100644 --- a/drivers/net/wireless/ath9k/core.h +++ b/drivers/net/wireless/ath9k/core.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <asm/page.h> | 40 | #include <asm/page.h> |
41 | #include <net/mac80211.h> | 41 | #include <net/mac80211.h> |
42 | #include <linux/leds.h> | 42 | #include <linux/leds.h> |
43 | #include <linux/rfkill.h> | ||
43 | 44 | ||
44 | #include "ath9k.h" | 45 | #include "ath9k.h" |
45 | #include "rc.h" | 46 | #include "rc.h" |
@@ -823,6 +824,15 @@ struct ath_led { | |||
823 | bool registered; | 824 | bool registered; |
824 | }; | 825 | }; |
825 | 826 | ||
827 | /* Rfkill */ | ||
828 | #define ATH_RFKILL_POLL_INTERVAL 2000 /* msecs */ | ||
829 | |||
830 | struct ath_rfkill { | ||
831 | struct rfkill *rfkill; | ||
832 | struct delayed_work rfkill_poll; | ||
833 | char rfkill_name[32]; | ||
834 | }; | ||
835 | |||
826 | /********************/ | 836 | /********************/ |
827 | /* Main driver core */ | 837 | /* Main driver core */ |
828 | /********************/ | 838 | /********************/ |
@@ -906,6 +916,9 @@ struct ath_ht_info { | |||
906 | #define SC_OP_PROTECT_ENABLE BIT(8) | 916 | #define SC_OP_PROTECT_ENABLE BIT(8) |
907 | #define SC_OP_RXFLUSH BIT(9) | 917 | #define SC_OP_RXFLUSH BIT(9) |
908 | #define SC_OP_LED_ASSOCIATED BIT(10) | 918 | #define SC_OP_LED_ASSOCIATED BIT(10) |
919 | #define SC_OP_RFKILL_REGISTERED BIT(11) | ||
920 | #define SC_OP_RFKILL_SW_BLOCKED BIT(12) | ||
921 | #define SC_OP_RFKILL_HW_BLOCKED BIT(13) | ||
909 | 922 | ||
910 | struct ath_softc { | 923 | struct ath_softc { |
911 | struct ieee80211_hw *hw; | 924 | struct ieee80211_hw *hw; |
@@ -1015,6 +1028,9 @@ struct ath_softc { | |||
1015 | struct ath_led assoc_led; | 1028 | struct ath_led assoc_led; |
1016 | struct ath_led tx_led; | 1029 | struct ath_led tx_led; |
1017 | struct ath_led rx_led; | 1030 | struct ath_led rx_led; |
1031 | |||
1032 | /* Rfkill */ | ||
1033 | struct ath_rfkill rf_kill; | ||
1018 | }; | 1034 | }; |
1019 | 1035 | ||
1020 | int ath_init(u16 devid, struct ath_softc *sc); | 1036 | int ath_init(u16 devid, struct ath_softc *sc); |