changeset 293:c98b6ae0f7f1

l1p_asyn.c: l1pa_transfer_process() reconstructed
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 02 Oct 2017 05:29:02 +0000
parents 51e57732da26
children ff9fbb4a4ecf
files chipsetsw/layer1/p_cfile/l1p_asyn.c
diffstat 1 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/p_cfile/l1p_asyn.c	Mon Oct 02 04:58:02 2017 +0000
+++ b/chipsetsw/layer1/p_cfile/l1p_asyn.c	Mon Oct 02 05:29:02 2017 +0000
@@ -1111,7 +1111,7 @@
             T_TRANSFER_SET  *free_set;
             UWORD8           assignment_command;
             UWORD8           timeslot_alloc;
-            UWORD8           timeslot=0;
+            UWORD8           timeslot;	/* TCS211 reconstruction, =0 in TCS3 */
 
 	// TBF_changes
 
@@ -1314,12 +1314,19 @@
               if ((assignment_command == l1pa_l1ps_com.transfer.tbf_release_param.released_tbf) ||
                   (assignment_command == BOTH_TBF))
               {
-		// Send a "TBF Release confirmation" msg to L3  : CQ 46842
-		l1pa_send_tbf_release_con(MPHP_TBF_RELEASE_CON,l1pa_l1ps_com.transfer.tbf_release_param.released_tbf);
+		/*
+		 * FreeCalypso TCS211 reconstruction: in the LoCosto version
+		 * the call to l1pa_send_tbl_release_con() came first,
+		 * but in the TCS211 object it comes after the two
+		 * assignments.
+		 */
 
                 // Cancel the TBF release order
                 l1pa_l1ps_com.transfer.tbf_release_param.tbf_release_cmd = FALSE;
                 l1pa_l1ps_com.transfer.tbf_release_param.released_tbf    = NO_TBF;
+
+		// Send a "TBF Release confirmation" msg to L3  : CQ 46842
+		l1pa_send_tbf_release_con(MPHP_TBF_RELEASE_CON,l1pa_l1ps_com.transfer.tbf_release_param.released_tbf);
               }
               // If BOTH TBF release order pending and no BOTH TBF assigned
               else if (l1pa_l1ps_com.transfer.tbf_release_param.released_tbf == BOTH_TBF)