FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-aci/aci/cmh_gppps.c @ 775:eedbf248bac0
gsm-fw/g23m-aci subtree: initial import from LoCosto source
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 12 Oct 2014 01:45:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
774:40a721fd9854 | 775:eedbf248bac0 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : | |
4 | Modul : | |
5 +----------------------------------------------------------------------------- | |
6 | Copyright 2002 Texas Instruments Berlin, AG | |
7 | All rights reserved. | |
8 | | |
9 | This file is confidential and a trade secret of Texas | |
10 | Instruments Berlin, AG | |
11 | The receipt of or possession of this file does not convey | |
12 | any rights to reproduce or disclose its contents or to | |
13 | manufacture, use, or sell anything it may describe, in | |
14 | whole, or in part, without the specific written consent of | |
15 | Texas Instruments Berlin, AG. | |
16 +----------------------------------------------------------------------------- | |
17 | Purpose : This module provides the set functions related to the | |
18 | protocol stack adapter for GPRS Point-to-Point Protocol ( PPP ). | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #if defined (GPRS) && defined (DTI) | |
23 | |
24 #ifndef CMH_PPPS_C | |
25 #define CMH_PPPS_C | |
26 #endif | |
27 | |
28 #include "aci_all.h" | |
29 /*==== INCLUDES ===================================================*/ | |
30 #include "dti.h" /* functionality of the dti library */ | |
31 #include "aci_cmh.h" | |
32 | |
33 #include "dti_conn_mng.h" | |
34 | |
35 #include "gaci.h" | |
36 #include "psa.h" | |
37 #include "psa_gppp.h" | |
38 #include "cmh.h" | |
39 #include "cmh_gppp.h" | |
40 | |
41 /*==== CONSTANTS ==================================================*/ | |
42 | |
43 /*==== EXPORT =====================================================*/ | |
44 | |
45 /*==== VARIABLES ==================================================*/ | |
46 | |
47 /*==== FUNCTIONS ==================================================*/ | |
48 | |
49 /* | |
50 +-------------------------------------------------------------------+ | |
51 | PROJECT : GPRS (8441) MODULE : PSA_PPPS | | |
52 | STATE : finished ROUTINE : sAT_PercentCGPPP | | |
53 +-------------------------------------------------------------------+ | |
54 | |
55 PURPOSE : set authentification protocol. | |
56 | |
57 */ | |
58 | |
59 GLOBAL T_ACI_RETURN sAT_PercentCGPPP( T_ACI_CMD_SRC srcId, | |
60 T_ACI_PPP_PROT protocol ) | |
61 { | |
62 | |
63 /* | |
64 *------------------------------------------------------------------- | |
65 * process protocol parameter | |
66 *------------------------------------------------------------------- | |
67 */ | |
68 | |
69 switch( protocol ) | |
70 { | |
71 case( A_NO_AUTH ): | |
72 gpppShrdPrm.ppp_authentication_protocol = PPP_AP_NO; | |
73 break; | |
74 | |
75 case( A_PAP ): | |
76 gpppShrdPrm.ppp_authentication_protocol = PPP_AP_PAP; | |
77 break; | |
78 | |
79 case( A_CHAP ): | |
80 gpppShrdPrm.ppp_authentication_protocol = PPP_AP_CHAP; | |
81 break; | |
82 | |
83 case( A_AUTO_AUTH ): | |
84 gpppShrdPrm.ppp_authentication_protocol = PPP_AP_AUTO; | |
85 break; | |
86 | |
87 default: | |
88 ACI_ERR_DESC( ACI_ERR_CLASS_Ext, EXT_ERR_Parameter ); | |
89 return( AT_FAIL ); | |
90 } | |
91 | |
92 return( AT_CMPL ); | |
93 } | |
94 | |
95 /* | |
96 +-------------------------------------------------------------------+ | |
97 | PROJECT : GPRS (8441) MODULE : PSA_PPPS | | |
98 | STATE : finished ROUTINE : qAT_PercentCGPPP | | |
99 +-------------------------------------------------------------------+ | |
100 | |
101 PURPOSE : query authentification protocol. | |
102 | |
103 */ | |
104 | |
105 GLOBAL T_ACI_RETURN qAT_PercentCGPPP( T_ACI_CMD_SRC srcId, | |
106 T_ACI_PPP_PROT *protocol ) | |
107 { | |
108 | |
109 TRACE_FUNCTION ("qAT_PercentCGPPP()"); | |
110 | |
111 *protocol = (T_ACI_PPP_PROT)gpppShrdPrm.ppp_authentication_protocol; | |
112 | |
113 return (AT_CMPL); | |
114 } | |
115 | |
116 #endif /* GPRS */ | |
117 /*==== EOF ========================================================*/ |