diff chipsetsw/layer1/cfile/l1_ctl.c @ 86:b30f037829cf

l1_ctl.c: l1ctl_encode_delta1() reconstructed
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Thu, 07 Apr 2016 01:03:38 +0000
parents eca8d5f642fd
children 33c16c173666
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_ctl.c	Thu Apr 07 00:49:43 2016 +0000
+++ b/chipsetsw/layer1/cfile/l1_ctl.c	Thu Apr 07 01:03:38 2016 +0000
@@ -1816,6 +1816,8 @@
 #if(L1_FF_MULTIBAND == 0)
 WORD8 l1ctl_encode_delta1(UWORD16 radio_freq)
 {
+  WORD8 freq_band;
+
   switch(l1_config.std.id)
   {
     case GSM:
@@ -1823,17 +1825,18 @@
     case DCS1800:
     case PCS1900:
     case GSM850:
-      return(l1_config.std.cal_freq1_band1);
+      freq_band = l1_config.std.cal_freq1_band1;
+      break;
     case DUAL:
     case DUALEXT:
     case DUAL_US:
       if(radio_freq >= l1_config.std.first_radio_freq_band2)
-        return(l1_config.std.cal_freq1_band2);
+        freq_band = l1_config.std.cal_freq1_band2;
       else
-        return(l1_config.std.cal_freq1_band1);
+        freq_band = l1_config.std.cal_freq1_band1;
+      break;
   }
-return 0;//omaps00090550
-
+  return(freq_band);
 }
 #endif
 /*-------------------------------------------------------*/