Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194757
b: refs/heads/master
c: 3d79b2a
h: refs/heads/master
i:
  194755: 4122d04
v: v3
  • Loading branch information
Reinette Chatre authored and John W. Linville committed May 4, 2010
1 parent 8c95192 commit 8b9a07d
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 52c773861895faaf544bd398c87ba10dff29f313
refs/heads/master: 3d79b2a9eeaa066b35c49fbb17e3156a3c482c3e
10 changes: 6 additions & 4 deletions trunk/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2077,10 +2077,12 @@ static void rs_rate_scale_perform(struct iwl_priv *priv,
}
/* Else we have enough samples; calculate estimate of
* actual average throughput */

/* Sanity-check TPT calculations */
BUG_ON(window->average_tpt != ((window->success_ratio *
tbl->expected_tpt[index] + 64) / 128));
if (window->average_tpt != ((window->success_ratio *
tbl->expected_tpt[index] + 64) / 128)) {
IWL_ERR(priv, "expected_tpt should have been calculated by now\n");
window->average_tpt = ((window->success_ratio *
tbl->expected_tpt[index] + 64) / 128);
}

/* If we are searching for better modulation mode, check success. */
if (lq_sta->search_better_tbl &&
Expand Down

0 comments on commit 8b9a07d

Please sign in to comment.