iwlwifi: pnvm: accept multiple HW-type TLVs
authorJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jul 2021 12:01:56 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 08:09:26 +0000 (10:09 +0200)
commitbe37f7dbcd2c706c30b6ff10332fb7fd37211fbe
tree20c9d9878ece76dd982d164ae3a46cda2dbf6201
parent9a6a5602c2176b5ff68c9075f2c7b2aabe0d59b8
iwlwifi: pnvm: accept multiple HW-type TLVs

[ Upstream commit 0f673c16c850250db386537a422c11d248fb123c ]

Some products (So) may have two different types of products
with different mac-type that are otherwise equivalent, and
have the same PNVM data, so the PNVM file will contain two
(or perhaps later more) HW-type TLVs. Accept the file and
use the data section that contains any matching entry.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210719140154.a6a86e903035.Ic0b1b75c45d386698859f251518e8a5144431938@changeid
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c