FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/cfile/l1_async.c @ 48:854f343761c8
l1_async.c: l1a_neighbour_cell_bcch_reading_process() reconstructed
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Fri, 04 Mar 2016 07:20:26 +0000 |
parents | 138d181bead9 |
children | a92e07daf86a |
comparison
equal
deleted
inserted
replaced
47:138d181bead9 | 48:854f343761c8 |
---|---|
1838 return; | 1838 return; |
1839 } | 1839 } |
1840 | 1840 |
1841 // Look for first free location within L1 structure. | 1841 // Look for first free location within L1 structure. |
1842 while((neigh_number < 6) && (l1a_l1s_com.bcchn.list[neigh_number].status != NSYNC_FREE)) | 1842 while((neigh_number < 6) && (l1a_l1s_com.bcchn.list[neigh_number].status != NSYNC_FREE)) |
1843 { | |
1844 if(neigh_number != 5 ) | |
1845 neigh_number++; | 1843 neigh_number++; |
1846 } | |
1847 | 1844 |
1848 | 1845 |
1849 // Download neighbour info from request message. | 1846 // Download neighbour info from request message. |
1850 //---------------------------------------------- | 1847 //---------------------------------------------- |
1851 | 1848 |
1856 // Sub the serving cell timeslot number to the Neigh./Serving timing | 1853 // Sub the serving cell timeslot number to the Neigh./Serving timing |
1857 // difference to format it for L1S use. | 1854 // difference to format it for L1S use. |
1858 time_alignmt =time_alignmt_mem; | 1855 time_alignmt =time_alignmt_mem; |
1859 fn_offset =fn_offset_mem; | 1856 fn_offset =fn_offset_mem; |
1860 l1a_sub_timeslot(&time_alignmt, &fn_offset, l1a_l1s_com.dl_tn); | 1857 l1a_sub_timeslot(&time_alignmt, &fn_offset, l1a_l1s_com.dl_tn); |
1861 if (neigh_number < 6 ) | |
1862 { | |
1863 | 1858 |
1864 l1a_l1s_com.bcchn.list[neigh_number].radio_freq = ((T_MPHC_NCELL_BCCH_REQ *)(msg->SigP))->radio_freq; | 1859 l1a_l1s_com.bcchn.list[neigh_number].radio_freq = ((T_MPHC_NCELL_BCCH_REQ *)(msg->SigP))->radio_freq; |
1865 l1a_l1s_com.bcchn.list[neigh_number].fn_offset = fn_offset; | 1860 l1a_l1s_com.bcchn.list[neigh_number].fn_offset = fn_offset; |
1866 l1a_l1s_com.bcchn.list[neigh_number].time_alignmt = time_alignmt; | 1861 l1a_l1s_com.bcchn.list[neigh_number].time_alignmt = time_alignmt; |
1867 l1a_l1s_com.bcchn.list[neigh_number].tsc = ((T_MPHC_NCELL_BCCH_REQ *)(msg->SigP))->tsc; | 1862 l1a_l1s_com.bcchn.list[neigh_number].tsc = ((T_MPHC_NCELL_BCCH_REQ *)(msg->SigP))->tsc; |
1876 l1a_l1s_com.bcchn.list[neigh_number].gprs_priority = TOP_PRIORITY; | 1871 l1a_l1s_com.bcchn.list[neigh_number].gprs_priority = TOP_PRIORITY; |
1877 #else | 1872 #else |
1878 l1a_l1s_com.bcchn.list[neigh_number].gprs_priority = NORMAL_PRIORITY; | 1873 l1a_l1s_com.bcchn.list[neigh_number].gprs_priority = NORMAL_PRIORITY; |
1879 #endif | 1874 #endif |
1880 | 1875 |
1881 } | |
1882 // Enable L1S activity on this new neighbour task BCCH. | 1876 // Enable L1S activity on this new neighbour task BCCH. |
1883 if (neigh_number < 6 )//OMAPS00090550 | |
1884 l1a_l1s_com.bcchn.list[neigh_number].status = NSYNC_PENDING; | 1877 l1a_l1s_com.bcchn.list[neigh_number].status = NSYNC_PENDING; |
1885 | 1878 |
1886 l1a_l1s_com.bcchn.current_list_size += 1; | 1879 l1a_l1s_com.bcchn.current_list_size += 1; |
1887 | 1880 |
1888 l1a_l1s_com.l1s_en_task[task] = TASK_ENABLED; | 1881 l1a_l1s_com.l1s_en_task[task] = TASK_ENABLED; |
1977 j=0; | 1970 j=0; |
1978 while(!((radio_freq == l1a_l1s_com.bcchn.list[j].radio_freq) && | 1971 while(!((radio_freq == l1a_l1s_com.bcchn.list[j].radio_freq) && |
1979 (l1a_l1s_com.bcchn.list[j].status != NSYNC_FREE)) && | 1972 (l1a_l1s_com.bcchn.list[j].status != NSYNC_FREE)) && |
1980 (j < 6)) | 1973 (j < 6)) |
1981 { | 1974 { |
1982 if(j < 5 ) //OMAPS00090550 | |
1983 { | |
1984 j++; | 1975 j++; |
1985 } | |
1986 else | |
1987 { | |
1988 j++; | |
1989 break; | |
1990 } | |
1991 } | 1976 } |
1992 | 1977 |
1993 // If found, reset L1 structure for this carrier. | 1978 // If found, reset L1 structure for this carrier. |
1994 if(j<6) | 1979 if(j<6) |
1995 { | 1980 { |