Skip to contentSkip to conversation

ipw2200: mark "iwconfig retry 255" as invalid

PATCH In review Zhu Yi 1 participant 1 message Aug 21, 2006

Subsystems (3)
lore
Share & tools
lore

Zhu Yi

author
#0 lore raw

PATCH 9/14 ipw2200: mark "iwconfig retry 255" as invalid

The ipw2200 firmware/ucode only support values from 0 to 254. So mark 255 as invalid.

---

 drivers/net/wireless/ipw2200.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

3ac6f33083c5f2e8900b06a29b124afd7b6e064f

drivers/net/wireless/ipw2200.c +1 -1
index 0e5548a..e18fbca 100644
@@ -9255,7 +9255,7 @@ static int ipw_wx_set_retry(struct net_d
 	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);
Signature · 1 line
1.2.6