From: Emmanuel Grumbach Date: Wed, 24 Jul 2013 11:15:21 +0000 (+0300) Subject: iwlwifi: pcie: don't reset the TX queue counter X-Git-Tag: upstream/snapshot3+hdmi~4119^2~20^2^2~8^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f477252051c6cdbd1c8ba299fba8f8b98667ca31;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git iwlwifi: pcie: don't reset the TX queue counter A few NICs can get into trouble if we reset the TX queue counters in certain very rare situation. To be on the safe side, simply avoid to reset the TX queue counter. This is relevant for non-AMPDU queues only since on AMPDU we have no choice - we must start the TX queue at the right index. Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/iwlwifi/pcie/tx.c b/drivers/net/wireless/iwlwifi/pcie/tx.c index f45eb29..1424335 100644 --- a/drivers/net/wireless/iwlwifi/pcie/tx.c +++ b/drivers/net/wireless/iwlwifi/pcie/tx.c @@ -1102,6 +1102,8 @@ void iwl_trans_pcie_txq_enable(struct iwl_trans *trans, int txq_id, int fifo, * non-AGG queue. */ iwl_clear_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); + + ssn = trans_pcie->txq[txq_id].q.read_ptr; } /* Place first TFD at index corresponding to start sequence number.