Skip to content

Commit

Permalink
[PATCH] ipw2200: mark "iwconfig retry 255" as invalid
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhu Yi authored and John W. Linville committed Aug 29, 2006
1 parent 88a93df commit d5f7ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d5f7ac2

Please sign in to comment.