summaryrefslogtreecommitdiff
path: root/asn1
diff options
context:
space:
mode:
Diffstat (limited to 'asn1')
-rw-r--r--asn1/nbap/packet-nbap-template.c22
-rw-r--r--asn1/nbap/packet-nbap-template.h19
2 files changed, 23 insertions, 18 deletions
diff --git a/asn1/nbap/packet-nbap-template.c b/asn1/nbap/packet-nbap-template.c
index 7838181e67..213005e686 100644
--- a/asn1/nbap/packet-nbap-template.c
+++ b/asn1/nbap/packet-nbap-template.c
@@ -238,6 +238,28 @@ guint8 lchId_type_table[]= {
MAC_CONTENT_PS_DTCH, /* 14 Interactive PS => DTCH*/
MAC_CONTENT_CCCH /* This is CCCH? */
};
+
+/* Mapping logicalchannel id to RLC_MODE */
+guint8 lchId_rlc_map[] = {
+ 0,
+ RLC_UM, /* Logical channel id = 1 is SRB1 which uses RLC_UM*/
+ RLC_AM,
+ RLC_AM,
+ RLC_AM,
+ RLC_TM, /*5 to 7 Conv CS Speech*/
+ RLC_TM,
+ RLC_TM, /*...*/
+ RLC_AM,
+ RLC_AM,
+ RLC_AM,
+ RLC_AM,
+ RLC_AM,
+ RLC_AM,
+ RLC_AM,
+ RLC_AM, /* This is CCCH which is UM?, probably not */
+};
+
+
/* Preference variables */
/* Array with preference variables for easy looping, TODO: merge this with
* lchId_type_table[] */
diff --git a/asn1/nbap/packet-nbap-template.h b/asn1/nbap/packet-nbap-template.h
index a4fd456af8..b3cc1a74a2 100644
--- a/asn1/nbap/packet-nbap-template.h
+++ b/asn1/nbap/packet-nbap-template.h
@@ -35,24 +35,7 @@
extern guint8 lchId_type_table[];
/* Mapping logicalchannel id to RLC_MODE */
-static const guint8 lchId_rlc_map[] = {
- 0,
- RLC_UM, /* Logical channel id = 1 is SRB1 which uses RLC_UM*/
- RLC_AM,
- RLC_AM,
- RLC_AM,
- RLC_TM, /*5 to 7 Conv CS Speech*/
- RLC_TM,
- RLC_TM, /*...*/
- RLC_AM,
- RLC_AM,
- RLC_AM,
- RLC_AM,
- RLC_AM,
- RLC_AM,
- RLC_AM,
- RLC_AM, /* This is CCCH which is UM?, probably not */
- };
+extern guint8 lchId_rlc_map[];
/* 1 to 8*/
static const guint8 hsdsch_macdflow_id_rlc_map[] = {