Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340905
b: refs/heads/master
c: 19f3fa2
h: refs/heads/master
i:
  340903: 7f5b457
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Oct 19, 2012
1 parent d33f01d commit d68f189
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: cee2c7315f60beeff6137ee59e99acc77d636eeb
refs/heads/master: 19f3fa248174b2611d47229db847427092c1849f
3 changes: 2 additions & 1 deletion trunk/drivers/net/wireless/rt2x00/rt2800lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2563,7 +2563,8 @@ static u8 rt2800_compensate_txpower(struct rt2x00_dev *rt2x00dev, int is_rate_b,
} else
reg_limit = 0;

return txpower + delta - reg_limit;
txpower = max(0, txpower + delta - reg_limit);
return min_t(u8, txpower, 0xc);
}

static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev,
Expand Down

0 comments on commit d68f189

Please sign in to comment.