diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-led.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-led.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wireless/iwlwifi/iwl-led.c index f547233c5b79..685ba9d6f082 100644 --- a/drivers/net/wireless/iwlwifi/iwl-led.c +++ b/drivers/net/wireless/iwlwifi/iwl-led.c | |||
@@ -42,6 +42,12 @@ | |||
42 | #include "iwl-core.h" | 42 | #include "iwl-core.h" |
43 | #include "iwl-io.h" | 43 | #include "iwl-io.h" |
44 | 44 | ||
45 | /* default: IWL_LED_BLINK(0) using blinking index table */ | ||
46 | static int led_mode; | ||
47 | module_param(led_mode, int, S_IRUGO); | ||
48 | MODULE_PARM_DESC(led_mode, "led mode: 0=blinking, 1=On(RF On)/Off(RF Off), " | ||
49 | "(default 0)\n"); | ||
50 | |||
45 | #ifdef CONFIG_IWLWIFI_DEBUG | 51 | #ifdef CONFIG_IWLWIFI_DEBUG |
46 | static const char *led_type_str[] = { | 52 | static const char *led_type_str[] = { |
47 | __stringify(IWL_LED_TRG_TX), | 53 | __stringify(IWL_LED_TRG_TX), |
@@ -199,7 +205,8 @@ static int iwl_led_off_reg(struct iwl_priv *priv, int led_id) | |||
199 | static int iwl_led_associate(struct iwl_priv *priv, int led_id) | 205 | static int iwl_led_associate(struct iwl_priv *priv, int led_id) |
200 | { | 206 | { |
201 | IWL_DEBUG_LED(priv, "Associated\n"); | 207 | IWL_DEBUG_LED(priv, "Associated\n"); |
202 | priv->allow_blinking = 1; | 208 | if (led_mode == IWL_LED_BLINK) |
209 | priv->allow_blinking = 1; | ||
203 | return iwl_led_on_reg(priv, led_id); | 210 | return iwl_led_on_reg(priv, led_id); |
204 | } | 211 | } |
205 | static int iwl_led_disassociate(struct iwl_priv *priv, int led_id) | 212 | static int iwl_led_disassociate(struct iwl_priv *priv, int led_id) |