Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171241
b: refs/heads/master
c: 55a662d
h: refs/heads/master
i:
  171239: 7caf5e4
v: v3
  • Loading branch information
Inaky Perez-Gonzalez committed Nov 3, 2009
1 parent 3f81a40 commit 87149d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8ee303cae6fbdaa639afa50b9d03ce6f0c7d7da
refs/heads/master: 55a662d6468005ec3cd799fbd8d0ad03dfae6d2a
10 changes: 10 additions & 0 deletions trunk/drivers/net/wimax/i2400m/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@
#define D_SUBMODULE control
#include "debug-levels.h"

int i2400m_passive_mode; /* 0 (passive mode disabled) by default */
module_param_named(passive_mode, i2400m_passive_mode, int, 0644);
MODULE_PARM_DESC(passive_mode,
"If true, the driver will not do any device setup "
"and leave it up to user space, who must be properly "
"setup.");


/*
* Return if a TLV is of a give type and size
Expand Down Expand Up @@ -1335,6 +1342,8 @@ int i2400m_dev_initialize(struct i2400m *i2400m)
unsigned argc = 0;

d_fnstart(3, dev, "(i2400m %p)\n", i2400m);
if (i2400m_passive_mode)
goto out_passive;
/* Disable idle mode? (enabled by default) */
if (i2400m_idle_mode_disabled) {
if (i2400m_le_v1_3(i2400m)) {
Expand Down Expand Up @@ -1377,6 +1386,7 @@ int i2400m_dev_initialize(struct i2400m *i2400m)
result = i2400m_set_init_config(i2400m, args, argc);
if (result < 0)
goto error;
out_passive:
/*
* Update state: Here it just calls a get state; parsing the
* result (System State TLV and RF Status TLV [done in the rx
Expand Down

0 comments on commit 87149d0

Please sign in to comment.