Skip to content

Commit 19de2fa

Browse files
Shahar S MatityahuKalle Valo
authored andcommitted
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 <[email protected]> Signed-off-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 9517d44 commit 19de2fa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ static int iwl_parse_fw_dbg_tlv(struct iwl_trans *trans, const u8 *data,
201201
case IWL_UCODE_TLV_TYPE_TRIGGERS:
202202
case IWL_UCODE_TLV_TYPE_DEBUG_FLOW:
203203
iwl_fw_dbg_copy_tlv(trans, tlv, true);
204+
break;
204205
default:
205206
WARN_ONCE(1, "Invalid TLV %x\n", tlv_type);
206207
break;

drivers/net/wireless/intel/iwlwifi/iwl-drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,7 @@ static int iwl_parse_tlv_firmware(struct iwl_drv *drv,
10971097
case IWL_UCODE_TLV_TYPE_DEBUG_FLOW:
10981098
if (iwlwifi_mod_params.enable_ini)
10991099
iwl_fw_dbg_copy_tlv(drv->trans, tlv, false);
1100+
break;
11001101
default:
11011102
IWL_DEBUG_INFO(drv, "unknown TLV: %d\n", tlv_type);
11021103
break;

0 commit comments

Comments
 (0)