forked from luck/tmp_suning_uos_patched
[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>
This commit is contained in:
parent
88a93df4cb
commit
d5f7ac2039
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user