|
@@ -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 &&
|