]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: yoyo: don't add TLV offset when reading FIFOs
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Fri, 6 Mar 2020 13:16:24 +0000 (15:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Mar 2020 13:26:32 +0000 (15:26 +0200)
commitdd11a964bc1eb850903ddc83c7e9845e31bcb102
tree9ec8a095d64d72f0c8feaa99b29a2f31f5047f57
parent2a9a10de1213d23c94b1ffe33588dc6e8367357e
iwlwifi: yoyo: don't add TLV offset when reading FIFOs

The TLV offset is only used to read registers, while the offset used for
the FIFO addresses are hard coded in the driver and not given by the
TLV.

If we try to apply the TLV offset when reading the FIFOs, we'll read
from invalid addresses, causing the driver to hang.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Fixes: 9fbd5d4950a5 ("iwlwifi: dbg_ini: implement Rx fifos dump")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200306151129.fbab869c26fa.I4ddac20d02f9bce41855a816aa6855c89bc3874e@changeid
drivers/net/wireless/intel/iwlwifi/fw/dbg.c