diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2008-05-27 04:15:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-28 16:43:48 -0400 |
commit | a7624837261b55259d4a88309fd88529643fbb80 (patch) | |
tree | 0008c6c21c29eabc10fa2c289139b6038e859ec2 | |
parent | 135a5484c3e0c6710035630b630cef3c856b78e2 (diff) |
rndis_wlan: add missing range check for power_output modparam
Range check for power_output were missing.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index ac56f8d9a5e5..18c9931e3267 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -2470,6 +2470,11 @@ static int bcm4320_early_init(struct usbnet *dev) | |||
2470 | else if (priv->param_power_save > 2) | 2470 | else if (priv->param_power_save > 2) |
2471 | priv->param_power_save = 2; | 2471 | priv->param_power_save = 2; |
2472 | 2472 | ||
2473 | if (priv->param_power_output < 0) | ||
2474 | priv->param_power_output = 0; | ||
2475 | else if (priv->param_power_output > 3) | ||
2476 | priv->param_power_output = 3; | ||
2477 | |||
2473 | if (priv->param_roamtrigger < -80) | 2478 | if (priv->param_roamtrigger < -80) |
2474 | priv->param_roamtrigger = -80; | 2479 | priv->param_roamtrigger = -80; |
2475 | else if (priv->param_roamtrigger > -60) | 2480 | else if (priv->param_roamtrigger > -60) |