Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89855
b: refs/heads/master
c: 3b3618a
h: refs/heads/master
i:
  89853: 9571f68
  89851: 2f1f851
  89847: 64f14d8
  89839: ec79f0a
  89823: 8efb693
  89791: c8b47ee
  89727: 3a9d8d4
  89599: 9e65dc4
v: v3
  • Loading branch information
Ivo van Doorn authored and John W. Linville committed Feb 29, 2008
1 parent 42477a6 commit 884b52d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: d7bafff3f94efd850f8744d683e63812ff8d55c5
refs/heads/master: 3b3618ad5117331b6fa7cafc41fc18935709e569
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/rt2x00/rt2x00mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,17 @@ int rt2x00mac_conf_tx(struct ieee80211_hw *hw, int queue_idx,
* The passed variables are stored as real value ((2^n)-1).
* Ralink registers require to know the bit number 'n'.
*/
if (params->cw_min)
if (params->cw_min > 0)
queue->cw_min = fls(params->cw_min);
else
queue->cw_min = 5; /* cw_min: 2^5 = 32. */

if (params->cw_max)
if (params->cw_max > 0)
queue->cw_max = fls(params->cw_max);
else
queue->cw_max = 10; /* cw_min: 2^10 = 1024. */

if (params->aifs)
if (params->aifs >= 0)
queue->aifs = params->aifs;
else
queue->aifs = 2;
Expand Down

0 comments on commit 884b52d

Please sign in to comment.