diff options
author | Zhu Yi <yi.zhu@intel.com> | 2006-01-24 03:37:16 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-01-30 20:35:33 -0500 |
commit | 4bfdb91dcff0dd4b70922de263ccffffb8fb1d16 (patch) | |
tree | 6755f4f008dbe8880b128cab6ebd9ae8b13ddc22 /drivers/net | |
parent | ede6111cae6a83fbb0b6b621b4333d1a3983c089 (diff) |
[PATCH] ipw2200: add module parameter to enable/disable roaming
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 37cd71cd1144..624f29500490 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -57,6 +57,7 @@ static int led = 0; | |||
57 | static int disable = 0; | 57 | static int disable = 0; |
58 | static int bt_coexist = 0; | 58 | static int bt_coexist = 0; |
59 | static int hwcrypto = 1; | 59 | static int hwcrypto = 1; |
60 | static int roaming = 1; | ||
60 | static const char ipw_modes[] = { | 61 | static const char ipw_modes[] = { |
61 | 'a', 'b', 'g', '?' | 62 | 'a', 'b', 'g', '?' |
62 | }; | 63 | }; |
@@ -4187,8 +4188,9 @@ static void ipw_handle_missed_beacon(struct ipw_priv *priv, | |||
4187 | return; | 4188 | return; |
4188 | } | 4189 | } |
4189 | 4190 | ||
4190 | if (missed_count > priv->roaming_threshold && | 4191 | if (roaming && |
4191 | missed_count <= priv->disassociate_threshold) { | 4192 | (missed_count > priv->roaming_threshold && |
4193 | missed_count <= priv->disassociate_threshold)) { | ||
4192 | /* If we are not already roaming, set the ROAM | 4194 | /* If we are not already roaming, set the ROAM |
4193 | * bit in the status and kick off a scan. | 4195 | * bit in the status and kick off a scan. |
4194 | * This can happen several times before we reach | 4196 | * This can happen several times before we reach |
@@ -4216,7 +4218,6 @@ static void ipw_handle_missed_beacon(struct ipw_priv *priv, | |||
4216 | } | 4218 | } |
4217 | 4219 | ||
4218 | IPW_DEBUG_NOTIF("Missed beacon: %d\n", missed_count); | 4220 | IPW_DEBUG_NOTIF("Missed beacon: %d\n", missed_count); |
4219 | |||
4220 | } | 4221 | } |
4221 | 4222 | ||
4222 | /** | 4223 | /** |
@@ -11378,5 +11379,8 @@ module_param(cmdlog, int, 0444); | |||
11378 | MODULE_PARM_DESC(cmdlog, | 11379 | MODULE_PARM_DESC(cmdlog, |
11379 | "allocate a ring buffer for logging firmware commands"); | 11380 | "allocate a ring buffer for logging firmware commands"); |
11380 | 11381 | ||
11382 | module_param(roaming, int, 0444); | ||
11383 | MODULE_PARM_DESC(roaming, "enable roaming support (default on)"); | ||
11384 | |||
11381 | module_exit(ipw_exit); | 11385 | module_exit(ipw_exit); |
11382 | module_init(ipw_init); | 11386 | module_init(ipw_init); |