Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iwlwifi: dbg_ini: fix bad ini tlv parsing

Add a break at the end of the ini tlv case.
Fix both the internal and external tlv parsing.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Shahar S Matityahu and committed by
Kalle Valo
19de2fa8 9517d448

+2
+1
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
··· 201 201 case IWL_UCODE_TLV_TYPE_TRIGGERS: 202 202 case IWL_UCODE_TLV_TYPE_DEBUG_FLOW: 203 203 iwl_fw_dbg_copy_tlv(trans, tlv, true); 204 + break; 204 205 default: 205 206 WARN_ONCE(1, "Invalid TLV %x\n", tlv_type); 206 207 break;
+1
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
··· 1097 1097 case IWL_UCODE_TLV_TYPE_DEBUG_FLOW: 1098 1098 if (iwlwifi_mod_params.enable_ini) 1099 1099 iwl_fw_dbg_copy_tlv(drv->trans, tlv, false); 1100 + break; 1100 1101 default: 1101 1102 IWL_DEBUG_INFO(drv, "unknown TLV: %d\n", tlv_type); 1102 1103 break;