mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi/fw
Luca Coelho ff11a8ee2d iwlwifi: pnvm: increment the pointer before checking the TLV
If the SKU_ID doesn't match, we don't increment the pointer and keep
checking the same TLV over and over again.

We need to increment the pointer in all situtations, namely if the TLV
is not a SKU_ID, if the SKU_ID matched or if the SKU_ID didn't match.
So we can increment the pointer already before checking for these
conditions to solve the problem.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Fixes: 6972592850 ("iwlwifi: read and parse PNVM file")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210210172142.de94d366f3ff.I9a5a54906cf0f4ec8af981d6066bfd771152ffb9@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2021-02-11 01:57:39 +02:00
..
api iwlmvm: set properly NIC_NOT_ACK_ENABLED flag 2021-02-11 01:52:11 +02:00
acpi.c iwlwifi: acpi: add support for DSM RFI 2021-02-11 01:52:06 +02:00
acpi.h iwlwifi: acpi: add support for DSM RFI 2021-02-11 01:52:06 +02:00
dbg.c iwlwifi: mvm: Check ret code for iwl_mvm_load_nvm_to_nic 2021-02-11 01:52:09 +02:00
dbg.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
debugfs.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
error-dump.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
file.h iwlwifi: mvm: add RFI-M support 2021-02-11 01:52:06 +02:00
img.c iwlwifi: fw: add default value for iwl_fw_lookup_cmd_ver 2020-10-01 21:59:37 +03:00
img.h iwlwifi: parse phy integration string from FW TLV 2021-02-05 11:55:17 +02:00
init.c iwlwifi: fwrt: add suspend/resume time point 2021-02-05 11:57:42 +02:00
notif-wait.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
notif-wait.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
paging.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
pnvm.c iwlwifi: pnvm: increment the pointer before checking the TLV 2021-02-11 01:57:39 +02:00
pnvm.h iwlwifi: move PNVM implementation to common code 2020-10-08 20:14:58 +03:00
runtime.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
smem.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00