diff options
author | 2008-05-27 11:15:08 +0300 | |
---|---|---|
committer | 2008-05-28 16:43:48 -0400 | |
commit | a7624837261b55259d4a88309fd88529643fbb80 (patch) | |
tree | 0008c6c21c29eabc10fa2c289139b6038e859ec2 | |
parent | iwlwifi: fix rate scale TLC column selection bug (diff) | |
download | wireguard-linux-a7624837261b55259d4a88309fd88529643fbb80.tar.xz wireguard-linux-a7624837261b55259d4a88309fd88529643fbb80.zip |
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) else if (priv->param_power_save > 2) priv->param_power_save = 2; + if (priv->param_power_output < 0) + priv->param_power_output = 0; + else if (priv->param_power_output > 3) + priv->param_power_output = 3; + if (priv->param_roamtrigger < -80) priv->param_roamtrigger = -80; else if (priv->param_roamtrigger > -60) |