diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-01-24 16:33:31 +0000 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-01-24 16:33:31 +0000 |
commit | 7a44616a1dfe1355d63d5fb49fcea520ebe76897 (patch) | |
tree | 0f5c6700bc0f9f957679744f1789add747798311 /epan/dissectors/packet-gsm_a_gm.c | |
parent | 3cbe97de5fdf6382894a5da2f3137beb49a7efae (diff) |
Fix dissection of 8PSK Power Capability IE
svn path=/trunk/; revision=54942
Diffstat (limited to 'epan/dissectors/packet-gsm_a_gm.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_gm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsm_a_gm.c b/epan/dissectors/packet-gsm_a_gm.c index 0e8bf7523e..ee13cd3045 100644 --- a/epan/dissectors/packet-gsm_a_gm.c +++ b/epan/dissectors/packet-gsm_a_gm.c @@ -2099,6 +2099,7 @@ de_gmm_ms_radio_acc_cap(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, gui */ bits_needed = 1; GET_DATA; + value = oct>>(32-bits_needed); proto_tree_add_bits_item(tf_tree, hf_gsm_a_gm_rac_8psk_pow_cap_pres, tvb, bit_offset, 1, ENC_BIG_ENDIAN); bit_offset++; @@ -2107,7 +2108,7 @@ de_gmm_ms_radio_acc_cap(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, gui bits_in_oct -= bits_needed; /* analyse bits */ - if ((oct>>(32-bits_needed)) == 1) + if (value == 1) { /* * 8PSK Power Capability |