]> git.baikalelectronics.ru Git - kernel.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)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 6 Jul 2016 06:52:44 +0000 (09:52 +0300)
commitb49658535f57bc2c6dd776f42d8069a7bd5023d7
treea309fb75b54cf0d75e47c765617b0a73c08acbab
parentc15def67c621abff1ce770639a1ccf5b09608493
iwlwifi: mvm: write the correct internal TXF index

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: d0e9f5e8f293 ("iwlwifi: don't access a nonexistent register upon assert")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c