iwlwifi: dbg_ini: use linked list to store debug TLVs
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Mon, 10 Jun 2019 13:14:20 +0000 (16:14 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Sep 2019 12:31:18 +0000 (15:31 +0300)
commit40b7d22d1f0e9697bb78c9da377e06efa925d035
tree898fb6b578dcb3090bdb1cfaaa02ea02d10f0a7a
parentccdc3d6d15555b170a977e9dd82c5e9db465f10a
iwlwifi: dbg_ini: use linked list to store debug TLVs

Use a linked list to maintain the debug TLVs instead of a single buffer.
This way, the driver does not need to iterate over the binary file twice
and allocates smaller chunks of memory. Also, in case one allocation
fails the driver will work with the partial configuration instead of
aborting the entire debug configuration.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.h
drivers/net/wireless/intel/iwlwifi/iwl-drv.c