diff options
-rw-r--r-- | drivers/net/wireless/libertas/wext.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c index 1156be53df3f..11297dcf9fc3 100644 --- a/drivers/net/wireless/libertas/wext.c +++ b/drivers/net/wireless/libertas/wext.c | |||
@@ -281,7 +281,7 @@ static int lbs_set_rts(struct net_device *dev, struct iw_request_info *info, | |||
281 | if (vwrq->disabled) | 281 | if (vwrq->disabled) |
282 | val = MRVDRV_RTS_MAX_VALUE; | 282 | val = MRVDRV_RTS_MAX_VALUE; |
283 | 283 | ||
284 | if (val < MRVDRV_RTS_MIN_VALUE || val > MRVDRV_RTS_MAX_VALUE) | 284 | if (val > MRVDRV_RTS_MAX_VALUE) /* min rts value is 0 */ |
285 | return -EINVAL; | 285 | return -EINVAL; |
286 | 286 | ||
287 | ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_RTS_THRESHOLD, (u16) val); | 287 | ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_RTS_THRESHOLD, (u16) val); |
@@ -304,8 +304,7 @@ static int lbs_get_rts(struct net_device *dev, struct iw_request_info *info, | |||
304 | goto out; | 304 | goto out; |
305 | 305 | ||
306 | vwrq->value = val; | 306 | vwrq->value = val; |
307 | vwrq->disabled = ((val < MRVDRV_RTS_MIN_VALUE) | 307 | vwrq->disabled = val > MRVDRV_RTS_MAX_VALUE; /* min rts value is 0 */ |
308 | || (val > MRVDRV_RTS_MAX_VALUE)); | ||
309 | vwrq->fixed = 1; | 308 | vwrq->fixed = 1; |
310 | 309 | ||
311 | out: | 310 | out: |