comparison gsm-fw/g23m-aci/aci/cmh_smss.c @ 799:9b2ed89a1adc

aci: cmh_sms?.c compile
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 05 Apr 2015 00:38:21 +0000
parents eedbf248bac0
children b0ac0b8d2d85
comparison
equal deleted inserted replaced
798:28f24c230edd 799:9b2ed89a1adc
21 21
22 #ifndef CMH_SMSS_C 22 #ifndef CMH_SMSS_C
23 #define CMH_SMSS_C 23 #define CMH_SMSS_C
24 #endif 24 #endif
25 25
26 #include "config.h"
27 #include "fixedconf.h"
28 #include "condat-features.h"
29 #include "aci_conf.h"
30
26 #include "aci_all.h" 31 #include "aci_all.h"
27 /*==== INCLUDES ===================================================*/ 32 /*==== INCLUDES ===================================================*/
28 #include "aci_cmh.h" 33 #include "aci_cmh.h"
29 #include "ati_cmd.h" 34 #include "ati_cmd.h"
30 #include "aci_cmd.h" 35 #include "aci_cmd.h"
46 #include "psa_sms.h" 51 #include "psa_sms.h"
47 #include "psa_mmi.h" 52 #include "psa_mmi.h"
48 #include "cmh.h" 53 #include "cmh.h"
49 #include "cmh_sms.h" 54 #include "cmh_sms.h"
50 #include "pcm.h" 55 #include "pcm.h"
51 #include "Phb.h" 56 #include "phb.h"
52 #include "cmh_phb.h" 57 #include "cmh_phb.h"
53 58
54 #ifdef SIM_TOOLKIT 59 #ifdef SIM_TOOLKIT
55 #include "psa_sim.h" 60 #include "psa_sim.h"
56 #include "psa_cc.h" 61 #include "psa_cc.h"
720 { 725 {
721 ACI_ERR_DESC( ACI_ERR_CLASS_Cms, CMS_ERR_NoCnmaAckExpect ); 726 ACI_ERR_DESC( ACI_ERR_CLASS_Cms, CMS_ERR_NoCnmaAckExpect );
722 return ( AT_FAIL ); 727 return ( AT_FAIL );
723 } 728 }
724 } 729 }
725 730 #endif /* SMS_PDU_SUPPORT */
726
727
728 #endif
729
730
731 731
732 /* 732 /*
733 +-------------------------------------------------------------------+ 733 +-------------------------------------------------------------------+
734 | PROJECT : GSM-PS (6147) MODULE : CMH_SMSS | 734 | PROJECT : GSM-PS (6147) MODULE : CMH_SMSS |
735 | STATE : code ROUTINE : sAT_PlusCNMI | 735 | STATE : code ROUTINE : sAT_PlusCNMI |
789 *----------------------------------------------------------------- 789 *-----------------------------------------------------------------
790 * process the <mt> parameter, cmd set 790 * process the <mt> parameter, cmd set
791 *----------------------------------------------------------------- 791 *-----------------------------------------------------------------
792 */ 792 */
793 if ( mt EQ CNMI_MT_NotPresent ) 793 if ( mt EQ CNMI_MT_NotPresent )
794
795 chkMt = smsShrdPrm.CNMImt; 794 chkMt = smsShrdPrm.CNMImt;
796
797 else 795 else
798
799 chkMt = mt; 796 chkMt = mt;
800 797
801 /* 798 /*
802 *----------------------------------------------------------------- 799 *-----------------------------------------------------------------
803 * process the <bm> parameter, prm set 800 * process the <bm> parameter, prm set
819 *----------------------------------------------------------------- 816 *-----------------------------------------------------------------
820 * process the <bm> parameter, cmd set 817 * process the <bm> parameter, cmd set
821 *----------------------------------------------------------------- 818 *-----------------------------------------------------------------
822 */ 819 */
823 if ( bm EQ CNMI_BM_NotPresent ) 820 if ( bm EQ CNMI_BM_NotPresent )
824
825 chkBm = smsShrdPrm.CNMIbm; 821 chkBm = smsShrdPrm.CNMIbm;
826
827 else 822 else
828
829 chkBm = bm; 823 chkBm = bm;
830 824
831 /* 825 /*
832 *----------------------------------------------------------------- 826 *-----------------------------------------------------------------
833 * process the <ds> parameter, prm set 827 * process the <ds> parameter, prm set
848 *----------------------------------------------------------------- 842 *-----------------------------------------------------------------
849 * process the <ds> parameter, cmd set 843 * process the <ds> parameter, cmd set
850 *----------------------------------------------------------------- 844 *-----------------------------------------------------------------
851 */ 845 */
852 if ( ds EQ CNMI_DS_NotPresent ) 846 if ( ds EQ CNMI_DS_NotPresent )
853
854 chkDs = smsShrdPrm.CNMIds; 847 chkDs = smsShrdPrm.CNMIds;
855
856 else 848 else
857
858 chkDs = ds; 849 chkDs = ds;
859 850
860 /* 851 /*
861 *----------------------------------------------------------------- 852 *-----------------------------------------------------------------
862 * copy parameter 853 * copy parameter
1165 TRACE_FUNCTION ("sAT_PercentCMGS () with udh"); 1156 TRACE_FUNCTION ("sAT_PercentCMGS () with udh");
1166 1157
1167 return sAT_PlusCMGS_Gl(srcId, da, toda, src_data, udh_data, sca, tosca, 1158 return sAT_PlusCMGS_Gl(srcId, da, toda, src_data, udh_data, sca, tosca,
1168 isReply, rAT_PlusCMGS, rAT_PlusCMS); 1159 isReply, rAT_PlusCMGS, rAT_PlusCMS);
1169 } 1160 }
1161
1162 /*
1163 * The following function has been conditioned out for the FreeCalypso build
1164 * as it was failing compilation; it does not appear in the TCS211 version;
1165 * to be investigated later.
1166 */
1167
1168 #if 0
1170 GLOBAL T_ACI_RETURN sAT_PlusCMGS_byPort( T_ACI_CMD_SRC srcId, 1169 GLOBAL T_ACI_RETURN sAT_PlusCMGS_byPort( T_ACI_CMD_SRC srcId,
1171 CHAR* da, 1170 CHAR* da,
1172 T_ACI_TOA* toda, 1171 T_ACI_TOA* toda,
1173 T_SM_DATA_EXT* src_data, 1172 T_SM_DATA_EXT* src_data,
1174 CHAR* sca, 1173 CHAR* sca,
1224 { 1223 {
1225 return sAT_PlusCMGS_Gl(srcId, da, toda, &tar_data, NULL, sca, tosca, 1224 return sAT_PlusCMGS_Gl(srcId, da, toda, &tar_data, NULL, sca, tosca,
1226 isReply, rAT_PlusCMGS, rAT_PlusCMS); 1225 isReply, rAT_PlusCMGS, rAT_PlusCMS);
1227 } 1226 }
1228 } 1227 }
1229 1228 #endif
1230 1229
1231 /* 1230 /*
1232 +-------------------------------------------------------------------+ 1231 +-------------------------------------------------------------------+
1233 | PROJECT : GSM-PS (6147) MODULE : CMH_SMSS | 1232 | PROJECT : GSM-PS (6147) MODULE : CMH_SMSS |
1234 | STATE : code ROUTINE : sAT_PlusCMGS_Gl | 1233 | STATE : code ROUTINE : sAT_PlusCMGS_Gl |
1580 1579
1581 1580
1582 #if defined SMI OR defined MFW OR defined FF_MMI_RIV 1581 #if defined SMI OR defined MFW OR defined FF_MMI_RIV
1583 smsShrdPrm.rplyCB.cmgs = rAT_PlusCMGS; 1582 smsShrdPrm.rplyCB.cmgs = rAT_PlusCMGS;
1584 smsShrdPrm.errorCB = rAT_PlusCMS; 1583 smsShrdPrm.errorCB = rAT_PlusCMS;
1585 #endif /* defined SMI OR defined MFW OR defined FF_MMI_RIV */ 1584 #endif /* defined SMI OR defined MFW OR defined FF_MMI_RIV */
1586 1585
1587 /* 1586 /*
1588 *------------------------------------------------------------------- 1587 *-------------------------------------------------------------------
1589 * create and send primitive for SMS submit 1588 * create and send primitive for SMS submit
1590 *------------------------------------------------------------------- 1589 *-------------------------------------------------------------------
1726 /* 1725 /*
1727 ** Ensure that the SMS parameters are reset, so that the SMS Entity is freed to 1726 ** Ensure that the SMS parameters are reset, so that the SMS Entity is freed to
1728 ** process the command later. 1727 ** process the command later.
1729 */ 1728 */
1730 smsShrdPrm.smsEntStat.curCmd = AT_CMD_NONE; 1729 smsShrdPrm.smsEntStat.curCmd = AT_CMD_NONE;
1731 smsShrdPrm.owner = (T_OWN)CMD_SRC_NONE; 1730 smsShrdPrm.owner = (T_OWN)CMD_SRC_NONE;
1732 smsShrdPrm.smsEntStat.entOwn = CMD_SRC_NONE; 1731 smsShrdPrm.smsEntStat.entOwn = CMD_SRC_NONE;
1733 1732
1734 return( AT_EXCT ); 1733 return( AT_EXCT );
1735 } 1734 }
1736 #endif /* TI_PS_FF_AT_P_CMD_CUST */ 1735 #endif /* TI_PS_FF_AT_P_CMD_CUST */