From: Adel Gadllah <adel.gadllah@xxxxxxxxx> Currently it is a BUG_ON() which will hang the machine once triggered. (Changed from WARN_ON to WARN_ON_ONCE. -- JWL) Signed-off-by: Adel Gadllah <adel.gadllah@xxxxxxxxx> Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx> --- drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 8f8d5e3..ca63ff9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c @@ -2079,8 +2079,9 @@ static void rs_rate_scale_perform(struct iwl_priv *priv, * actual average throughput */ /* Sanity-check TPT calculations */ - BUG_ON(window->average_tpt != ((window->success_ratio * - tbl->expected_tpt[index] + 64) / 128)); + if (WARN_ON_ONCE(window->average_tpt != ((window->success_ratio * + tbl->expected_tpt[index] + 64) / 128))) + return; /* If we are searching for better modulation mode, check success. */ if (lq_sta->search_better_tbl && -- 1.6.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html