changeset 50:3557ef98f013

l1_async.c: l1a_idle_smscb_process() reconstructed
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 05 Mar 2016 00:59:10 +0000
parents a92e07daf86a
children 33a5b7300113
files chipsetsw/layer1/cfile/l1_async.c
diffstat 1 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_async.c	Sat Mar 05 00:03:42 2016 +0000
+++ b/chipsetsw/layer1/cfile/l1_async.c	Sat Mar 05 00:59:10 2016 +0000
@@ -5124,10 +5124,10 @@
   UWORD8                *state      = &l1a.state[I_SMSCB];
   UWORD32                SignalCode = msg->SignalCode;
 
-  UWORD32                first_block_0 =0;
-  UWORD32                first_block_1= 0;
-  BOOL                   extended_cbch =FALSE; //oamps00090550
-  T_CBCH_HEAD_SCHEDULE  *cbch_schedule_ptr= NULL ;
+  UWORD32                first_block_0;
+  UWORD32                first_block_1;
+  BOOL                   extended_cbch;
+  T_CBCH_HEAD_SCHEDULE  *cbch_schedule_ptr;
   UWORD8                 schedule_length;
 
   BOOL end_process = 0;
@@ -5443,9 +5443,10 @@
             return;
           }
         }
-          else
-          if(SignalCode == L1C_DEDIC_DONE)
-          {
+#if 0	/* match TCS211 */
+        else
+        if(SignalCode == L1C_DEDIC_DONE)
+        {
             // Stop SMSCB task.
             l1a_l1s_com.l1s_en_task[SMSCB] = TASK_DISABLED;
 
@@ -5457,8 +5458,8 @@
 
 	    // Step in state machine.
            *state = RESET;        
-
-        }
+        }
+#endif
 
         else
         // No action in this machine for other messages.
@@ -5472,8 +5473,6 @@
 
       case SET_SCHEDULE:
       {
-        if(cbch_schedule_ptr != NULL)
-        {
         UWORD8  i,j;
         UWORD8  mf51_offset;
 
@@ -5527,7 +5526,7 @@
 
         // Step in state machine.
         *state = WAIT_RESULT;
-       }
+
         // End of process.
         return;
       }
@@ -5558,7 +5557,8 @@
         }
 
         else
-        if((SignalCode == MPHC_STOP_CBCH_REQ)||(SignalCode == L1C_DEDIC_DONE))
+        //if((SignalCode == MPHC_STOP_CBCH_REQ)||(SignalCode == L1C_DEDIC_DONE))
+        if(SignalCode == MPHC_STOP_CBCH_REQ)
         // Request to (may be partially) STOP reading the CBCH.
         //-----------------------------------------------------
         {