]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/ipw2200.c
[PATCH] ipw2200: mark "iwconfig retry 255" as invalid
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / ipw2200.c
index 0e5548a15f41abffef0f0c344a77be5415b37693..e18fbca83cef84daabeebb34a6fc706048d24a69 100644 (file)
@@ -9255,7 +9255,7 @@ static int ipw_wx_set_retry(struct net_device *dev,
        if (!(wrqu->retry.flags & IW_RETRY_LIMIT))
                return 0;
 
-       if (wrqu->retry.value < 0 || wrqu->retry.value > 255)
+       if (wrqu->retry.value < 0 || wrqu->retry.value >= 255)
                return -EINVAL;
 
        mutex_lock(&priv->mutex);