From b8f8421def14bf9d23643e22900ee061fb2b50d6 Mon Sep 17 00:00:00 2001 From: wetterwa <wetterwa@eurecom.fr> Date: Thu, 26 Sep 2013 10:05:27 +0000 Subject: [PATCH] Update to support 2 mobiles. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4168 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_ascontrol.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_ascontrol.c b/openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_ascontrol.c index 57d58432db..5bace491d7 100755 --- a/openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_ascontrol.c +++ b/openair2/NAS/DRIVER/CELLULAR/NASMT/nasmt_ascontrol.c @@ -673,6 +673,7 @@ void nasmt_ASCTL_DC_decode_sig_data_ind(struct cx_entity *cx, struct nas_ue_dc_e void nasmt_ASCTL_DC_decode_rb_establish_ind(struct cx_entity *cx, struct nas_ue_dc_element *p){ //--------------------------------------------------------------------------- struct rb_entity *rb; + int hard_coded_rbId = 3; // Start debug information #ifdef NAS_DEBUG_DC @@ -687,7 +688,10 @@ void nasmt_ASCTL_DC_decode_rb_establish_ind(struct cx_entity *cx, struct nas_ue_ return; } // End debug information - rb=nasmt_COMMON_search_rb(cx, p->nasUEDCPrimitive.rb_release_ind.rbId); + // TEMP -MW - 26/9/13- Overwrite the rb_id sent by RRC + p->nasUEDCPrimitive.rb_establish_ind.rbId = hard_coded_rbId; + // TEMP -MW - 26/9/13- Rest should be kept unchanged + rb=nasmt_COMMON_search_rb(cx, p->nasUEDCPrimitive.rb_establish_ind.rbId); if (rb==NULL){ rb=nasmt_COMMON_add_rb(cx, p->nasUEDCPrimitive.rb_establish_ind.rbId, p->nasUEDCPrimitive.rb_establish_ind.QoSclass); rb->state=NAS_RB_DCH; @@ -715,6 +719,7 @@ void nasmt_ASCTL_DC_decode_rb_release_ind(struct cx_entity *cx, struct nas_ue_dc //--------------------------------------------------------------------------- struct rb_entity *rb; u8 dscp; + int hard_coded_rbId = 3; // Start debug information #ifdef NAS_DEBUG_DC @@ -725,7 +730,9 @@ void nasmt_ASCTL_DC_decode_rb_release_ind(struct cx_entity *cx, struct nas_ue_dc return; } // End debug information - + // TEMP -MW - 26/9/13- Overwrite the rb_id sent by RRC + p->nasUEDCPrimitive.rb_release_ind.rbId = hard_coded_rbId; + // TEMP -MW - 26/9/13- Rest should be kept unchanged rb=nasmt_COMMON_search_rb(cx, p->nasUEDCPrimitive.rb_release_ind.rbId); if (rb!=NULL){ #ifdef NAS_DEBUG_DC -- 2.26.2