]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iwlwifi: mvm: write the correct internal TXF index
authorGolan Ben-Ami <golan.ben.ami@intel.com>
Wed, 15 Jun 2016 06:16:24 +0000 (09:16 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:18 +0000 (15:21 +0200)
commitb50c78a11e371e93b6d9956e89cdafcfc11e1923
tree4779bb6ed3855ec4978944bdfe1fe44f61dd467f
parentaba2ee27a10ff52a0bf47e1a32b45b09c6b42d49
iwlwifi: mvm: write the correct internal TXF index

commit e7c9bd1cc632e924a69bf704385484386bb10933 upstream.

The TX fifos are arranged consecutively in the SMEM, beginning
with the regular fifos, and tailed by the internal fifos.
In the current code, while trying to read the internal fifos,
we read the fifos beginning with the index zero.
By doing this we actually re-read the regular fifos.

In order to read the internal fifos, start the reading index
from the number of regular fifos configured by the fw.

Signed-off-by: Golan Ben-Ami <golan.ben.ami@intel.com>
Fixes: 39654cb3a6a2 ("iwlwifi: don't access a nonexistent register upon assert")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c