Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122025
b: refs/heads/master
c: 87c1687
h: refs/heads/master
i:
  122023: dea23db
v: v3
  • Loading branch information
Julia Lawall authored and John W. Linville committed Nov 21, 2008
1 parent f7d64db commit d6d3277
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: f9f88fed3433139b58962011c81597b44fd48458
refs/heads/master: 87c1687d1a7bf0d4975d613cb699ba95b329359e
6 changes: 2 additions & 4 deletions trunk/drivers/net/wireless/ath9k/rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,8 +1272,7 @@ static void ath_rc_update_ht(struct ath_softc *sc,
rate_ctrl->state[tx_rate].per = 100;
} else {
/* xretries == 2 */
count = sizeof(nretry_to_per_lookup) /
sizeof(nretry_to_per_lookup[0]);
count = ARRAY_SIZE(nretry_to_per_lookup);
if (retries >= count)
retries = count - 1;
/* new_PER = 7/8*old_PER + 1/8*(currentPER) */
Expand All @@ -1291,8 +1290,7 @@ static void ath_rc_update_ht(struct ath_softc *sc,
} else { /* xretries == 0 */
/* Update the PER. */
/* Make sure it doesn't index out of array's bounds. */
count = sizeof(nretry_to_per_lookup) /
sizeof(nretry_to_per_lookup[0]);
count = ARRAY_SIZE(nretry_to_per_lookup);
if (retries >= count)
retries = count - 1;
if (info_priv->n_bad_frames) {
Expand Down

0 comments on commit d6d3277

Please sign in to comment.