iwlwifi: store fw memory segments length and addresses in run-time
authorGolan Ben-Ami <golan.ben.ami@intel.com>
Mon, 14 Mar 2016 10:24:20 +0000 (12:24 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 30 Mar 2016 13:24:50 +0000 (16:24 +0300)
commita6017b9030f280ced61b825757b26f042e0785da
tree87a62dc3ea8272e8442d937ab5b98f2779d9494e
parent8d80717a12c138f3d765d91feab0c08190a21d85
iwlwifi: store fw memory segments length and addresses in run-time

Currently reading the fw memory segments is done according to
addresses and data length that are hard-coded.
Lately a new tlv was appended to the ucode, that contains
the data type, length and address.
Parse this tlv, and in run-time store the memory segments length
and addresses that would be dumped upon a fw error.

Signed-off-by: Golan Ben-Ami <golan.ben.ami@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
drivers/net/wireless/intel/iwlwifi/iwl-fw-file.h
drivers/net/wireless/intel/iwlwifi/iwl-fw.h
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c