FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-gsm/alr/alr_dedi.c @ 678:a7865809c863
alr_dedi.c compiles
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 29 Sep 2014 05:51:26 +0000 |
parents | 2f7df7a314f8 |
children |
comparison
equal
deleted
inserted
replaced
677:a71671d8c2db | 678:a7865809c863 |
---|---|
18 +----------------------------------------------------------------------------- | 18 +----------------------------------------------------------------------------- |
19 */ | 19 */ |
20 | 20 |
21 #ifndef ALR_DEDI_C | 21 #ifndef ALR_DEDI_C |
22 #define ALR_DEDI_C | 22 #define ALR_DEDI_C |
23 | |
24 #include "config.h" | |
25 #include "fixedconf.h" | |
26 #include "condat-features.h" | |
23 | 27 |
24 #define ENTITY_PL | 28 #define ENTITY_PL |
25 | 29 |
26 /*==== INCLUDES ===================================================*/ | 30 /*==== INCLUDES ===================================================*/ |
27 #include <string.h> | 31 #include <string.h> |
527 sizeof (T_channel_desc)); | 531 sizeof (T_channel_desc)); |
528 memcpy (&chan_ass->frequency_list, | 532 memcpy (&chan_ass->frequency_list, |
529 &alr_data->dedi_data.old_frequency_list, | 533 &alr_data->dedi_data.old_frequency_list, |
530 sizeof (T_frequency_list)); | 534 sizeof (T_frequency_list)); |
531 | 535 |
532 /* | 536 /* |
533 * convert channel numbers if needed | 537 * convert channel numbers if needed |
534 */ | 538 */ |
535 if (dedi_conversion_needed ()) | 539 if (dedi_conversion_needed ()) |
536 { | 540 { |
537 dedi_convert_chan_desc ((T_channel_desc *)&chan_ass->channel_desc_1); | 541 dedi_convert_chan_desc ((T_channel_desc *)&chan_ass->channel_desc_1); |
1602 memcpy (set_ciph->new_ciph_param.A, ciph_req->ciph.kc, KC_STRING_SIZE); | 1606 memcpy (set_ciph->new_ciph_param.A, ciph_req->ciph.kc, KC_STRING_SIZE); |
1603 #ifdef FF_L23_A5_3 | 1607 #ifdef FF_L23_A5_3 |
1604 dedi_cyclically_repeat_kc ((UBYTE *)set_ciph->new_ciph_param.A, (UBYTE *)ciph_req->ciph.kc, KLEN); | 1608 dedi_cyclically_repeat_kc ((UBYTE *)set_ciph->new_ciph_param.A, (UBYTE *)ciph_req->ciph.kc, KLEN); |
1605 #endif | 1609 #endif |
1606 | 1610 |
1607 | |
1608 | |
1609 alr_data->dedi_data.act_cipher_mode = set_ciph->cipher_mode; | 1611 alr_data->dedi_data.act_cipher_mode = set_ciph->cipher_mode; |
1610 alr_data->dedi_data.act_a5_algorithm = set_ciph->a5_algorithm; | 1612 alr_data->dedi_data.act_a5_algorithm = set_ciph->a5_algorithm; |
1611 memcpy (&alr_data->dedi_data.act_cipher_key, | 1613 memcpy (&alr_data->dedi_data.act_cipher_key, |
1612 &set_ciph->new_ciph_param, KC_STRING_SIZE); | 1614 &set_ciph->new_ciph_param, KC_STRING_SIZE); |
1613 #ifdef FF_L23_A5_3 | 1615 #ifdef FF_L23_A5_3 |
1805 | PROJECT : GSM-PS (8403) MODULE : alr_DEDI | | 1807 | PROJECT : GSM-PS (8403) MODULE : alr_DEDI | |
1806 | STATE : code ROUTINE : dedi_fill_ma | | 1808 | STATE : code ROUTINE : dedi_fill_ma | |
1807 +--------------------------------------------------------------------+ | 1809 +--------------------------------------------------------------------+ |
1808 | 1810 |
1809 PURPOSE : Fills a frequency list for layer 1. | 1811 PURPOSE : Fills a frequency list for layer 1. |
1810 Condatīs representation is a list of USHORT with | 1812 Condat's representation is a list of USHORT with |
1811 0xFFFF as delimiter. | 1813 0xFFFF as delimiter. |
1812 TIīs representation is different from this. | 1814 TI's representation is different from this. |
1813 | 1815 |
1814 */ | 1816 */ |
1815 | 1817 |
1816 LOCAL void dedi_fill_ma (USHORT * ma, | 1818 LOCAL void dedi_fill_ma (USHORT * ma, |
1817 T_frequency_list * rf) | 1819 T_frequency_list * rf) |
1919 | PROJECT : GSM-PS (8403) MODULE : alr_DEDI | | 1921 | PROJECT : GSM-PS (8403) MODULE : alr_DEDI | |
1920 | STATE : code ROUTINE : dedi_channel_mode | | 1922 | STATE : code ROUTINE : dedi_channel_mode | |
1921 +--------------------------------------------------------------------+ | 1923 +--------------------------------------------------------------------+ |
1922 | 1924 |
1923 PURPOSE : The function converts the channel mode representation | 1925 PURPOSE : The function converts the channel mode representation |
1924 from Condatīs notation (equal to GSM) to TIīs values. | 1926 from Condat's notation (equal to GSM) to TI's values. |
1925 | 1927 |
1926 */ | 1928 */ |
1927 | 1929 |
1928 LOCAL UBYTE dedi_channel_mode (UBYTE channel_mode, UBYTE channel_type) | 1930 LOCAL UBYTE dedi_channel_mode (UBYTE channel_mode, UBYTE channel_type) |
1929 { | 1931 { |