]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix txq aggregation bug
authorOren Givon <oren.givon@intel.com>
Sun, 29 May 2016 11:05:50 +0000 (14:05 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 5 Jul 2016 22:24:44 +0000 (01:24 +0300)
commit09fd5237ca1917093026e1907fbaa8305c905c87
tree8b7abcb6f0b24ce083c13574bac00828cdb05f86
parentd7cb6fd8b302235d66c6909e6a5e3b3de12001be
iwlwifi: mvm: fix txq aggregation bug

Fix an issue where nullfunc frames and block ack requests
had the same tid as aggregation frames and were queued on
a non aggregation queue. The pending frames counter included
those frames but the check whether to decrement the pending
frames counter relied on the tid status and not on the txq id.
The result was an inconsistent state of the pending frames
counter followed by a failure to remove the station.
This failure triggered SYSASSERT 0x3421.

In addition, fix a situation in DQA mode where the number
of pending frames turned negative. This was due to the TX queue
being on the IWL_EMPTYING_HW_QUEUE_DELBA state and its frames
were still decremented.

Even though the SYSASSERT issue is fixed when DQA is disabled,
the issue is not completely solved when DQA is enabled and
should still be fixed.

Signed-off-by: Oren Givon <oren.givon@intel.com>
Fixes: 6bd4ce7b371b ("iwlwifi: mvm: support dqa-mode agg on non-shared queue")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c