Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111730
b: refs/heads/master
c: 375da53
h: refs/heads/master
v: v3
  • Loading branch information
John W. Linville committed Sep 15, 2008
1 parent 41a63dc commit 13f3530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75d31cf19fe8f86b4612561c94dfbb6d8a472ba3
refs/heads/master: 375da53b8e5e3ff2330b66b377e07a6151a93fe5
5 changes: 2 additions & 3 deletions trunk/drivers/net/wireless/libertas/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static int lbs_set_rts(struct net_device *dev, struct iw_request_info *info,
if (vwrq->disabled)
val = MRVDRV_RTS_MAX_VALUE;

if (val < MRVDRV_RTS_MIN_VALUE || val > MRVDRV_RTS_MAX_VALUE)
if (val > MRVDRV_RTS_MAX_VALUE) /* min rts value is 0 */
return -EINVAL;

ret = lbs_set_snmp_mib(priv, SNMP_MIB_OID_RTS_THRESHOLD, (u16) val);
Expand All @@ -304,8 +304,7 @@ static int lbs_get_rts(struct net_device *dev, struct iw_request_info *info,
goto out;

vwrq->value = val;
vwrq->disabled = ((val < MRVDRV_RTS_MIN_VALUE)
|| (val > MRVDRV_RTS_MAX_VALUE));
vwrq->disabled = val > MRVDRV_RTS_MAX_VALUE; /* min rts value is 0 */
vwrq->fixed = 1;

out:
Expand Down

0 comments on commit 13f3530

Please sign in to comment.