wifi: iwlwifi: pnvm: handle memory descriptor tlv
authorGregory Greenman <gregory.greenman@intel.com>
Tue, 6 Jun 2023 07:43:10 +0000 (10:43 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 11:45:40 +0000 (13:45 +0200)
commit372a714808c8ec4f4ae4915c734d80d7f504997c
treeff3fe81746de64777e663924f89df561a6340d7b
parent8ae3e23195188a925b9a3e05f34f114441d97e14
wifi: iwlwifi: pnvm: handle memory descriptor tlv

When PNVM is obtained from UEFI, there's an additional memory
descriptor TLV that has to be handled. It is the same TLV that
holds data in the reduced power tables. Also, in this TLV, the
actual data is located after address and size, so add the
corresponding offset.

Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230606103519.8c5f5ee8e30b.Id1893c9dec140b5ba4abe8a121c2e1a1d121d2d7@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c
drivers/net/wireless/intel/iwlwifi/fw/uefi.c
drivers/net/wireless/intel/iwlwifi/fw/uefi.h