comparison gsm-fw/g23m-gsm/rr/rr_srv.c @ 745:74cfa6727aa3

rr_srv.c compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 05 Oct 2014 22:38:19 +0000
parents 2f7df7a314f8
children
comparison
equal deleted inserted replaced
744:20bb8855c015 745:74cfa6727aa3
20 */ 20 */
21 21
22 #ifndef RR_SRV_C 22 #ifndef RR_SRV_C
23 #define RR_SRV_C 23 #define RR_SRV_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>
86 { 90 {
87 TRACE_EVENT ("Buffer overrun"); 91 TRACE_EVENT ("Buffer overrun");
88 return FALSE; 92 return FALSE;
89 } 93 }
90 94
91
92 /* 95 /*
93 * Else store the primitive 96 * Else store the primitive
94 */ 97 */
95 TRACE_EVENT ("save prim"); 98 TRACE_EVENT ("save prim");
96 99
329 | PROJECT : GSM-PS (6147) MODULE : RR_SRV | 332 | PROJECT : GSM-PS (6147) MODULE : RR_SRV |
330 | STATE : code ROUTINE : srv_compare_used_frequency_bands | 333 | STATE : code ROUTINE : srv_compare_used_frequency_bands |
331 +---------------------------------------------------------------------------+ 334 +---------------------------------------------------------------------------+
332 335
333 PURPOSE : Looks at the frequency bands which were used and compares 336 PURPOSE : Looks at the frequency bands which were used and compares
334 them with the supported bands. Checks if the MA spans more 337 them with the supported bands. Checks if the MA spans more
335 then one band (exception is the EGSM part). 338 then one band (exception is the EGSM part).
336 339
337 */ 340 */
338 341
339 LOCAL int srv_compare_used_frequency_bands (int frequency_bands_used) 342 LOCAL int srv_compare_used_frequency_bands (int frequency_bands_used)
340 { 343 {
397 frequency hopping list. If the n-th bit of the mobile 400 frequency hopping list. If the n-th bit of the mobile
398 allocation is set to one, the n-th channel in the channel list 401 allocation is set to one, the n-th channel in the channel list
399 is member of the frequency hopping list. 402 is member of the frequency hopping list.
400 403
401 e.g: channel list has the members 10,20,30,40,50,60,70 and 404 e.g: channel list has the members 10,20,30,40,50,60,70 and
402 in the mobile allocation the bits 1,3 and 4 are set : 405 in the mobile allocation the bits 1,3 and 4 are set:
403 406
404 channel list: 10 20 30 40 50 60 70 407 channel list: 10 20 30 40 50 60 70
405 mobile allocation: 0 1 0 1 1 0 0 408 mobile allocation: 0 1 0 1 1 0 0
406 409
407 that means the hopping list is 20, 40, 50. 410 that means the hopping list is 20, 40, 50.
494 freq_band_used = freq_band_used | EXT_BAND_USED; 497 freq_band_used = freq_band_used | EXT_BAND_USED;
495 } 498 }
496 } 499 }
497 500
498 return srv_compare_used_frequency_bands(freq_band_used); 501 return srv_compare_used_frequency_bands(freq_band_used);
499
500 } 502 }
501 503
502 504
503 /* 505 /*
504 +----------------------------------------------------------------------+ 506 +----------------------------------------------------------------------+
505 | PROJECT : GSM-PS (6147) MODULE : RR_SRV | 507 | PROJECT : GSM-PS (6147) MODULE : RR_SRV |
506 | STATE : code ROUTINE : srv_check_frequencies_in_list| 508 | STATE : code ROUTINE : srv_check_frequencies_in_list|
507 +----------------------------------------------------------------------+ 509 +----------------------------------------------------------------------+
508 510
509 PURPOSE : Checks used frequencies and returns. Returns number 511 PURPOSE : Checks used frequencies and returns. Returns number
510 of frequencies used. 512 of frequencies used.
511 513
512 */ 514 */
513 515
514 GLOBAL int srv_check_frequencies_in_list(T_LIST *clist) 516 GLOBAL int srv_check_frequencies_in_list(T_LIST *clist)
515 { 517 {
516 int frequency_bands_used = 0; 518 int frequency_bands_used = 0;
517 int i; 519 int i;
518 520
519 TRACE_FUNCTION ("srv_check_frequencies_in_list()"); 521 TRACE_FUNCTION ("srv_check_frequencies_in_list()");
520
521 522
522 /* 523 /*
523 * Depending on the frequency standard 524 * Depending on the frequency standard
524 */ 525 */
525 switch (std) 526 switch (std)