aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lte-rrc.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-05-08 00:47:37 +0200
committerAnders Broman <a.broman58@gmail.com>2014-05-08 06:29:21 +0000
commit4eaf1c82c58c10e19658405b2e96e8249e9aad33 (patch)
treef0b8131d76a64657b12ea8d50cae7eaaa141fd55 /epan/dissectors/packet-lte-rrc.c
parent83528805ad41f9e1e0494a0f43bc3f3dc407d1c5 (diff)
MAC LTE: get extended BSR sizes configuration from RRC
Change-Id: I09afa7c17be5e0ed902a2c2f5ea9989df3380615 Reviewed-on: https://code.wireshark.org/review/1550 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-lte-rrc.c')
-rw-r--r--epan/dissectors/packet-lte-rrc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/dissectors/packet-lte-rrc.c b/epan/dissectors/packet-lte-rrc.c
index 3be0fa21b3..d5a2a37170 100644
--- a/epan/dissectors/packet-lte-rrc.c
+++ b/epan/dissectors/packet-lte-rrc.c
@@ -13776,9 +13776,19 @@ static const value_string lte_rrc_T_extendedBSR_Sizes_r10_vals[] = {
static int
dissect_lte_rrc_T_extendedBSR_Sizes_r10(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ mac_lte_info* p_mac_lte_info;
+
offset = dissect_per_enumerated(tvb, offset, actx, tree, hf_index,
1, NULL, FALSE, 0, NULL);
+ /* Look for UE identifier */
+ p_mac_lte_info = (mac_lte_info *)p_get_proto_data(wmem_file_scope(), actx->pinfo, proto_mac_lte, 0);
+ if (p_mac_lte_info != NULL) {
+ /* Tell MAC to use extended BSR sizes configuration */
+ set_mac_lte_extended_bsr_sizes(p_mac_lte_info->ueid, TRUE);
+ }
+
+
return offset;
}
@@ -18878,6 +18888,8 @@ dissect_lte_rrc_RRCConnectionSetup(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t
/* We do release the configuration here instead of RRC Connection Release message */
/* as the UE could have locally dropped the previous RRC Connection */
set_mac_lte_drx_config_release(p_mac_lte_info->ueid, actx->pinfo);
+ /* Also tell MAC to release extended BSR sizes configuration */
+ set_mac_lte_extended_bsr_sizes(p_mac_lte_info->ueid, FALSE);
/* TODO: also release PDCP security config here */
}
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index,