Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255745
b: refs/heads/master
c: 6b0184c
h: refs/heads/master
i:
  255743: 7796555
v: v3
  • Loading branch information
Wey-Yi Guy committed Jun 11, 2011
1 parent 341a2ce commit 0367a13
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b60eec9bf07307ad40e9304d39eb9107acb2fb0c
refs/heads/master: 6b0184c4c62beb15443fd6dd5080f0e18941b67b
4 changes: 4 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-agn.c
Original file line number Diff line number Diff line change
Expand Up @@ -4095,3 +4095,7 @@ MODULE_PARM_DESC(ack_check, "Check ack health (default: 0 [disabled])");
module_param_named(bt_coex_active, iwlagn_mod_params.bt_coex_active,
bool, S_IRUGO);
MODULE_PARM_DESC(bt_coex_active, "enable wifi/bt co-exist (default: enable)");

module_param_named(led_mode, iwlagn_mod_params.led_mode, int, S_IRUGO);
MODULE_PARM_DESC(led_mode, "0=system default, "
"1=On(RF On)/Off(RF Off), 2=blinking (default: 0)");
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ struct iwl_mod_params {
bool plcp_check; /* def: true = enable plcp health check */
bool ack_check; /* def: false = disable ack health check */
bool bt_coex_active; /* def: true = enable bt coex */
int led_mode; /* def: 0 = system default */
};

/*
Expand Down
9 changes: 2 additions & 7 deletions trunk/drivers/net/wireless/iwlwifi/iwl-led.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@

#include "iwl-dev.h"
#include "iwl-core.h"
#include "iwl-agn.h"
#include "iwl-io.h"

/* default: IWL_LED_BLINK(0) using blinking index table */
static int led_mode;
module_param(led_mode, int, S_IRUGO);
MODULE_PARM_DESC(led_mode, "0=system default, "
"1=On(RF On)/Off(RF Off), 2=blinking");

/* Throughput OFF time(ms) ON time (ms)
* >300 25 25
* >200 to 300 40 40
Expand Down Expand Up @@ -181,7 +176,7 @@ static int iwl_led_blink_set(struct led_classdev *led_cdev,

void iwl_leds_init(struct iwl_priv *priv)
{
int mode = led_mode;
int mode = iwlagn_mod_params.led_mode;
int ret;

if (mode == IWL_LED_DEFAULT)
Expand Down

0 comments on commit 0367a13

Please sign in to comment.