diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-01-21 18:26:39 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-01-21 18:26:39 -0500 |
commit | 5ed540aecc2aae92d5c97b9a9306a5bf88ad5574 (patch) | |
tree | 0b19e77d0f5ed9ac4d88ab733440d7ea6348ea4e /drivers/net/wireless/iwlwifi/iwl-led.h | |
parent | 4a4fdf2e0b9e3534f6ec4f3e7077470bd66924ab (diff) |
iwlwifi: use mac80211 throughput trigger
Instead of keeping track of LED blink speed
in the driver, use the new mac80211 trigger
and link it up with an LED classdev that we
now register. This also allows users more
flexibility in how they want to have the LED
blink or not.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-led.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-led.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.h b/drivers/net/wireless/iwlwifi/iwl-led.h index 9079b33486ef..101eef12b3bb 100644 --- a/drivers/net/wireless/iwlwifi/iwl-led.h +++ b/drivers/net/wireless/iwlwifi/iwl-led.h | |||
@@ -31,23 +31,14 @@ | |||
31 | struct iwl_priv; | 31 | struct iwl_priv; |
32 | 32 | ||
33 | #define IWL_LED_SOLID 11 | 33 | #define IWL_LED_SOLID 11 |
34 | #define IWL_LED_NAME_LEN 31 | ||
35 | #define IWL_DEF_LED_INTRVL cpu_to_le32(1000) | 34 | #define IWL_DEF_LED_INTRVL cpu_to_le32(1000) |
36 | 35 | ||
37 | #define IWL_LED_ACTIVITY (0<<1) | 36 | #define IWL_LED_ACTIVITY (0<<1) |
38 | #define IWL_LED_LINK (1<<1) | 37 | #define IWL_LED_LINK (1<<1) |
39 | 38 | ||
40 | enum led_type { | ||
41 | IWL_LED_TRG_TX, | ||
42 | IWL_LED_TRG_RX, | ||
43 | IWL_LED_TRG_ASSOC, | ||
44 | IWL_LED_TRG_RADIO, | ||
45 | IWL_LED_TRG_MAX, | ||
46 | }; | ||
47 | |||
48 | /* | 39 | /* |
49 | * LED mode | 40 | * LED mode |
50 | * IWL_LED_DEFAULT: use system default | 41 | * IWL_LED_DEFAULT: use device default |
51 | * IWL_LED_RF_STATE: turn LED on/off based on RF state | 42 | * IWL_LED_RF_STATE: turn LED on/off based on RF state |
52 | * LED ON = RF ON | 43 | * LED ON = RF ON |
53 | * LED OFF = RF OFF | 44 | * LED OFF = RF OFF |
@@ -60,9 +51,6 @@ enum iwl_led_mode { | |||
60 | }; | 51 | }; |
61 | 52 | ||
62 | void iwl_leds_init(struct iwl_priv *priv); | 53 | void iwl_leds_init(struct iwl_priv *priv); |
63 | void iwl_leds_background(struct iwl_priv *priv); | 54 | void iwl_leds_exit(struct iwl_priv *priv); |
64 | int iwl_led_start(struct iwl_priv *priv); | ||
65 | int iwl_led_associate(struct iwl_priv *priv); | ||
66 | int iwl_led_disassociate(struct iwl_priv *priv); | ||
67 | 55 | ||
68 | #endif /* __iwl_leds_h__ */ | 56 | #endif /* __iwl_leds_h__ */ |