From 44c5c69d0411eac63676e69468d9e36cd83882d8 Mon Sep 17 00:00:00 2001 From: Martin Mathieson Date: Tue, 27 May 2008 11:13:57 +0000 Subject: [PATCH] Fix max pdu size in hsdsch alloc type 2. svn path=/trunk/; revision=25385 --- epan/dissectors/packet-umts_fp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c index 2ed8ffa211..fd329fd5a9 100644 --- a/epan/dissectors/packet-umts_fp.c +++ b/epan/dissectors/packet-umts_fp.c @@ -846,7 +846,7 @@ int dissect_hsdpa_capacity_allocation(packet_info *pinfo, proto_tree *tree, offset++; /* Max MAC-d PDU length (13 bits) */ - max_pdu_length = (tvb_get_ntohs(tvb, offset) >> 3); + max_pdu_length = tvb_get_ntohs(tvb, offset) >> 3; proto_tree_add_item(tree, hf_fp_hsdsch_max_macd_pdu_len, tvb, offset, 2, FALSE); offset++; @@ -934,7 +934,7 @@ int dissect_hsdpa_capacity_allocation_type_2(packet_info *pinfo, proto_tree *tre /* 5 spare bits follow here */ /* Max MAC-d/c PDU length (11 bits) */ - max_pdu_length = (tvb_get_ntohs(tvb, offset) >> 3); + max_pdu_length = tvb_get_ntohs(tvb, offset) & 0x7ff; proto_tree_add_item(tree, hf_fp_hsdsch_max_macdc_pdu_len, tvb, offset, 2, FALSE); offset += 2;