MBIM: Fix the offset to RSRP and SNR buffer of MBIM_SIGNAL_STATE_INFO_V2

This commit is contained in:
Odysseus Yang 2022-05-06 10:22:52 -07:00 committed by A Wireshark GitLab Utility
parent d9ec48a759
commit 8f4d38b776
1 changed files with 2 additions and 2 deletions

View File

@ -4098,9 +4098,9 @@ mbim_dissect_signal_state_info(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_mbim_signal_state_info_rsrp_snr_size, tvb, offset, 4, ENC_LITTLE_ENDIAN, &rsrp_snr_size);
if (rsrp_snr_offset && rsrp_snr_size) {
offset += 4;
proto_tree_add_item_ret_uint(tree, hf_mbim_signal_state_info_elem_count, tvb, offset, 4, ENC_LITTLE_ENDIAN, &elem_count);
offset = base_offset + rsrp_snr_offset;
proto_tree_add_item_ret_uint(tree, hf_mbim_signal_state_info_elem_count, tvb, offset, 4, ENC_LITTLE_ENDIAN, &elem_count);
offset += 4;
for (i = 0; i < elem_count; i++) {
offset += signal_state_elem_size * i;
subtree = proto_tree_add_subtree_format(tree, tvb, offset, signal_state_elem_size, ett_mbim_pair_list, NULL, "RSRP SNR Info #%u", i + 1);