diff options
author | Zhu Yi <yi.zhu@intel.com> | 2006-08-20 23:38:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-08-29 17:06:33 -0400 |
commit | d5f7ac203924a51d0e678338a11be42135fa7996 (patch) | |
tree | 89e3df3d1faaab58226bff8999b375a9dd4bbb22 /drivers/net/wireless/ipw2200.c | |
parent | 88a93df4cbc1342108356bda4f163d5cb78b6381 (diff) |
[PATCH] ipw2200: mark "iwconfig retry 255" as invalid
The ipw2200 firmware/ucode only support values from 0 to 254. So mark 255
as invalid.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 0e5548a15f41..e18fbca83cef 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -9255,7 +9255,7 @@ static int ipw_wx_set_retry(struct net_device *dev, | |||
9255 | if (!(wrqu->retry.flags & IW_RETRY_LIMIT)) | 9255 | if (!(wrqu->retry.flags & IW_RETRY_LIMIT)) |
9256 | return 0; | 9256 | return 0; |
9257 | 9257 | ||
9258 | if (wrqu->retry.value < 0 || wrqu->retry.value > 255) | 9258 | if (wrqu->retry.value < 0 || wrqu->retry.value >= 255) |
9259 | return -EINVAL; | 9259 | return -EINVAL; |
9260 | 9260 | ||
9261 | mutex_lock(&priv->mutex); | 9261 | mutex_lock(&priv->mutex); |