comparison gsm-fw/g23m-gsm/rr/rr_attp.c @ 733:d01d6b3ac2a9

rr_attp.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 05 Oct 2014 03:12:20 +0000
parents 68693b72670b
children
comparison
equal deleted inserted replaced
732:a6f45d948d22 733:d01d6b3ac2a9
20 */ 20 */
21 21
22 #ifndef RR_ATTP_C 22 #ifndef RR_ATTP_C
23 #define RR_ATTP_C 23 #define RR_ATTP_C
24 24
25 #include "config.h"
26 #include "fixedconf.h"
27 #include "condat-features.h"
28
25 #define ENTITY_RR 29 #define ENTITY_RR
26 30
27 /*==== INCLUDES ===================================================*/ 31 /*==== INCLUDES ===================================================*/
28 32
29 #include <string.h> 33 #include <string.h>
188 * that means the synchronisation to the BS is lost 192 * that means the synchronisation to the BS is lost
189 */ 193 */
190 TRACE_EVENT ("downlink failure"); 194 TRACE_EVENT ("downlink failure");
191 EM_DOWNLINK_FAILURE; 195 EM_DOWNLINK_FAILURE;
192 196
193
194 /* 197 /*
195 * try the next candidate for the cell reselection 198 * try the next candidate for the cell reselection
196 */ 199 */
197 att_continue_cell_reselect () ; 200 att_continue_cell_reselect () ;
198 break; 201 break;
226 * The synchronisation to the BS is lost. 229 * The synchronisation to the BS is lost.
227 */ 230 */
228 TRACE_EVENT ("radio link failure"); 231 TRACE_EVENT ("radio link failure");
229 232
230 /* 233 /*
231 * dynamic configuration command : IHO 234 * dynamic configuration command : IHO
232 * Lock the DUT to the cell it is already camping - 235 * Lock the DUT to the cell it is already camping -
233 * Ignore the Radio Link Failures. 236 * Ignore the Radio Link Failures.
234 */ 237 */
235 238
236 if(rr_data->dyn_config.iho AND (rr_data->sc_data.ch_mode EQ CM_AMR)) 239 if(rr_data->dyn_config.iho AND (rr_data->sc_data.ch_mode EQ CM_AMR))
655 */ 658 */
656 mph_measurement_ind->rx_lev_sub = mph_measurement_ind->rx_lev_full; 659 mph_measurement_ind->rx_lev_sub = mph_measurement_ind->rx_lev_full;
657 memcpy (&rr_data->ms_data.measurement_report, mph_measurement_ind, 660 memcpy (&rr_data->ms_data.measurement_report, mph_measurement_ind,
658 sizeof (T_MPH_MEASUREMENT_IND)); 661 sizeof (T_MPH_MEASUREMENT_IND));
659 662
660 /* L1 always report BCCH RXLev as Zero in Connection Establishment mode, so copy 663 /* L1 always report BCCH RXLev as Zero in Connection Establishment
661 * BCCH RXLev as receivied level (rx_lev_full). 664 * mode, so copy BCCH RXLev as receivied level (rx_lev_full).
662 * This will be used when we go into dedicated mode 665 * This will be used when we go into dedicated mode
663 * And comback to Idle mode within 480MS Or 666 * And comback to Idle mode within 480MS Or
664 * Dedicated mode was very-short duration and 667 * Dedicated mode was very-short duration and
665 * RR didn't receive any valid measurement report into 668 * RR didn't receive any valid measurement report into
666 * dedicate mode. If we don't do this Cell-Reselction 669 * dedicate mode. If we don't do this Cell-Reselction
766 break; 769 break;
767 #ifdef GPRS 770 #ifdef GPRS
768 } 771 }
769 #endif 772 #endif
770 /*lint -fallthrough*/ 773 /*lint -fallthrough*/
771 774
772 case ATT_CS1: 775 case ATT_CS1:
773 if ( GET_STATE (STATE_CELL_SEL) EQ CS_IDLE_ACTIVE ) 776 if ( GET_STATE (STATE_CELL_SEL) EQ CS_IDLE_ACTIVE )
774 { 777 {
775 #ifdef GPRS 778 #ifdef GPRS
776 if(rr_activate_req->gprs_indication AND 779 if(rr_activate_req->gprs_indication AND
911 if GPRS is not activated */ 914 if GPRS is not activated */
912 att_handle_rr_act_req (FALSE, rr_activate_req); 915 att_handle_rr_act_req (FALSE, rr_activate_req);
913 #else 916 #else
914 att_handle_rr_act_req (FALSE, rr_activate_req); 917 att_handle_rr_act_req (FALSE, rr_activate_req);
915 #endif 918 #endif
916 919 break;
917 break;
918
919 920
920 default: 921 default:
921 PFREE (rr_activate_req); 922 PFREE (rr_activate_req);
922 break; 923 break;
923 } 924 }
1044 (rr_sync_req->op.ts << SHIFT_FOR_SIM_TYPE) + 1045 (rr_sync_req->op.ts << SHIFT_FOR_SIM_TYPE) +
1045 (rr_sync_req->op.m << SHIFT_FOR_SEARCH_OFFSET) + 1046 (rr_sync_req->op.m << SHIFT_FOR_SEARCH_OFFSET) +
1046 (rr_sync_req->op.sim_ins << SHIFT_FOR_SIM_INSERTED); 1047 (rr_sync_req->op.sim_ins << SHIFT_FOR_SIM_INSERTED);
1047 att_set_func (rr_sync_req->op.func); 1048 att_set_func (rr_sync_req->op.func);
1048 1049
1049
1050 switch (GET_STATE (STATE_ATT)) 1050 switch (GET_STATE (STATE_ATT))
1051 { 1051 {
1052 case ATT_NO_SERVICE: 1052 case ATT_NO_SERVICE:
1053 case ATT_IDLE: 1053 case ATT_IDLE:
1054 case ATT_CON_EST: 1054 case ATT_CON_EST:
1135 1135
1136 default: 1136 default:
1137 break;/*state*/ 1137 break;/*state*/
1138 }/*STATE_ATT*/ 1138 }/*STATE_ATT*/
1139 1139
1140
1141 switch (rr_sync_req->synccs) 1140 switch (rr_sync_req->synccs)
1142 { 1141 {
1143 case SYNCCS_EPLMN_LIST: 1142 case SYNCCS_EPLMN_LIST:
1144 /* 1143 /*
1145 * If sync info contains an EPLMN list 1144 * If sync info contains an EPLMN list
1174 * forbidden lai list. 1173 * forbidden lai list.
1175 */ 1174 */
1176 att_add_to_forb_list (FORBIDDEN_LIST_NORMAL, 1175 att_add_to_forb_list (FORBIDDEN_LIST_NORMAL,
1177 &rr_sync_req->plmn, 1176 &rr_sync_req->plmn,
1178 rr_sync_req->lac); 1177 rr_sync_req->lac);
1179 /* Specifications 24.008 (section 4.4.4.7) - 1178 /* Specifications 24.008 (section 4.4.4.7) -
1180 * # 12: (Location Area not allowed); 1179 * # 12: (Location Area not allowed);
1181 * The MS shall perform a cell selection when back to the MM IDLE state 1180 * The MS shall perform a cell selection when back to the MM IDLE state
1182 * according to 3GPP TS 03.22 and 3GPP TS 25.304. 1181 * according to 3GPP TS 03.22 and 3GPP TS 25.304.
1183 */ 1182 */
1184 rr_data->ms_data.req_mm_service = FUNC_NET_SRCH_BY_MMI; 1183 rr_data->ms_data.req_mm_service = FUNC_NET_SRCH_BY_MMI;