diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index b93e491..60e5323 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c @@ -361,6 +361,8 @@ static int rs_collect_tx_data(struct iwl_rate_scale_data *windows, * subtract "1" from the success counter (this is the main reason * we keep these bitmaps!). */ + IWL_DEBUG_RATE(priv, "attempts = %d, window->counter = %d\n", + attempts, window->counter); while (attempts > 0) { if (window->counter >= IWL_RATE_MAX_WINDOW) { @@ -389,6 +391,7 @@ static int rs_collect_tx_data(struct iwl_rate_scale_data *windows, attempts--; } + IWL_DEBUG_RATE(priv, "window counter = %d \n", window->counter); /* Calculate current success ratio, avoid divide-by-0! */ if (window->counter > 0) window->success_ratio = 128 * (100 * window->success_counter) @@ -849,6 +852,7 @@ static void rs_tx_status(void *priv_r, struct ieee80211_supported_band *sband, * first index into rate scale table. */ if (info->flags & IEEE80211_TX_STAT_AMPDU) { + IWL_DEBUG_RATE(priv, "Updating aggregation history\n"); tx_rate = le32_to_cpu(table->rs_table[0].rate_n_flags); rs_get_tbl_info_from_mcs(tx_rate, priv->band, &tbl_type, &rs_index); @@ -868,6 +872,7 @@ static void rs_tx_status(void *priv_r, struct ieee80211_supported_band *sband, * For legacy, update frame history with for each Tx retry. */ retries = info->status.rates[0].count - 1; + IWL_DEBUG_RATE(priv, "Updating legacy history. retries = %d \n", retries); /* HW doesn't send more than 15 retries */ retries = min(retries, 15);