[Feature][ZXW-33]merge ZXW 0428 version
Change-Id: I11f167edfea428d9fab198ff00ff1364932d1b0b
diff --git a/ap/app/crc/Makefile b/ap/app/crc/Makefile
new file mode 100755
index 0000000..6c1ff73
--- /dev/null
+++ b/ap/app/crc/Makefile
@@ -0,0 +1,41 @@
+#*******************************************************************************
+# include build/common makefile
+# ÒÔÉú³ÉÁ½¸öÓ¦ÓÃΪÀý£¬Èç¹ûÖ»ÓÐÒ»¸öɾ³ýEXEC2 OBJS2¼´¿É
+#*******************************************************************************
+include $(COMMON_MK)
+
+EXEC = crc
+OBJS = crc.o
+#EXEC ÌØÓеÄLIB²ÎÊý
+#LDLIBS_demo1 = -lnvram -L$(LIB_DIR)/libnvram
+
+#EXEC2 = demo2
+#OBJS2 = demo2.o
+#EXEC2 ÌØÓеÄLIB²ÎÊý
+#LDLIBS_demo2 = -lsoft_timer -L$(LIB_DIR)/libsoft_timer
+
+#ºêºÍÍ·ÎļþĿ¼ÔÚCFLAGSÀﶨÒ壬ҪÓÃ+=,²»ÒªÓÃ=,·ñÔò»á¸²¸ÇCOMMON_MKÀïµÄÖµ
+#CFLAGS += -I$(APP_DIR)/include
+
+#EXEC EXEC2 ¹«¹²LIB²ÎÊý£¬µÚÒ»Ðж¨ÒåLDLIBSÓÃ=£¬²»ÒªÓÃ+=,Ó¦ÓÃÁ¬½ÓµÄ¿â¶¼ÔÚ±¾Makefile¶¨Òå
+LDLIBS = -lpthread
+
+#*******************************************************************************
+# targets
+#*******************************************************************************
+all: $(EXEC) $(EXEC2)
+
+$(EXEC): $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+ @cp $@ $@.elf
+
+$(EXEC2): $(OBJS2)
+ $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
+ @cp $@ $@.elf
+
+romfs:
+ $(ROMFSINST) $(EXEC) /bin/$(EXEC)
+######## $(ROMFSINST) $(EXEC2) /bin/$(EXEC2)
+
+clean:
+ -@rm -f $(EXEC) $(EXEC2) *.elf *.gdb *.o
diff --git a/ap/app/crc/crc.c b/ap/app/crc/crc.c
new file mode 100755
index 0000000..ee14405
--- /dev/null
+++ b/ap/app/crc/crc.c
@@ -0,0 +1,498 @@
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <signal.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <string.h>
+#include <errno.h>
+#include <sys/socket.h>
+#include <sys/ioctl.h>
+#include <net/if.h>
+#include <net/if_arp.h>
+#include <netinet/in.h>
+#include <linux/sockios.h>
+//#include <cfg_api.h>
+#include <termios.h>
+#include <sys/prctl.h>
+#include <pthread.h>
+#include <assert.h>
+#include <sys/select.h>
+
+#define UART_DEV "/dev/ttyS0"
+#define ONE_LEN 4095
+typedef unsigned int uint32_t;
+typedef unsigned char uint8_t;
+
+int uart_fd_0 = -1;
+int uart_fd_1 = -1;
+int times = 0;
+int tlen = 0;
+uint8_t dbuf[2100000];
+
+static const uint8_t crc_table[] =
+{
+ 0x00,0x31,0x62,0x53,0xc4,0xf5,0xa6,0x97,0xb9,0x88,0xdb,0xea,0x7d,0x4c,0x1f,0x2e,
+ 0x43,0x72,0x21,0x10,0x87,0xb6,0xe5,0xd4,0xfa,0xcb,0x98,0xa9,0x3e,0x0f,0x5c,0x6d,
+ 0x86,0xb7,0xe4,0xd5,0x42,0x73,0x20,0x11,0x3f,0x0e,0x5d,0x6c,0xfb,0xca,0x99,0xa8,
+ 0xc5,0xf4,0xa7,0x96,0x01,0x30,0x63,0x52,0x7c,0x4d,0x1e,0x2f,0xb8,0x89,0xda,0xeb,
+ 0x3d,0x0c,0x5f,0x6e,0xf9,0xc8,0x9b,0xaa,0x84,0xb5,0xe6,0xd7,0x40,0x71,0x22,0x13,
+ 0x7e,0x4f,0x1c,0x2d,0xba,0x8b,0xd8,0xe9,0xc7,0xf6,0xa5,0x94,0x03,0x32,0x61,0x50,
+ 0xbb,0x8a,0xd9,0xe8,0x7f,0x4e,0x1d,0x2c,0x02,0x33,0x60,0x51,0xc6,0xf7,0xa4,0x95,
+ 0xf8,0xc9,0x9a,0xab,0x3c,0x0d,0x5e,0x6f,0x41,0x70,0x23,0x12,0x85,0xb4,0xe7,0xd6,
+ 0x7a,0x4b,0x18,0x29,0xbe,0x8f,0xdc,0xed,0xc3,0xf2,0xa1,0x90,0x07,0x36,0x65,0x54,
+ 0x39,0x08,0x5b,0x6a,0xfd,0xcc,0x9f,0xae,0x80,0xb1,0xe2,0xd3,0x44,0x75,0x26,0x17,
+ 0xfc,0xcd,0x9e,0xaf,0x38,0x09,0x5a,0x6b,0x45,0x74,0x27,0x16,0x81,0xb0,0xe3,0xd2,
+ 0xbf,0x8e,0xdd,0xec,0x7b,0x4a,0x19,0x28,0x06,0x37,0x64,0x55,0xc2,0xf3,0xa0,0x91,
+ 0x47,0x76,0x25,0x14,0x83,0xb2,0xe1,0xd0,0xfe,0xcf,0x9c,0xad,0x3a,0x0b,0x58,0x69,
+ 0x04,0x35,0x66,0x57,0xc0,0xf1,0xa2,0x93,0xbd,0x8c,0xdf,0xee,0x79,0x48,0x1b,0x2a,
+ 0xc1,0xf0,0xa3,0x92,0x05,0x34,0x67,0x56,0x78,0x49,0x1a,0x2b,0xbc,0x8d,0xde,0xef,
+ 0x82,0xb3,0xe0,0xd1,0x46,0x77,0x24,0x15,0x3b,0x0a,0x59,0x68,0xff,0xce,0x9d,0xac
+};
+
+uint8_t fibo_crc_calc( uint8_t *datain,uint32_t datalen)
+{
+ uint8_t *input = (uint8_t*)datain;
+ uint8_t fcs = (uint8_t)0xFF;
+ int32_t i;
+ for (i = 0; i < (int32_t)datalen; i++)
+ fcs = crc_table[fcs ^ (uint8_t)input[i]];
+
+ return (uint8_t) (0xFF - fcs);
+
+}
+
+void int_handle(int signo)
+{
+ if(signo == SIGINT)
+ {
+ printf("recv signal\n");
+ exit(1);
+ }
+}
+
+int32_t com_Convbaud(uint32_t iBaudrate)
+{
+ switch(iBaudrate)
+ {
+ case 0:
+ return B0;
+ case 50:
+ return B50;
+ case 75:
+ return B75;
+ case 110:
+ return B110;
+ case 134:
+ return B134;
+ case 150:
+ return B150;
+ case 200:
+ return B200;
+ case 300:
+ return B300;
+ case 600:
+ return B600;
+ case 1200:
+ return B1200;
+ case 1800:
+ return B1800;
+ case 2400:
+ return B2400;
+ case 4800:
+ return B4800;
+ case 9600:
+ return B9600;
+ case 19200:
+ return B19200;
+ case 38400:
+ return B38400;
+ case 57600:
+ return B57600;
+ case 115200:
+ return B115200;
+ case 230400:
+ return B230400;
+ case 460800:
+ return B460800;
+ case 500000:
+ return B500000;
+ case 576000:
+ return B576000;
+ case 921600:
+ return B921600;
+ case 1000000:
+ return B1000000;
+ case 1152000:
+ return B1152000;
+ case 1500000:
+ return B1500000;
+ case 2000000:
+ return B2000000;
+ case 2500000:
+ return B2500000;
+ case 3000000:
+ return B3000000;
+ case 3500000:
+ return B3500000;
+ case 4000000:
+ return B4000000;
+ default:
+ return B115200;
+ }
+}
+
+static int com_SetBaud(int32_t iFdCom,int nSpeed)
+{
+ int ret = 0;
+ struct termios tOldTermios = {0};
+ int32_t iBaudrate = 0;
+ bzero(&tOldTermios, sizeof(tOldTermios));
+
+ ret = tcgetattr(iFdCom, &tOldTermios); // get the serial port attributions
+ if(ret)
+ {
+ printf("tcgetattr failed! \n");
+ }
+
+ iBaudrate = com_Convbaud(nSpeed);
+ if(iBaudrate == B115200 && nSpeed != 115200){
+ //got specil baud, not standerd
+ printf("the baud set is not standerd, please call other function to set \n");
+ return 1;
+ }
+ tcflush(iFdCom, TCIOFLUSH);
+ cfsetispeed(&tOldTermios, iBaudrate); //填入串口输入端波特率
+ cfsetospeed(&tOldTermios, iBaudrate); //填入串口输出端波特率
+ if(tcsetattr(iFdCom, TCSANOW, &tOldTermios) != 0) //设置新属性, TCSANOW: 所由改变立即生效
+ {
+ printf("Set vFnSetBaud error. iFd == %d\n", iFdCom);
+ return 1;
+ }
+ tcflush(iFdCom, TCIOFLUSH);
+
+ return 0;
+
+}
+
+static void com_SetnBit(int32_t iFdCom, int nBits)
+{
+ struct termios tOldTermios = {0};
+
+ bzero(&tOldTermios, sizeof(tOldTermios));
+
+ tcgetattr(iFdCom, &tOldTermios); // get the serial port attributions
+
+ switch( nBits )
+ {
+ case 7:
+ tOldTermios.c_cflag |= CS7;
+ break;
+ case 8:
+ default:
+ tOldTermios.c_cflag |= CS8;
+ break;
+ }
+
+ if(tcsetattr(iFdCom, TCSANOW, &tOldTermios) != 0) //设置新属性, TCSANOW: 所由改变立即生效
+ {
+ printf("Set vFnSetnBit error. iFd == %d\n", iFdCom);
+ return;
+ }
+ tcflush(iFdCom, TCIOFLUSH);
+
+}
+
+static void com_SetParity(int32_t iFdCom,char nEvent)
+{
+ struct termios tOldTermios = {0};
+
+ bzero(&tOldTermios, sizeof(tOldTermios));
+
+ tcgetattr(iFdCom, &tOldTermios); // get the serial port attributions
+ switch( nEvent )
+ {
+ case 'O': //奇校验
+ tOldTermios.c_cflag |= PARENB;
+ tOldTermios.c_cflag |= PARODD;
+ tOldTermios.c_iflag |= (INPCK | ISTRIP);
+ break;
+ case 'E': //偶校验
+ tOldTermios.c_iflag |= (INPCK | ISTRIP);
+ tOldTermios.c_cflag |= PARENB;
+ tOldTermios.c_cflag &= ~PARODD;
+ break;
+ case 'N': //无校验
+ default:
+ tOldTermios.c_cflag &= ~PARENB;
+ break;
+ }
+ if(tcsetattr(iFdCom, TCSANOW, &tOldTermios) != 0) //设置新属性, TCSANOW: 所由改变立即生效
+ {
+ printf("Set vFnSetParity error. iFd == %d\n", iFdCom);
+ return;
+ }
+ tcflush(iFdCom, TCIOFLUSH);
+
+}
+
+static void com_SetnStop(int32_t iFdCom, int nStop)
+{
+ struct termios tOldTermios = {0};
+
+ bzero(&tOldTermios, sizeof(tOldTermios));
+
+ tcgetattr(iFdCom, &tOldTermios); // get the serial port attributions
+
+
+ switch( nStop )
+ {
+ case 1:
+ tOldTermios.c_cflag &= ~CSTOPB;
+ break;
+ case 2:
+ tOldTermios.c_cflag |= CSTOPB;
+ break;
+ default:
+ tOldTermios.c_cflag &= ~CSTOPB;
+ break;
+ }
+ if(tcsetattr(iFdCom, TCSANOW, &tOldTermios) != 0) //设置新属性, TCSANOW: 所由改变立即生效
+ {
+ printf("Set vFnSetnStop error. iFd == %d\n", iFdCom);
+ return;
+ }
+ tcflush(iFdCom, TCIOFLUSH);
+
+}
+
+static void com_SetCtrl(int32_t iFdCom, int nCtrl)
+{
+ struct termios tOldTermios = {0};
+
+ bzero(&tOldTermios, sizeof(tOldTermios));
+
+ tcgetattr(iFdCom, &tOldTermios); // get the serial port attributions
+
+ switch(nCtrl)
+ {
+ case 0:
+ {
+ tOldTermios.c_cflag &= ~CRTSCTS; //no flow control
+ tOldTermios.c_iflag |= IGNBRK | IGNPAR;
+ }break;
+ case 1:
+ {
+ tOldTermios.c_cflag |= CRTSCTS; //hardware flow control
+ }break;
+ case 2:
+ {
+ tOldTermios.c_iflag |= IXON | IXOFF | IXANY; //software flow control
+ }break;
+ default:
+ break;
+ }
+
+ if(tcsetattr(iFdCom, TCSANOW, &tOldTermios) != 0) //设置新属性, TCSANOW: 所由改变立即生效
+ {
+ printf("Set vFnSetCtrl error. iFd == %d\n", iFdCom);
+ return;
+ }
+ tcflush(iFdCom, TCIOFLUSH);
+
+ //printf("Set vFnSetCtrl end\n");
+
+}
+
+
+static void com_SetTimeOut(int32_t iFdCom, int iTime)
+{
+ struct termios tOldTermios = {0};
+
+ bzero(&tOldTermios, sizeof(tOldTermios));
+
+ tcgetattr(iFdCom, &tOldTermios); // get the serial port attributions
+
+ tOldTermios.c_cc[VTIME] = iTime;
+ tOldTermios.c_cc[VMIN] = 0;
+
+ if(tcsetattr(iFdCom, TCSANOW, &tOldTermios) != 0) //设置新属性, TCSANOW: 所由改变立即生效
+ {
+ printf("Set TimeOut error. iFd == %d\n", iFdCom);
+ return;
+ }
+ tcflush(iFdCom, TCIOFLUSH);
+
+}
+
+
+static int zUP_SetPort_0(int32_t iFd ,int ctsrts_en, int iBaud, int iDelay)
+{
+ com_SetBaud(iFd, iBaud);
+ com_SetnBit(iFd, 8);
+ com_SetParity(iFd, 'N');
+ //com_SetParity(iFd, 'O');
+ com_SetnStop(iFd,1);
+ com_SetCtrl(iFd,ctsrts_en); //add flow control
+ com_SetTimeOut(iFd,iDelay); //timeout 100ms
+
+ printf("set serial port done!\n");
+
+ return 0;
+}
+
+int block_select_one_time()
+{
+ int ret;
+ fd_set rfds;
+ FD_ZERO(&rfds);
+ FD_SET(uart_fd_0,&rfds);
+
+ ret = select(uart_fd_0+1,&rfds,NULL,NULL,NULL);
+ if(ret == -1)
+ {
+ printf("select error: -1");
+ return 0;
+ }
+ else
+ {
+ return 1;
+ }
+
+ return 1;
+}
+
+void check_one_time()
+{
+ uint8_t crc_board = 0;
+ if((dbuf[0] != 0xA5)||(dbuf[1] != 0x5A)||(dbuf[tlen-2] != 0xD5)||(dbuf[tlen-1] != 0x5D))
+ {
+ printf("head or tail error \n");
+ assert(0);
+ }
+
+ uint8_t* dbuf2 = NULL;
+ dbuf2 = (uint8_t*)malloc(2100000);
+ if(dbuf2 == NULL)
+ {
+ printf("malloc failed!\n");
+ exit(1);
+ }
+
+ memcpy(dbuf2, dbuf+2, tlen-5);
+
+ crc_board = fibo_crc_calc(dbuf2,tlen-5);
+ if(crc_board != dbuf[tlen-3])
+ {
+ printf("crc error, value is %d\n", crc_board);
+ assert(0);
+ }
+
+ printf("----------------------crc pass! value :%d----------------------\n", crc_board);
+
+ if(dbuf2 != NULL)
+ {
+ free(dbuf2);
+ dbuf2 = NULL;
+ }
+}
+
+
+int send_one_time()
+{
+ int len = 0;
+
+ len = write(uart_fd_0, ×, 4);
+ if(len <= 0)
+ {
+ printf("Ack write failed %s\n",strerror(errno));
+ return 0;
+ }
+
+ printf("Ack send success index :%d\n", times);
+ return 1;
+}
+
+
+int read_datas_tty()
+{
+ int recv_len = 0;
+ tlen = 0;
+
+ while(1)
+ {
+ recv_len = read(uart_fd_0, dbuf+tlen, ONE_LEN);
+ if(recv_len == 0)
+ {
+ printf("read end! please wait for this packet's handle\n");
+ break;
+ }
+ else if(recv_len < 0)
+ {
+ printf("read_datas_tty error %s\n",strerror(errno));
+ return 0;
+ }
+ else
+ {
+ tlen += recv_len;
+ }
+ }
+
+ printf("read last time len :%d total len :%d\n",recv_len, tlen);
+ //printf("0 is %#x, 1 is %#x, -3 is %#x, -2 is %#x, -1 is %#x\n",dbuf[0],dbuf[1],dbuf[tlen-3],dbuf[tlen-2],dbuf[tlen-1]);
+
+ return 1;
+}
+
+int main(int argc, char** argv)
+{
+ int ret0 = 0;
+ int baud = atoi(argv[1]);
+ int delay = atoi(argv[2]);
+ printf("crc main programe start...\n");
+
+ signal(SIGINT,int_handle);
+ uart_fd_0 = open("/dev/ttyS0",O_RDWR);
+
+ if(uart_fd_0 < 0)
+ {
+ printf("open uart dev failed :%s\n",strerror(errno));
+ return -1;
+ }
+
+ zUP_SetPort_0(uart_fd_0, 0, baud, delay);
+
+ memset(dbuf,0,2100000);
+ while(1)
+ {
+ ret0 = send_one_time();
+ if(!ret0)
+ {
+ break;
+ }
+
+ if(block_select_one_time())
+ {
+ ret0 = read_datas_tty();
+ if(ret0)
+ {
+ check_one_time();
+ times++;
+ }
+ else
+ {
+ printf("read_datas_tty failed\n");
+ break;
+ }
+ }
+ }
+
+ printf("crc main programe end...\n");
+ close(uart_fd_0);
+ return 1;
+}
+
diff --git a/ap/app/crc_mcu/Makefile b/ap/app/crc_mcu/Makefile
new file mode 100755
index 0000000..5b21450
--- /dev/null
+++ b/ap/app/crc_mcu/Makefile
@@ -0,0 +1,51 @@
+#*******************************************************************************
+# include ZTE application makefile
+#*******************************************************************************
+include $(zte_app_mak)
+include $(COMMON_MK)
+
+#*******************************************************************************
+# execute
+#*******************************************************************************
+EXEC = uartcrc_mcu
+
+#*******************************************************************************
+# objects
+#*******************************************************************************
+OBJS = uartcrc_mcu.o
+
+#*******************************************************************************
+# include path
+#*******************************************************************************
+
+CFLAGS += -I$(zte_app_path)/include
+#CFLAGS += -I$(zte_lib_path)/libnvram
+#CFLAGS += -I$(zte_lib_path)/libsqlite
+#CFLAGS += -I$(zte_lib_path)/libatutils
+#CFLAGS += -I$(zte_lib_path)/libsoftap
+#CFLAGS += -I$(zte_lib_path)/libsoft_timer
+
+
+
+LDLIBS += -lpthread
+#LDLIBS += -lnvram -L$(zte_lib_path)/libnvram
+#LDLIBS += -lsoft_timer -L$(zte_lib_path)/libsoft_timer
+#LDLIBS += -latutils -L$(zte_lib_path)/libatutils
+#LDLIBS += -lsoftap -L$(zte_lib_path)/libsoftap
+
+
+#*******************************************************************************
+# targets
+#*******************************************************************************
+all: $(EXEC)
+
+$(EXEC): $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
+ @cp $@ $@.elf
+
+romfs:
+ $(ROMFSINST) $(EXEC) /bin/$(EXEC)
+
+clean:
+ -rm -f $(EXEC) *.elf *.gdb *.o
+
diff --git a/ap/app/crc_mcu/uartcrc_mcu.c b/ap/app/crc_mcu/uartcrc_mcu.c
new file mode 100755
index 0000000..96e1341
--- /dev/null
+++ b/ap/app/crc_mcu/uartcrc_mcu.c
Binary files differ
diff --git a/ap/app/crc_modem/Makefile b/ap/app/crc_modem/Makefile
new file mode 100755
index 0000000..5890849
--- /dev/null
+++ b/ap/app/crc_modem/Makefile
@@ -0,0 +1,51 @@
+#*******************************************************************************
+# include ZTE application makefile
+#*******************************************************************************
+include $(zte_app_mak)
+include $(COMMON_MK)
+
+#*******************************************************************************
+# execute
+#*******************************************************************************
+EXEC = uartcrc_modem
+
+#*******************************************************************************
+# objects
+#*******************************************************************************
+OBJS = uartcrc_modem.o
+
+#*******************************************************************************
+# include path
+#*******************************************************************************
+
+CFLAGS += -I$(zte_app_path)/include
+#CFLAGS += -I$(zte_lib_path)/libnvram
+#CFLAGS += -I$(zte_lib_path)/libsqlite
+#CFLAGS += -I$(zte_lib_path)/libatutils
+#CFLAGS += -I$(zte_lib_path)/libsoftap
+#CFLAGS += -I$(zte_lib_path)/libsoft_timer
+
+
+
+LDLIBS += -lpthread
+#LDLIBS += -lnvram -L$(zte_lib_path)/libnvram
+#LDLIBS += -lsoft_timer -L$(zte_lib_path)/libsoft_timer
+#LDLIBS += -latutils -L$(zte_lib_path)/libatutils
+#LDLIBS += -lsoftap -L$(zte_lib_path)/libsoftap
+
+
+#*******************************************************************************
+# targets
+#*******************************************************************************
+all: $(EXEC)
+
+$(EXEC): $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) -Wl,--start-group $(LDLIBS) -Wl,--end-group
+ @cp $@ $@.elf
+
+romfs:
+ $(ROMFSINST) $(EXEC) /bin/$(EXEC)
+
+clean:
+ -rm -f $(EXEC) *.elf *.gdb *.o
+
diff --git a/ap/app/crc_modem/uartcrc_modem.c b/ap/app/crc_modem/uartcrc_modem.c
new file mode 100755
index 0000000..261856a
--- /dev/null
+++ b/ap/app/crc_modem/uartcrc_modem.c
Binary files differ
diff --git a/ap/app/goahead/interface5.0/net/zte_web_net_lan.c b/ap/app/goahead/interface5.0/net/zte_web_net_lan.c
index 7b82e59..d98cead 100644
--- a/ap/app/goahead/interface5.0/net/zte_web_net_lan.c
+++ b/ap/app/goahead/interface5.0/net/zte_web_net_lan.c
@@ -352,9 +352,9 @@
break;
}
- slog(MISC_PRINT, SLOG_NORMAL, "zte_set_bind_static_address SEND MESSAGE TO MC START"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "set_bind_static_address SEND MESSAGE TO MC START"); /*lint !e26*/
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_BIND_STATIC_ADDRESS, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_set_bind_static_address SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "set_bind_static_address SEND MESSAGE TO MC END"); /*lint !e26*/
//sc_cfg_save();
zte_write_result_to_web(wp, SUCCESS);
}
@@ -380,9 +380,9 @@
strncpy(static_macip_info.mac, mac,sizeof(static_macip_info.mac)-1);
strncpy(static_macip_info.ip, ip,sizeof(static_macip_info.ip)-1);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_bind_static_address_add SEND MESSAGE TO MC START"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "bind_static_address_add SEND MESSAGE TO MC START"); /*lint !e26*/
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_BIND_STATIC_ADDRESS_ADD, sizeof(struct static_macip_info), (UCHAR *)&static_macip_info, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_bind_static_address_add SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "bind_static_address_add SEND MESSAGE TO MC END"); /*lint !e26*/
Sleep(1);
zte_write_result_to_web(wp, SUCCESS);
}
@@ -397,9 +397,9 @@
return;
}
- slog(MISC_PRINT, SLOG_NORMAL, "zte_bind_static_address_del SEND MESSAGE TO MC START"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "bind_static_address_del SEND MESSAGE TO MC START"); /*lint !e26*/
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_BIND_STATIC_ADDRESS_DEL, strlen(mac), (UCHAR *)mac, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_bind_static_address_del SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "bind_static_address_del SEND MESSAGE TO MC END"); /*lint !e26*/
Sleep(1);
zte_write_result_to_web(wp, SUCCESS);
}
@@ -660,9 +660,9 @@
#endif
free_dhcp_list(&dhcp_info_list);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_add_children_device SEND MESSAGE TO MC START"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "add_children_device SEND MESSAGE TO MC START"); /*lint !e26*/
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_ADD_CHILDREN_DEVICE, sizeof(struct mac_hostname_info), (UCHAR *)&mac_hostname_info, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_add_children_device SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "add_children_device SEND MESSAGE TO MC END"); /*lint !e26*/
Sleep(1);
zte_write_result_to_web(wp, SUCCESS);
}
@@ -677,9 +677,9 @@
return;
}
- slog(MISC_PRINT, SLOG_NORMAL, "zte_del_children_device SEND MESSAGE TO MC START"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "del_children_device SEND MESSAGE TO MC START"); /*lint !e26*/
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_DEL_CHILDREN_DEVICE, strlen(mac), (UCHAR *)mac, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_del_children_device SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "del_children_device SEND MESSAGE TO MC END"); /*lint !e26*/
Sleep(1);
zte_write_result_to_web(wp, SUCCESS);
}
@@ -692,7 +692,7 @@
name = websGetVar(wp, T("name"), T(""));
site = websGetVar(wp, T("site"), T(""));
- slog(NET_PRINT, SLOG_DEBUG, "zte_add_white_site:name= %s, site = %s\n", name, site);
+ slog(NET_PRINT, SLOG_DEBUG, "add_white_site:name= %s, site = %s\n", name, site);
if (!name) {
zte_write_result_to_web(wp, FAILURE);
return;
@@ -705,9 +705,9 @@
strncpy(white_site.name, name, sizeof(white_site.name)-1);
strncpy(white_site.site, site, sizeof(white_site.site)-1);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_add_white_site SEND MESSAGE TO MC START"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "add_white_site SEND MESSAGE TO MC START"); /*lint !e26*/
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_ADD_WHITE_SITE, sizeof(struct white_site_info), (UCHAR *)&white_site, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_add_white_site SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "add_white_site SEND MESSAGE TO MC END"); /*lint !e26*/
Sleep(1);
zte_write_result_to_web(wp, SUCCESS);
}
@@ -722,16 +722,16 @@
return;
}
- slog(MISC_PRINT, SLOG_NORMAL, "zte_remove_white_site SEND MESSAGE TO MC START"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "remove_white_site SEND MESSAGE TO MC START"); /*lint !e26*/
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_REMOVE_WHITE_SITE, strlen(ids), (UCHAR *)ids, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_remove_white_site SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "remove_white_site SEND MESSAGE TO MC END"); /*lint !e26*/
Sleep(1);
zte_write_result_to_web(wp, SUCCESS);
}
void zte_get_children_device_list(webs_t wp)
{
- slog(NET_PRINT, SLOG_NORMAL, "zte_get_children_device_list start!\n");
+ slog(NET_PRINT, SLOG_NORMAL, "get_children_device_list start!\n");
FILE *chilren_device_file = NULL;
char line[200] = {0};
char mac[18] = {0};
@@ -783,7 +783,7 @@
void zte_get_white_site_list(webs_t wp)
{
- slog(NET_PRINT, SLOG_ERR, "zte_get_white_site_list start!\n");
+ slog(NET_PRINT, SLOG_ERR, "get_white_site_list start!\n");
FILE *white_site_file = NULL;
char line[600] = {0};
unsigned int id = 1;
@@ -853,7 +853,7 @@
char_t *dev_name = NULL;
LAN_INFO_t lan_info;
- slog(MISC_PRINT, SLOG_NORMAL, "zte_get_lan_dev_info enter \n");
+ slog(MISC_PRINT, SLOG_NORMAL, "get_lan_dev_info enter \n");
//ÏȽèÓÿª»úʱ¼ä°Ñ¿ò¼Ü´îºÃ, elseµÄÆ´½ÓÓÐÎÊÌ⣬ÔÝʱ²»Ìṩwebserver¸ø¿Í»§£¬
//´Ë¹¦ÄÜÓëstation_list/wifi_station_list¹¦ÄÜÓÐÖØµþ£¬ºóÐøÓÅ»¯³ÉͳһµÄ
#if 1
@@ -865,10 +865,10 @@
zte_rest_cmd_write_head(wp);
zte_rest_cmd_write_int(wp, "poweron_time", cur_time, 0);
zte_rest_cmd_write_foot(wp);
- slog(MISC_PRINT, SLOG_DEBUG,"zte_get_lan_dev_info cur_time:%lu \n", cur_time);
+ slog(MISC_PRINT, SLOG_DEBUG,"get_lan_dev_info cur_time:%lu \n", cur_time);
#else
dev_name = websGetVar(wp, "dev_name", T(""));
- printf(LOG_INFO, "zte_get_lan_dev_info dev:%s \n", dev_name);
+ printf(LOG_INFO, "get_lan_dev_info dev:%s \n", dev_name);
if ('\0' == (*dev_name)) {
return;
}
@@ -876,8 +876,8 @@
if (get_laninfo_byname(dev_name, &lan_info) == -1)
return;
- printf(LOG_INFO, "zte_get_lan_dev_info mac:%02x:%02x:%02x:%02x:%02x:%02x \n", lan_info.mac[0], lan_info.mac[1], lan_info.mac[2], lan_info.mac[3], lan_info.mac[4], lan_info.mac[5]);
- printf(LOG_INFO, "zte_get_lan_dev_info ip:%lu, host:%s, dev:%s, remain:%d, last:%d \n", lan_info.ip, lan_info.host_name, lan_info.dev_name, lan_info.time_remain, lan_info.time_last);
+ printf(LOG_INFO, "get_lan_dev_info mac:%02x:%02x:%02x:%02x:%02x:%02x \n", lan_info.mac[0], lan_info.mac[1], lan_info.mac[2], lan_info.mac[3], lan_info.mac[4], lan_info.mac[5]);
+ printf(LOG_INFO, "get_lan_dev_info ip:%lu, host:%s, dev:%s, remain:%d, last:%d \n", lan_info.ip, lan_info.host_name, lan_info.dev_name, lan_info.time_remain, lan_info.time_last);
web_feedback_header(wp);
zte_rest_cmd_write_head(wp);
zte_rest_cmd_write_int(wp, "mac", lan_info.mac, 1);
diff --git a/ap/app/goahead/interface5.0/net/zte_web_net_other.c b/ap/app/goahead/interface5.0/net/zte_web_net_other.c
index de459aa..c1b6120 100755
--- a/ap/app/goahead/interface5.0/net/zte_web_net_other.c
+++ b/ap/app/goahead/interface5.0/net/zte_web_net_other.c
@@ -62,8 +62,8 @@
fclose(usb_mac_file);
}
- //printf("zte_is_usb_mac stored usbmac %x %x %x %x %x %x\n",usb_mac[0],usb_mac[1],usb_mac[2],usb_mac[3],usb_mac[4],usb_mac[5]);
- //printf("zte_is_usb_mac lease mac %x %x %x %x %x %x\n",mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]);
+ //printf("is_usb_mac stored usbmac %x %x %x %x %x %x\n",usb_mac[0],usb_mac[1],usb_mac[2],usb_mac[3],usb_mac[4],usb_mac[5]);
+ //printf("is_usb_mac lease mac %x %x %x %x %x %x\n",mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]);
for (i = 0; i < 6; i++) {
@@ -96,13 +96,13 @@
return;
}
- slog(MISC_PRINT, SLOG_DEBUG, "zte_mtu_set new_mtu= %s\n", new_mtu);
+ slog(MISC_PRINT, SLOG_DEBUG, "mtu_set new_mtu= %s\n", new_mtu);
(void)zte_web_write("mtu", new_mtu);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_mtu_set MESSAGE TO MC START");
+ slog(MISC_PRINT, SLOG_NORMAL, "mtu_set MESSAGE TO MC START");
//zte_send_message(MODULE_ID_MAIN_CTRL, MSG_CMD_NET_MTU, 0, 0);
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_MTU, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_mtu_set MESSAGE TO MC END");
+ slog(MISC_PRINT, SLOG_DEBUG, "mtu_set MESSAGE TO MC END");
//sc_cfg_save();
@@ -154,7 +154,7 @@
pswan_ipv6_pridns = websGetVar(wp, T("pswan_ipv6_pridns_manual"), T(""));
pswan_ipv6_secdns = websGetVar(wp, T("pswan_ipv6_secdns_manual"), T(""));
- printf("zte_dns_server_set: %s - %s - %s - %s \n", pswan_pridns, pswan_secdns, pswan_ipv6_pridns, pswan_ipv6_secdns);
+ printf("dns_server_set: %s - %s - %s - %s \n", pswan_pridns, pswan_secdns, pswan_ipv6_pridns, pswan_ipv6_secdns);
if ('\0' == (*pswan_pridns) && '\0' == (*pswan_secdns) && '\0' == (*pswan_ipv6_pridns) && '\0' == (*pswan_ipv6_secdns))
{
@@ -197,7 +197,7 @@
mac = websGetVar(wp, T("mac"), T(""));
hostname = websGetVar(wp, T("hostname"), T(""));
- slog(NET_PRINT, SLOG_ERR, "zte_edit_hostname:mac= %s, hostname = %s\n£¬len=%d", mac, hostname, strlen(hostname));
+ slog(NET_PRINT, SLOG_ERR, "edit_hostname:mac= %s, hostname = %s\n£¬len=%d", mac, hostname, strlen(hostname));
if ((strcmp(hostname, "") == 0) || (strlen(mac) != 17)) {
zte_write_result_to_web(wp, FAILURE);
return;
@@ -206,10 +206,10 @@
strncpy(mac_hostname_info.mac, mac,sizeof(mac_hostname_info.mac)-1);
strncpy(mac_hostname_info.hostname, hostname,sizeof(mac_hostname_info.hostname)-1);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_edit_hostname MESSAGE TO MC START");
+ slog(MISC_PRINT, SLOG_NORMAL, "edit_hostname MESSAGE TO MC START");
//zte_send_message(MODULE_ID_MAIN_CTRL, MSG_CMD_NET_GET_HOSTNAME, sizeof(struct mac_hostname_info), (UCHAR *)&mac_hostname_info);
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_GET_HOSTNAME, sizeof(struct mac_hostname_info), (UCHAR *)&mac_hostname_info, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_edit_hostname MESSAGE TO MC END");
+ slog(MISC_PRINT, SLOG_DEBUG, "edit_hostname MESSAGE TO MC END");
Sleep(2);
zte_write_result_to_web(wp, SUCCESS);
}
@@ -342,7 +342,7 @@
//means close , if time_limited is not null, means set
#if 0
if (time_limited == NULL || *time_limited == '\0') {
- printf("zte_parent_control_set: invalid input para\n");/*lint !e26*/
+ printf("parent_control_set: invalid input para\n");/*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -372,7 +372,7 @@
{
unsigned long cur_time;
- slog(MISC_PRINT, SLOG_NORMAL,"zte_get_poweron_time enter \n");
+ slog(MISC_PRINT, SLOG_NORMAL,"get_poweron_time enter \n");
cur_time = time_sec();
@@ -380,6 +380,6 @@
zte_rest_cmd_write_head(wp);
zte_rest_cmd_write_int(wp, "poweron_time", cur_time, 0);
zte_rest_cmd_write_foot(wp);
- slog(MISC_PRINT, SLOG_DEBUG,"zte_get_poweron_time cur_time:%lu \n", cur_time);
+ slog(MISC_PRINT, SLOG_DEBUG,"get_poweron_time cur_time:%lu \n", cur_time);
}
diff --git a/ap/app/goahead/interface5.0/net/zte_web_net_wan.c b/ap/app/goahead/interface5.0/net/zte_web_net_wan.c
index 8cea5ac..6db0229 100755
--- a/ap/app/goahead/interface5.0/net/zte_web_net_wan.c
+++ b/ap/app/goahead/interface5.0/net/zte_web_net_wan.c
@@ -303,9 +303,9 @@
}
//zte_iptables_basic_setting();
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_basic_setting SEND MESSAGE TO MC START"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_basic_setting SEND MESSAGE TO MC START"); /*lint !e26*/
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_IPPORT_FILTER, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_fw_basic_setting SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "fw_basic_setting SEND MESSAGE TO MC END"); /*lint !e26*/
//sc_cfg_save();
zte_write_result_to_web(wp, SUCCESS);
@@ -333,9 +333,9 @@
}
//zte_iptables_basic_setting();
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_forward_setting SEND MESSAGE TO MC START"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_forward_setting SEND MESSAGE TO MC START"); /*lint !e26*/
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_IPPORT_FORWARD, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_fw_forward_setting SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "fw_forward_setting SEND MESSAGE TO MC END"); /*lint !e26*/
//sc_cfg_save();
zte_write_result_to_web(wp, SUCCESS);
@@ -449,7 +449,7 @@
}
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_IPPORT_FILTER, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_ipport_filter_del SEND MESSAGE TO MC END");/*lint !e26*/ /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_ipport_filter_del SEND MESSAGE TO MC END");/*lint !e26*/ /*lint !e26*/
//sc_cfg_save();
//zte_response_json_for_test(wp,"zte_fw_ipport_filter_del","send message to mc");
@@ -528,7 +528,7 @@
}
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_IPPORT_FORWARD, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_port_forward_del SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_port_forward_del SEND MESSAGE TO MC END"); /*lint !e26*/
//zte_response_json_for_test(wp,"zte_fw_port_forward_del","send message to mc");
//sc_cfg_save();
@@ -629,7 +629,7 @@
char *portmap_enable = NULL; /* 0: Disabled 1: Enabled */
char portmap_original[2] = {0}; /* 0: Disabled 1: Enabled */
- slog(MISC_PRINT, SLOG_DEBUG, "enter zte_fw_port_map_add.\n");
+ slog(MISC_PRINT, SLOG_DEBUG, "enter fw_port_map_add.\n");
//port_map setting
portmap_enable = websGetVar(wp, T("portMapEnabled"), T("0"));
@@ -699,7 +699,7 @@
fw_port_map.comment);
(void)zte_web_write(PortMapRules_x, PortMapRules);
flag = 1;
- slog(MISC_PRINT, SLOG_DEBUG, "zte_fw_port_map_add %s: %s\n", PortMapRules_x, PortMapRules);
+ slog(MISC_PRINT, SLOG_DEBUG, "fw_port_map_add %s: %s\n", PortMapRules_x, PortMapRules);
break;
}
}
@@ -710,7 +710,7 @@
}
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_IPPORT_MAPPING, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_port_map_add MESSAGE TO MC END\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_port_map_add MESSAGE TO MC END\n"); /*lint !e26*/
//sc_cfg_save();
zte_write_result_to_web(wp, SUCCESS);
@@ -728,7 +728,7 @@
int flag = 0;
delete_id = websGetVar(wp, "delete_id", "");
- slog(MISC_PRINT, SLOG_DEBUG, "zte_fw_port_map_del delete_id: %s\n", delete_id);
+ slog(MISC_PRINT, SLOG_DEBUG, "fw_port_map_del delete_id: %s\n", delete_id);
if (*delete_id == '\0') {
zte_write_result_to_web(wp, FAILURE);
return;
@@ -787,7 +787,7 @@
}
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_IPPORT_MAPPING, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_port_map_del SEND MESSAGE TO MC END\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_port_map_del SEND MESSAGE TO MC END\n"); /*lint !e26*/
//sc_cfg_save();
zte_write_result_to_web(wp, SUCCESS);
@@ -838,7 +838,7 @@
//zte_iptables_Webs_Filter_Run();
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_URL_FILTER, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_goform_url_filter_add_process MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "goform_url_filter_add_process MESSAGE TO MC END"); /*lint !e26*/
//sc_cfg_save();
@@ -922,7 +922,7 @@
sc_cfg_set("websURLFilters", rules);
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_URL_FILTER, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_goform_url_filter_delete_process MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "goform_url_filter_delete_process MESSAGE TO MC END"); /*lint !e26*/
//sc_cfg_save();
@@ -962,7 +962,7 @@
}
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_DMZ, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_dmz SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_dmz SEND MESSAGE TO MC END"); /*lint !e26*/
//sc_cfg_save();
zte_write_result_to_web(wp, SUCCESS);
@@ -978,7 +978,7 @@
&& 0 == strlen(fw_ipport_filter->dip_1)
&& 0 == strlen(fw_ipport_filter->sprf)
&& 0 == strlen(fw_ipport_filter->dprf)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_fw_ipport_filter_add -> No MAC/IP/Port input!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "fw_ipport_filter_add -> No MAC/IP/Port input!"); /*lint !e26*/
return -1;
}
@@ -991,7 +991,7 @@
if (strlen(fw_ipport_filter->sip_1)) {
if (0 == strcmp(ip_version, IP_VERSION_V4)) {
if (!isIpNetmaskValid(fw_ipport_filter->sip_1)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_fw_ipport_filter_add -> src ip is invalid:[%s]", fw_ipport_filter->sip_1); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "fw_ipport_filter_add -> src ip is invalid:[%s]", fw_ipport_filter->sip_1); /*lint !e26*/
return -1;
}
}
@@ -1003,7 +1003,7 @@
if (strlen(fw_ipport_filter->dip_1)) {
if (0 == strcmp(ip_version, IP_VERSION_V4)) {
if (!isIpNetmaskValid(fw_ipport_filter->dip_1)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_fw_ipport_filter_add -> dest ip is invalid:[%s]", fw_ipport_filter->dip_1); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "fw_ipport_filter_add -> dest ip is invalid:[%s]", fw_ipport_filter->dip_1); /*lint !e26*/
return -1;
}
}
@@ -1150,7 +1150,7 @@
}
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_IPPORT_FILTER, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_ipport_filter_add_v4 SEND MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_ipport_filter_add_v4 SEND MESSAGE TO MC END"); /*lint !e26*/
//zte_response_json_for_test(wp,"zte_fw_ipport_filter_add","send message to mc");
//sc_cfg_save();
@@ -1207,7 +1207,7 @@
}
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_IPPORT_FILTER, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_ipport_filter_add_v6 MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_ipport_filter_add_v6 MESSAGE TO MC END"); /*lint !e26*/
//zte_response_json_for_test(wp,"zte_fw_ipport_filter_add","send message to mc");
@@ -1348,7 +1348,7 @@
}
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_IPPORT_FORWARD, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_port_forward_add MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_port_forward_add MESSAGE TO MC END"); /*lint !e26*/
//sc_cfg_save();
zte_write_result_to_web(wp, SUCCESS);
}
@@ -1534,7 +1534,7 @@
}
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_NET_UPNP, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_fw_upnp_set MESSAGE TO MC END"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "fw_upnp_set MESSAGE TO MC END"); /*lint !e26*/
//sc_cfg_save();
zte_write_result_to_web(wp, SUCCESS);
}
@@ -1757,7 +1757,7 @@
zte_write_result_to_web(wp, FAILURE);
} else {
zte_write_result_to_web(wp, SUCCESS);
- slog(MISC_PRINT, SLOG_NORMAL,"zte_goform_set_operation_mode: send MSG_CMD_RESTART_REQUEST\n");
+ slog(MISC_PRINT, SLOG_NORMAL,"goform_set_operation_mode: send MSG_CMD_RESTART_REQUEST\n");
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_RESTART_REQUEST, 0, NULL, 0);
}
}
diff --git a/ap/app/goahead/interface5.0/other/zte_web_traffic.c b/ap/app/goahead/interface5.0/other/zte_web_traffic.c
index e476ad1..7c19aa1 100755
--- a/ap/app/goahead/interface5.0/other/zte_web_traffic.c
+++ b/ap/app/goahead/interface5.0/other/zte_web_traffic.c
@@ -156,14 +156,14 @@
//ptm = localtime(&now_time);
localtime_r(&now_time, &ptm);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic]zte_traffic_set_end_time:Y->%d;M->%d;D->%d\n", ptm.tm_year, ptm.tm_mon, ptm.tm_mday);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic]traffic_set_end_time:Y->%d;M->%d;D->%d\n", ptm.tm_year, ptm.tm_mon, ptm.tm_mday);
//if(ptm != NULL)
{
snprintf(buf,50, "%d-%02d-%02d_%02d:%02d:%02d", ptm.tm_year + 1900, ptm.tm_mon + 1, ptm.tm_mday, ptm.tm_hour, ptm.tm_min, ptm.tm_sec);
sc_cfg_set(NV_TRAFFIC_END_TIME, buf);
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_set_end_time = %s\n", buf);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_set_end_time = %s\n", buf);
}
void zte_traffic_set_process_result(int result)
@@ -173,10 +173,10 @@
if (result == TRAFFIC_RESULT_FAIL) {
sc_cfg_set(NV_TRAFFIC_RESULT, "failure");
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_set_process_result = fail \r\n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_set_process_result = fail \r\n");
} else {
sc_cfg_set(NV_TRAFFIC_RESULT, "success");
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_set_process_result = success \r\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_set_process_result = success \r\n");
}
time(&now_time);//ÒÔÃëΪµ¥Î»
@@ -302,7 +302,7 @@
{
int i = 0;
int flag = 0;
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_isdigit....srcStr =%s \n", srcStr);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_isdigit....srcStr =%s \n", srcStr);
for (i = 0; i < len; i++) {
if (srcStr[i] >= '0' && srcStr[i] <= '9') {
continue;
@@ -313,9 +313,9 @@
}
if (flag == 0) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_isdigit....content_length is digit \n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_isdigit....content_length is digit \n");
} else {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_isdigit....content_length is not digit, error!!!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_isdigit....content_length is not digit, error!!!\n");
}
return flag;
}
@@ -344,15 +344,15 @@
return TRAFFIC_RESULT_FAIL;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_parse_content....content_length = %s \n", content_length);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_parse_content....content_length = %s \n", content_length);
p1 = strchr(srcStr, '{');
if (p1 == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_parse_content....not correct ,no { ,fail, return \n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_parse_content....not correct ,no { ,fail, return \n");
return TRAFFIC_RESULT_FAIL;
}
int tmplen = atoi(content_length);
if (tmplen >= max_len) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_parse_content....content_length > max_len size\n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_parse_content....content_length > max_len size\n");
memcpy(content, p1, max_len - 1);
} else {
memcpy(content, p1, tmplen);
@@ -360,19 +360,19 @@
} else {
p1 = strchr(srcStr, '{');
if (p1 == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_parse_content....not Content-Length and no { ,fail, return \n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_parse_content....not Content-Length and no { ,fail, return \n");
return TRAFFIC_RESULT_FAIL;
}
p2 = strrchr(srcStr, '}');
if (p2 == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_parse_content....not Content-Length and no } ,fail, return \n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_parse_content....not Content-Length and no } ,fail, return \n");
return TRAFFIC_RESULT_FAIL;
}
len = p2 - p1 + 1;
if (len >= max_len) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_parse_content....len > max_len size\n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_parse_content....len > max_len size\n");
memcpy(content, p1, max_len - 1);
} else {
memcpy(content, p1, len);
@@ -423,7 +423,7 @@
return TRAFFIC_RESULT_FAIL;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_parse_response_state....state = %s \n", state);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_parse_response_state....state = %s \n", state);
return atoi(state);
}
@@ -446,7 +446,7 @@
if (type == 1) {
sc_cfg_get("sim_imsi", (request->imsi), sizeof(request->imsi));
sc_cfg_get("cr_version", (request->version), sizeof(request->version));
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_get_request_param, imsi = %s, version=%s \n", request->imsi, request->version);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_get_request_param, imsi = %s, version=%s \n", request->imsi, request->version);
}
}
@@ -533,13 +533,13 @@
memset(&traffic_first_parse, 0, sizeof(TRAFFIC_FIRST_PARSE));
root = cJSON_Parse(srcStr);
if (root == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] first.. zte_traffic_first_parse_json, root == NULL fail \n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] first.. traffic_first_parse_json, root == NULL fail \n");
return TRAFFIC_RESULT_FAIL;
}
object = cJSON_GetObjectItem(root, "traffic_code");
if (object == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] first.. zte_traffic_first_parse_json, traffic_code == NULL fail \n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] first.. traffic_first_parse_json, traffic_code == NULL fail \n");
cJSON_Delete(root);
return TRAFFIC_RESULT_FAIL;
}
@@ -547,7 +547,7 @@
object = cJSON_GetObjectItem(root, "traffic_number");
if (object == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] first.. zte_traffic_first_parse_json, traffic_number == NULL fail \n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] first.. traffic_first_parse_json, traffic_number == NULL fail \n");
cJSON_Delete(root);
return TRAFFIC_RESULT_FAIL;
}
@@ -556,11 +556,11 @@
traffic_first_parse.traffic_code[19]=0;
traffic_first_parse.traffic_number[19]=0;
if (strlen(traffic_first_parse.traffic_code) == 0 || strlen(traffic_first_parse.traffic_number) == 0) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_web_traffic_parse_json_first...invalid data fail \n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] web_traffic_parse_json_first...invalid data fail \n");
return TRAFFIC_RESULT_FAIL;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_parse_json_first....traffic_code = %s \n", traffic_first_parse.traffic_code);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_parse_json_first....traffic_number = %s \n", traffic_first_parse.traffic_number);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_parse_json_first....traffic_code = %s \n", traffic_first_parse.traffic_code);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_parse_json_first....traffic_number = %s \n", traffic_first_parse.traffic_number);
return TRAFFIC_RESULT_OK;
}
@@ -583,22 +583,22 @@
if (state == 302) {
if (g_traffic_302reponse_retry_count < TRAFFIC_MAX_REQUEST) {
g_traffic_302reponse_retry_count ++;
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_first_parse_response..state = 302, retry_count = %d, continue\n", g_traffic_302reponse_retry_count);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_first_parse_response..state = 302, retry_count = %d, continue\n", g_traffic_302reponse_retry_count);
return TRAFFIC_RESULT_CONTINUE;
}
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_first_parse_response..state = %d, fail\n", state);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_first_parse_response..state = %d, fail\n", state);
return TRAFFIC_RESULT_FAIL;
}
state = zte_traffic_parse_response_content(srcStr, &data, sizeof(data));
if (state == TRAFFIC_RESULT_FAIL) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_first_parse_response..parse_content fail\n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_first_parse_response..parse_content fail\n");
return TRAFFIC_RESULT_FAIL;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_first_parse_response....data = %s \n", data);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_first_parse_response....data = %s \n", data);
return zte_traffic_first_parse_json(&data);
}
@@ -791,11 +791,11 @@
month_used = 0;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_calculate_offset used = %lld\n", used);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_calculate_offset used = %lld\n", used);
offset = used - month_used;
sprintf(buf, "%lld", offset);
sc_cfg_set(NV_TRAFFIC_USED_OFFSET_DATA, buf);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_calculate_offset offset = %s\n", buf);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_calculate_offset offset = %s\n", buf);
//zte_send_message(MODULE_ID_MMI,CB_MSG_MMI_TRAFFIC_INFO_RESET,0, NULL);
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MMI, MSG_CMD_TRAFFIC_INFO_RESET, 0, NULL, 0);
}
@@ -898,12 +898,12 @@
sprintf(data, "%d", total);
sc_cfg_set(NV_DATA_TRAFFIC_MONTH_TOTAL, data);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_save_data total = %s\n", data);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_save_data total = %s\n", data);
memset(data, 0, sizeof(data));
sprintf(data, "%f", all_used);
sc_cfg_set(NV_DATA_TRAFFIC_MONTH_USED, data);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_save_data used = %s\n", data);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_save_data used = %s\n", data);
used = all_used * 1024 * 1024;
zte_traffic_calculate_offset(used);
@@ -931,13 +931,13 @@
memset(&traffic_second_parse, 0, sizeof(TRAFFIC_SECOND_PARSE));
root = cJSON_Parse(srcStr);
if (root == NULL) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. zte_traffic_second_parse_json, root == NULL fail \n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. traffic_second_parse_json, root == NULL fail \n");
return TRAFFIC_RESULT_FAIL;
}
object = cJSON_GetObjectItem(root, "code");
if (object == NULL) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. zte_traffic_second_parse_json, code == NULL fail \n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. traffic_second_parse_json, code == NULL fail \n");
cJSON_Delete(root);
return TRAFFIC_RESULT_FAIL;
}
@@ -945,7 +945,7 @@
traffic_second_parse.code[9]='\0';
object = cJSON_GetObjectItem(root, "msg");
if (object == NULL) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. zte_traffic_second_parse_json, msg == NULL fail\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. traffic_second_parse_json, msg == NULL fail\n");
cJSON_Delete(root);
return TRAFFIC_RESULT_FAIL;
}
@@ -956,7 +956,7 @@
slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second...msg = %s \n", traffic_second_parse.msg);
if (atoi(traffic_second_parse.code) != GET_TRAFFIC_SUCCESS) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. zte_traffic_second_parse_json, msg = %s ,not success\n", traffic_second_parse.msg);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. traffic_second_parse_json, msg = %s ,not success\n", traffic_second_parse.msg);
cJSON_Delete(root);
return TRAFFIC_RESULT_FAIL;
}
@@ -964,7 +964,7 @@
//for data
data = cJSON_GetObjectItem(root, "data");
if (data == NULL) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. zte_traffic_second_parse_json, data == NULL fail \n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] second.. traffic_second_parse_json, data == NULL fail \n");
cJSON_Delete(root);
return TRAFFIC_RESULT_FAIL;
}
@@ -1082,16 +1082,16 @@
state = zte_traffic_parse_response_state(srcStr);
if (state != 200) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_second_parse_response..state != 200 fail\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_second_parse_response..state != 200 fail\n");
return TRAFFIC_RESULT_FAIL;
}
state = zte_traffic_parse_response_content(srcStr, &data, sizeof(data));
if (state == TRAFFIC_RESULT_FAIL) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_second_parse_response..parse_content fail\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_second_parse_response..parse_content fail\n");
return TRAFFIC_RESULT_FAIL;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_second_parse_response....data = %s \n", data);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_second_parse_response....data = %s \n", data);
return zte_traffic_second_parse_json(&data);
}
@@ -1120,7 +1120,7 @@
g_traffic_sms_body = NULL;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_second_get_request_data=============================== \n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_second_get_request_data=============================== \n");
zte_traffic_get_request_param(&request, 1);
@@ -1229,7 +1229,7 @@
if (count == 0) {
return;
}
- slog(MISC_PRINT, SLOG_DEBUG,"zte_traffic_delete_sms_after_process_over str_id = %s.\n", str_id);
+ slog(MISC_PRINT, SLOG_DEBUG,"traffic_delete_sms_after_process_over str_id = %s.\n", str_id);
rec_count = zte_traffic_parse_str_by_separator(str_id, (unsigned char *)rec_separate, 20, SEPARATOR_CHARACTER);
for (i = 0; i < rec_count; i++) {
@@ -1240,14 +1240,14 @@
}
del_req.id[i] = tmp_id;
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic]zte_traffic_delete_sms_after_process_over: del_req.id[%d] = %d\n", i, del_req.id[i]);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic]traffic_delete_sms_after_process_over: del_req.id[%d] = %d\n", i, del_req.id[i]);
}
del_req.all_or_count = count;
if (ZTE_MC_OK_S == zte_mc_relay_sms_delete_msg((T_zUfiSms_DelReq*)(&del_req))) {
- slog(MISC_PRINT, SLOG_NORMAL,"[traffic]zte_traffic_delete_sms_after_process_over:send delete sms cmd to mc success.\n");
+ slog(MISC_PRINT, SLOG_NORMAL,"[traffic]traffic_delete_sms_after_process_over:send delete sms cmd to mc success.\n");
} else {
- slog(MISC_PRINT, SLOG_ERR,"[traffic]zte_traffic_delete_sms_after_process_over:send delete sms cmd to mc fail.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic]traffic_delete_sms_after_process_over:send delete sms cmd to mc fail.\n");
}
}
@@ -1257,12 +1257,12 @@
del_req.all_or_count = 1;
del_req.id[0] = id;
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic]zte_traffic_delete_sms: id = %d\n", id);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic]traffic_delete_sms: id = %d\n", id);
if (ZTE_MC_OK_S == zte_mc_relay_sms_delete_msg((T_zUfiSms_DelReq*)(&del_req))) {
- slog(MISC_PRINT, SLOG_NORMAL,"[traffic]zte_traffic_delete_recv_sms:send delete sms cmd to mc success.\n");
+ slog(MISC_PRINT, SLOG_NORMAL,"[traffic]traffic_delete_recv_sms:send delete sms cmd to mc success.\n");
} else {
- slog(MISC_PRINT, SLOG_ERR,"[traffic]zte_traffic_delete_recv_sms:send delete sms cmd to mc fail.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic]traffic_delete_recv_sms:send delete sms cmd to mc fail.\n");
}
}
@@ -1279,18 +1279,18 @@
time(&now_time);
offset_time = now_time - g_traffic_last_time;
if (offset_time > 120 || offset_time < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_wait_to_recv_sms wait sms,time arrived, not recv whole sms , stop to recv, fail\n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_wait_to_recv_sms wait sms,time arrived, not recv whole sms , stop to recv, fail\n");
return TRAFFIC_RESULT_FAIL;
}
sc_cfg_get(NV_TRAFFIC_RECV_SMS_ID, buf, sizeof(buf));
if (0 == strcmp(buf, "0")) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_wait_to_recv_sms wait sms contiue\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_wait_to_recv_sms wait sms contiue\n");
return TRAFFIC_RESULT_CONTINUE;
}
id = atol(buf);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_wait_to_recv_sms id=%ld\n", id);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_wait_to_recv_sms id=%ld\n", id);
if (id == 0) {
return TRAFFIC_RESULT_CONTINUE;
@@ -1303,7 +1303,7 @@
memset(g_traffic_sms_body, 0, sizeof(body_size));
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_wait_to_recv_sms id=%d \n", id);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_wait_to_recv_sms id=%d \n", id);
result = zte_libwms_get_traffic_sms_body(id, g_traffic_sms_body);
if (result != 0) {
return TRAFFIC_RESULT_FAIL;
@@ -1314,7 +1314,7 @@
//´Ë´¦Á¢¼´ÖÿÕÊÇÒòΪ±ÜÃâÔÚÿ´ÎÊÕ¶ÌÐÅʱºò¶¼Òª
//½øÐкÅÂëµÄ±È¶Ô
sc_cfg_set(NV_TRAFFIC_SMS_NUMBER, "0");
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_wait_to_recv_sms body=%s\n", g_traffic_sms_body);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_wait_to_recv_sms body=%s\n", g_traffic_sms_body);
return TRAFFIC_RESULT_OK;
}
@@ -1359,13 +1359,13 @@
time(&now_time);
offset_time = now_time - g_traffic_last_time;
if (offset_time > 60 || offset_time < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_send_sms wait sms, time arrived, stop to send sms, fail\n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_send_sms wait sms, time arrived, stop to send sms, fail\n");
return TRAFFIC_RESULT_FAIL;
}
result = zte_traffic_check_can_send_sms();
if (result != TRAFFIC_RESULT_OK) {
- slog(MISC_PRINT, SLOG_ERR,"[traffic] zte_traffic_check_can_send_sms fail \n");
+ slog(MISC_PRINT, SLOG_ERR,"[traffic] traffic_check_can_send_sms fail \n");
return result;
}
@@ -1540,7 +1540,7 @@
zte_traffic_close_socket();
zte_traffic_delete_sms_after_process_over();
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_process, over====================!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_process, over====================!\n");
return;
}
@@ -1550,7 +1550,7 @@
pthread_t traffic_thread_id;
pthread_attr_t attr;
int result = 0;
- slog(MISC_PRINT, SLOG_NORMAL,"[traffic] zte_traffic_start--------!\n");
+ slog(MISC_PRINT, SLOG_NORMAL,"[traffic] traffic_start--------!\n");
if (zte_traffic_get_process_state() != TRAFFIC_STATE_OVER) {
slog(MISC_PRINT, SLOG_DEBUG,"[traffic] already running, can not start now, fail!\n");
@@ -1581,7 +1581,7 @@
sc_cfg_get(NV_DATA_TRAFFIC_SWITCH, traffic_switch, sizeof(traffic_switch));
if (0 != strcmp(traffic_switch, "yes")) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check switch is off , can not start traffic, fail!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check switch is off , can not start traffic, fail!\n");
return TRAFFIC_NOT_ENABLE_SWITCH;
}
@@ -1592,7 +1592,7 @@
sc_cfg_get(NV_DATA_TRAFFIC_SIM_PROVINCE, province, sizeof(province));
if (0 == strlen(&province)) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check province fail!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check province fail!\n");
return TRAFFIC_NOT_SELECT_SIM_PROVINCE;
}
@@ -1609,7 +1609,7 @@
return TRAFFIC_NOT_ENOUGH_SMS_MEMORY;
}
sc_cfg_set("traffic_check", "yes");
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check SUCCESS!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check SUCCESS!\n");
return TRAFFIC_RESULT_OK;
}
@@ -1632,12 +1632,12 @@
interval_time = now_time - last_traffic_over_time;
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check_if_exceed_one_day_time, last_traffic_over_time = %d!\n", last_traffic_over_time);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check_if_exceed_one_day_time, interval_time = %d!\n", interval_time);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check_if_exceed_one_day_time, last_traffic_over_time = %d!\n", last_traffic_over_time);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check_if_exceed_one_day_time, interval_time = %d!\n", interval_time);
//ÅжÏÉÏ´ÎУ׼½áÊøµÄʱ¼äÓ뵱ǰʱ¼äµÄ²î¾àÊÇ·ñ´óÓÚ1Ìì
if (interval_time >= TIME_ONE_DAY_INTERVAL || interval_time < 0) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check_if_exceed_one_day_time, interval_time >= TIME_ONE_DAY_INTERVAL !\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check_if_exceed_one_day_time, interval_time >= TIME_ONE_DAY_INTERVAL !\n");
result = 0;
}
@@ -1676,16 +1676,16 @@
// return -1;
//}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check_if_same_day, last_traffic_ptm, tm_year = %d, tm_month=%d, tm_day=%d\n", last_traffic_ptm.tm_year, last_traffic_ptm.tm_mon, last_traffic_ptm.tm_mday);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check_if_same_day, now_ptm, tm_year = %d, tm_month=%d, tm_day=%d\n", now_ptm.tm_year, now_ptm.tm_mon, now_ptm.tm_mday);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check_if_same_day, last_traffic_ptm, tm_year = %d, tm_month=%d, tm_day=%d\n", last_traffic_ptm.tm_year, last_traffic_ptm.tm_mon, last_traffic_ptm.tm_mday);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check_if_same_day, now_ptm, tm_year = %d, tm_month=%d, tm_day=%d\n", now_ptm.tm_year, now_ptm.tm_mon, now_ptm.tm_mday);
if ((now_ptm.tm_year == last_traffic_ptm.tm_year)
&& (now_ptm.tm_mon == last_traffic_ptm.tm_mon)
&& (now_ptm.tm_mday == last_traffic_ptm.tm_mday)) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check_if_same_day, the same day, no need traffic when poweron!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check_if_same_day, the same day, no need traffic when poweron!\n");
return -1;;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_web_traffic_check_if_same_day, not the same day,need traffic when poweron!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] web_traffic_check_if_same_day, not the same day,need traffic when poweron!\n");
return 0;
}
diff --git a/ap/app/goahead/interface5.0/other/zte_web_traffic_util.c b/ap/app/goahead/interface5.0/other/zte_web_traffic_util.c
index 696a569..007712f 100644
--- a/ap/app/goahead/interface5.0/other/zte_web_traffic_util.c
+++ b/ap/app/goahead/interface5.0/other/zte_web_traffic_util.c
@@ -32704,7 +32704,7 @@
}
}
if (!is_find) {
- printf("zte_traffic: data = %d not find in gsmdefault extension table\n", gsmdef[i]);
+ printf("traffic: data = %d not find in gsmdefault extension table\n", gsmdef[i]);
}
} else {
ucs2[k] = zte_traffic_GSMDefault_To_UCS2_Table[j] >> 8;
@@ -32747,7 +32747,7 @@
len = zte_traffic_convert_GSMDefault_to_UCS2(
(const UINT8*)data,
(UINT8*)ascii_content, sms_len);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_ConvertUcs2 len = %d \n", len);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_ConvertUcs2 len = %d \n", len);
(void)zte_traffic_DispatchWtoi((unsigned char*)ascii_content, len, (unsigned char*)out_content);
return len;
}
@@ -32815,15 +32815,15 @@
if (strUnicode == NULL || dstUtf8 == NULL) return;
unicode_len = zte_traffic_string_convert_to_unicode_bytes((unsigned char *)strUnicode, buf_unicode, str_len);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_second_get_request_data....len = %d \n", unicode_len);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_second_get_request_data....buf[0] = %x, buf[1] = %x,buf[2] = %x,buf[3] = %x, \n", buf_unicode[0], buf_unicode[1], buf_unicode[unicode_len - 2], buf_unicode[unicode_len - 1]);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_second_get_request_data....len = %d \n", unicode_len);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_second_get_request_data....buf[0] = %x, buf[1] = %x,buf[2] = %x,buf[3] = %x, \n", buf_unicode[0], buf_unicode[1], buf_unicode[unicode_len - 2], buf_unicode[unicode_len - 1]);
Ucs2ToUtf8(buf_unicode, unicode_len, utf8_buf, sizeof(utf8_buf));
URLEncode(utf8_buf, strlen(utf8_buf), dstUtf8, dst_len);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_second_get_request_data....dstUtf8 = %s \n", dstUtf8);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_second_get_request_data....dstUtf8 = %s \n", dstUtf8);
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_traffic_second_get_request_data....dstUtf8 len = %d \n", strlen(dstUtf8));
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] traffic_second_get_request_data....dstUtf8 len = %d \n", strlen(dstUtf8));
}
diff --git a/ap/app/goahead/interface5.0/wifi/zte_web_lan.c b/ap/app/goahead/interface5.0/wifi/zte_web_lan.c
index f0dd1c3..4f63fd8 100755
--- a/ap/app/goahead/interface5.0/wifi/zte_web_lan.c
+++ b/ap/app/goahead/interface5.0/wifi/zte_web_lan.c
@@ -244,7 +244,7 @@
zte_web_write("user_initiate_disconnect", "0"); //Óû§Ö÷¶¯Á¬½Ó״̬£¬Í˳ö¸ÉԤģʽ
zte_web_write("manual_d_wifi", "0");
- slog(MISC_PRINT, SLOG_NORMAL,"[zte_lan_stop_apsta]MSG_CMD_WIFI_STATION_CLOSE_OPEN_MSSID\n", 0, NULL);
+ slog(MISC_PRINT, SLOG_NORMAL,"[lan_stop_apsta]MSG_CMD_WIFI_STATION_CLOSE_OPEN_MSSID\n", 0, NULL);
//zte_send_message(MODULE_ID_WIFI, MSG_CMD_WIFI_STATION_CLOSE_OPEN_MSSID, 0, NULL);
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_WIFI, MSG_CMD_WIFI_STATION_CLOSE_OPEN_MSSID, 0, NULL, 0);
@@ -282,7 +282,7 @@
/*lint -e717*/
//#define NV_WRITE(nv_name, str, ret) do{ ret = zte_web_write(nv_name, (char *)str);}while(0)
- slog(WIFI_PRINT, SLOG_ERR, "zte_wlan_basic_set enter \n");
+ slog(WIFI_PRINT, SLOG_ERR, "wlan_basic_set enter \n");
//reset wifi_set_flags
(void)zte_web_write(WIFI_NV_ITEM_WIFI_SET_FLAGS, "");
@@ -545,7 +545,7 @@
//cov m
#define NV_READ(nv_name, str, ret) do{ret = zte_web_read(nv_name, nv_basic); str = nv_basic;}while(0)
#define NV_READ_MAC(nv_name, str, ret) do{ret = zte_web_read(nv_name, nv_mac); str = nv_mac;}while(0)
- slog(MISC_PRINT, SLOG_DEBUG,"[%s:%s]zte_wlan_mac_filter_set.\n", __FILE__, __FUNCTION__); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"[%s:%s]wlan_mac_filter_set.\n", __FILE__, __FUNCTION__); /*lint !e26*/
memset(nv_basic, 0, sizeof(nv_basic));
NV_READ("ACL_mode", old_ACL_mode, nv_ret);
ACL_mode = websGetVar(wp, T("ACL_mode"), T(""));
@@ -667,14 +667,14 @@
slog(MISC_PRINT, SLOG_DEBUG,"[%s][%s] wifi_wps_index = %s\n", __FILE__, __FUNCTION__, wifi_wps_index);
if (('\0' == *wps_mode) || ('\0' == *WPS_SSID)) {
- slog(MISC_PRINT, SLOG_ERR,"[%s:%s]zte_lan_wps_set:invalid input para.\n wps_mode is [%s]\n WPS_SSID is [%s]", __FILE__, __FUNCTION__, wps_mode, WPS_SSID); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"[%s:%s]lan_wps_set:invalid input para.\n wps_mode is [%s]\n WPS_SSID is [%s]", __FILE__, __FUNCTION__, wps_mode, WPS_SSID); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
(void) zte_web_read(NV_WIFI_WPS_STATE, wps_state);
if (0 == strcmp(wps_state, "1")) {
- slog(MISC_PRINT, SLOG_ERR,"zte_lan_wps_set:invalid operate, wps in processing..");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"lan_wps_set:invalid operate, wps in processing..");/*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -692,7 +692,7 @@
return;
}
- //printf(" ---- zte_wlan_wps_mode_set len is %s\n", wps_pin);
+ //printf(" ---- wlan_wps_mode_set len is %s\n", wps_pin);
if (wps_pin == NULL) {
zte_write_result_to_web(wp, FAILURE);
return;
@@ -758,22 +758,22 @@
(void)zte_web_write(WIFI_NV_ITEM_WIFI_SET_FLAGS, "");
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wlan_web_ssid1_set:+++++++++++++++++======\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"wlan_web_ssid1_set:+++++++++++++++++======\n");
if (FALSE == zte_wlan_ssid1_basic_set(wp, &wifi_set_flags)) {
- slog(MISC_PRINT, SLOG_ERR,"zte_wlan_web_ssid1_set: zte_wlan_ssid1_basic_set failure .\n");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"wlan_web_ssid1_set: wlan_ssid1_basic_set failure .\n");/*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
if (-1 == zte_lan_ssid1_security_set(wp, &wifi_set_flags)) {
- slog(MISC_PRINT, SLOG_ERR,"call zte_lan_ssid1_security_set failure .\n");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"call lan_ssid1_security_set failure .\n");/*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
(void)snprintf(wifi_set_flags_str, sizeof(wifi_set_flags_str) - 1, "%u", wifi_set_flags);
(void)zte_web_write(WIFI_NV_ITEM_WIFI_SET_FLAGS, wifi_set_flags_str);
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wlan_web_ssid1_set: wifi_set_flags [%u] to [%s].\n", wifi_set_flags, wifi_set_flags_str); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"wlan_web_ssid1_set: wifi_set_flags [%u] to [%s].\n", wifi_set_flags, wifi_set_flags_str); /*lint !e26*/
if (0 != wifi_set_flags) {
slog(MISC_PRINT, SLOG_NORMAL,"send wifi para to wlan-server@ssid1\n");/*lint !e26*/
@@ -797,20 +797,20 @@
(void)zte_web_write(WIFI_NV_ITEM_WIFI_SET_FLAGS, "");
if (FALSE == zte_wlan_ssid2_basic_set(wp, &wifi_set_flags)) {
- slog(MISC_PRINT, SLOG_ERR,"zte_wlan_ssid2_set: zte_wlan_ssid2_basic_set failure .");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"wlan_ssid2_set: wlan_ssid2_basic_set failure .");/*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
if (-1 == zte_lan_ssid2_security_set(wp, &wifi_set_flags)) {
- slog(MISC_PRINT, SLOG_ERR,"call zte_lan_ssid2_security_set fail.\n .");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"call lan_ssid2_security_set fail.\n .");/*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
(void)snprintf(wifi_set_flags_str, sizeof(wifi_set_flags_str) - 1, "%u", wifi_set_flags);
(void)zte_web_write(WIFI_NV_ITEM_WIFI_SET_FLAGS, wifi_set_flags_str);
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wlan_ssid2_set: wifi_set_flags [%u] to [%s].", wifi_set_flags, wifi_set_flags_str);
+ slog(MISC_PRINT, SLOG_DEBUG,"wlan_ssid2_set: wifi_set_flags [%u] to [%s].", wifi_set_flags, wifi_set_flags_str);
if (0 != wifi_set_flags) {
slog(MISC_PRINT, SLOG_NORMAL,"send wifi para to wlan-server@ssid2");/*lint !e26*/
@@ -843,8 +843,8 @@
unsigned int wifi_set_flags = 0;
char wifi_set_flags_str[NV_ITEM_STRING_LEN_20] = {0};
- slog(MISC_PRINT, SLOG_DEBUG,"[%s][%s]zte_wlan_sleep_set.", __FILE__, __FUNCTION__); /*lint !e26*/
- //printf("zhouti zte_wlan_sleep_set------------------------\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[%s][%s]wlan_sleep_set.", __FILE__, __FUNCTION__); /*lint !e26*/
+ //printf("zhouti wlan_sleep_set------------------------\n");
sleepMode = websGetVar(wp, T("sysIdleTimeToSleep"), T(""));
if (NULL == sleepMode || '\0' == *sleepMode) {
@@ -852,7 +852,7 @@
zte_write_result_to_web(wp, FAILURE);
return;
}
- //printf("zhouti zte_wlan_sleep_set sleepMode is %s\n", sleepMode);
+ //printf("zhouti wlan_sleep_set sleepMode is %s\n", sleepMode);
(void)zte_web_write("Sleep_interval", sleepMode);
// (void)zte_web_write("wifi_mac_black_list", wifi_mac_black_list);
// (void)zte_web_write("wifi_hostname_black_list", wifi_hostname_black_list);
@@ -902,8 +902,8 @@
char_t old_wifi_coverage[WIFI_COVERAGE_LEN + 1] = {0};
unsigned int wifi_set_flags = 0;
char wifi_set_flags_str[NV_ITEM_STRING_LEN_20] = {0};
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wlan_coverage_set.");
- //printf("zhouti zte_wlan_coverage_set------------------------\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"wlan_coverage_set.");
+ //printf("zhouti wlan_coverage_set------------------------\n");
wifi_coverage = websGetVar(wp, T(NV_WIFI_COVERAGE), T(""));
if (NULL == wifi_coverage || '\0' == *wifi_coverage) {
@@ -975,7 +975,7 @@
status = zte_web_write("SSID1", ssid);
wlan_set_change_ssid_key_status();
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_DEBUG,"[%s:%s]zte_wlan_ssid1_basic_set: write nv [SSID1] fail.", __FILE__, __FUNCTION__); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"[%s:%s]wlan_ssid1_basic_set: write nv [SSID1] fail.", __FILE__, __FUNCTION__); /*lint !e26*/
return FALSE;
}
}
@@ -992,7 +992,7 @@
*wifi_set_flags |= ZTE_WLAN_BROADCAST_SET;
status = zte_web_write("HideSSID", broadcastssid);
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wlan_ssid1_basic_set: write nv [HideSSID] fail.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"wlan_ssid1_basic_set: write nv [HideSSID] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1009,7 +1009,7 @@
*wifi_set_flags |= ZTE_WLAN_AP_ISOLATION_SET;
status = zte_web_write("NoForwarding", NoForwarding);
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wlan_ssid1_basic_set: write nv [NoForwarding] fail.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"wlan_ssid1_basic_set: write nv [NoForwarding] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1039,7 +1039,7 @@
if (0 != strcmp(show_qrcode_flag, nv_tmp)) {
status = zte_web_write("show_qrcode_flag", show_qrcode_flag);
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wlan_ssid1_basic_set: write nv [show_qrcode_flag] fail.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"wlan_ssid1_basic_set: write nv [show_qrcode_flag] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1059,7 +1059,7 @@
*wifi_set_flags |= ZTE_WLAN_WIRELESS_MODE_SET;
status = zte_web_write("WirelessMode", wirelessmode);
if (ZTE_NVIO_DONE != status) {
- printf("zte_wlan_ssid1_basic_set: write nv [WirelessMode] fail.");/*lint !e26*/
+ printf("wlan_ssid1_basic_set: write nv [WirelessMode] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1075,7 +1075,7 @@
*wifi_set_flags |= ZTE_WLAN_COUNTRY_SET;
status = zte_web_write("CountryCode", countrycode);
if (ZTE_NVIO_DONE != status) {
- printf("[%s][%s]zte_wlan_ssid1_basic_set: write nv [CountryCode] fail.", __FILE__, __FUNCTION__); /*lint !e26*/
+ printf("[%s][%s]wlan_ssid1_basic_set: write nv [CountryCode] fail.", __FILE__, __FUNCTION__); /*lint !e26*/
return FALSE;
}
}
@@ -1091,7 +1091,7 @@
*wifi_set_flags |= ZTE_WLAN_CHANNEL_SET;
status = zte_web_write("Channel", channel);
if (ZTE_NVIO_DONE != status) {
- printf("zte_wlan_ssid1_basic_set: write nv [Channel] fail.");/*lint !e26*/
+ printf("wlan_ssid1_basic_set: write nv [Channel] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1107,7 +1107,7 @@
*wifi_set_flags |= ZTE_WLAN_WIFI_BAND_SET;
status = zte_web_write("wifi_band", channel);
if (ZTE_NVIO_DONE != status) {
- printf("zte_wlan_ssid1_basic_set: write nv [wifi_band] fail.");/*lint !e26*/
+ printf("wlan_ssid1_basic_set: write nv [wifi_band] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1123,13 +1123,13 @@
*wifi_set_flags |= ZTE_WLAN_WIRELESS_MODE_SET;
status = zte_web_write("wifi_11n_cap", wifi_11n_cap);
if (ZTE_NVIO_DONE != status) {
- printf("zte_wlan_ssid1_basic_set: write nv [wifi_11n_cap] fail.");/*lint !e26*/
+ printf("wlan_ssid1_basic_set: write nv [wifi_11n_cap] fail.");/*lint !e26*/
return FALSE;
}
}
}
#endif
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wlan_ssid1_basic_set: wifi basic setup success.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"wlan_ssid1_basic_set: wifi basic setup success.");/*lint !e26*/
return TRUE;
}
@@ -1172,7 +1172,7 @@
status = zte_web_write("m_SSID", ssid);
wlan_set_change_ssid_key_status();//added by dujiajiao
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_ERR,"zte_wlan_ssid2_basic_set: write nv [m_SSID] fail.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"wlan_ssid2_basic_set: write nv [m_SSID] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1188,7 +1188,7 @@
*wifi_set_flags |= ZTE_WLAN_SET_AP_MSSID;
status = zte_web_write("m_HideSSID", broadcastssid);
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_ERR,"zte_wlan_ssid2_basic_set: write nv [m_HideSSID] fail.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"wlan_ssid2_basic_set: write nv [m_HideSSID] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1205,7 +1205,7 @@
*wifi_set_flags |= ZTE_WLAN_SET_AP_MSSID;
status = zte_web_write("m_NoForwarding", NoForwarding);
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_ERR,"zte_wlan_ssid1_basic_set: write nv [m_NoForwarding] fail.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"wlan_ssid1_basic_set: write nv [m_NoForwarding] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1221,7 +1221,7 @@
*wifi_set_flags |= ZTE_WLAN_SET_AP_MSSID;
status = zte_web_write("m_MAX_Access_num", MAX_Access_num);
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_ERR,"zte_wlan_ssid2_basic_set: write nv [MAX_Access_num] fail.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"wlan_ssid2_basic_set: write nv [MAX_Access_num] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1236,7 +1236,7 @@
if (0 != strcmp(show_qrcode_flag, nv_tmp)) {
status = zte_web_write("m_show_qrcode_flag", show_qrcode_flag);
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_ERR,"zte_wlan_ssid2_basic_set: write nv [show_qrcode_flag] fail.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"wlan_ssid2_basic_set: write nv [show_qrcode_flag] fail.");/*lint !e26*/
return FALSE;
}
}
@@ -1244,7 +1244,7 @@
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wlan_ssid2_basic_set: wifi basic setup success.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"wlan_ssid2_basic_set: wifi basic setup success.");/*lint !e26*/
return TRUE;
}
@@ -1456,7 +1456,7 @@
#else
pass_phrase_str_decode = (char*)zte_base64_decode((const unsigned char *)pass_phrase_str, strlen(pass_phrase_str), (unsigned int*)&pass_phrase_str_decode_length);
#endif
- slog(MISC_PRINT, SLOG_DEBUG,"[%s][%s]login2 -> zte_password:%s.\n", __FILE__, __FUNCTION__, pass_phrase_str_decode); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"[%s][%s]login2 -> password:%s.\n", __FILE__, __FUNCTION__, pass_phrase_str_decode); /*lint !e26*/
if (NULL == pass_phrase_str_decode) {
slog(MISC_PRINT, SLOG_DEBUG,"pass_phrase_str_decode: psw is empty.\n");/*lint !e26*/
@@ -1467,7 +1467,7 @@
snprintf(zte_pass_phrase_str,zte_pass_phrase_len+1,"%s",pass_phrase_str_decode);
//strncpy(zte_pass_phrase_str, pass_phrase_str_decode, zte_pass_phrase_len);
free(pass_phrase_str_decode);
- slog(MISC_PRINT, SLOG_DEBUG,"login3 -> zte_psw_admin:%s.\n", zte_pass_phrase_str); //cov m
+ slog(MISC_PRINT, SLOG_DEBUG,"login3 -> psw_admin:%s.\n", zte_pass_phrase_str); //cov m
#ifdef WEBS_SECURITY
if(zte_pass_phrase_str && !check_web_input_wifi(zte_pass_phrase_str,strlen(zte_pass_phrase_str)))
{
@@ -1716,7 +1716,7 @@
snprintf(zte_pass_phrase_str,zte_pass_phrase_len+1,"%s",pass_phrase_str_decode);
//strncpy(zte_pass_phrase_str, pass_phrase_str_decode, zte_pass_phrase_len);
free(pass_phrase_str_decode);
- slog(MISC_PRINT, SLOG_DEBUG,"login3 -> zte_pass_phrase_str:%s.\n", zte_pass_phrase_str); //cov m
+ slog(MISC_PRINT, SLOG_DEBUG,"login3 -> pass_phrase_str:%s.\n", zte_pass_phrase_str); //cov m
#ifdef WEBS_SECURITY
if(zte_pass_phrase_str && !check_web_input_wifi(zte_pass_phrase_str,strlen(zte_pass_phrase_str)))
{
@@ -1787,14 +1787,14 @@
//check the param: openEnable & closeEnable
if (NULL == openEnable || '\0' == *openEnable || NULL == closeEnable || '\0' == *closeEnable) {
- slog(MISC_PRINT, SLOG_ERR,"zte_wlan_set_tsw: **open/close**invalid input para.\n");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"wlan_set_tsw: **open/close**invalid input para.\n");/*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
//if swtich is open , then check the param: openTime & closeTime
if (strcmp(openEnable, "1") == 0) {
if (NULL == openTime || '\0' == *openTime || NULL == closeTime || '\0' == *closeTime) {
- slog(MISC_PRINT, SLOG_ERR,"zte_wlan_set_tsw: **open**invalid input para:openTime /closeTime.\n");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"wlan_set_tsw: **open**invalid input para:openTime /closeTime.\n");/*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
diff --git a/ap/app/goahead/interface5.0/wifi/zte_web_mgmt_wifi.c b/ap/app/goahead/interface5.0/wifi/zte_web_mgmt_wifi.c
index 6677f54..89b9248 100755
--- a/ap/app/goahead/interface5.0/wifi/zte_web_mgmt_wifi.c
+++ b/ap/app/goahead/interface5.0/wifi/zte_web_mgmt_wifi.c
@@ -137,7 +137,7 @@
#else
pass_phrase_str_decode = zte_base64_decode((const unsigned char *)pass_phrase_str, strlen(pass_phrase_str), &pass_phrase_str_decode_length);
#endif
- slog(MISC_PRINT, SLOG_DEBUG, "login2 -> zte_password:%s.\n", pass_phrase_str_decode); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "login2 -> password:%s.\n", pass_phrase_str_decode); /*lint !e26*/
if (NULL == pass_phrase_str_decode) {
slog(MISC_PRINT, SLOG_DEBUG, "pass_phrase_str_decode: psw is empty.\n"); /*lint !e26*/
@@ -150,7 +150,7 @@
else
snprintf(zte_pass_phrase_str,pass_phrase_str_decode_length+1,"%s",pass_phrase_str_decode);
free(pass_phrase_str_decode);
- slog(MISC_PRINT, SLOG_DEBUG, "login3 -> zte_psw_admin:%s.\n", zte_pass_phrase_str); //cov m
+ slog(MISC_PRINT, SLOG_DEBUG, "login3 -> psw_admin:%s.\n", zte_pass_phrase_str); //cov m
#ifdef WEBS_SECURITY
pass_phrase_b64_encode = zte_base64_encode(zte_pass_phrase_str, strlen(zte_pass_phrase_str));
@@ -178,7 +178,7 @@
#else
pass_phrase_str_decode = zte_base64_decode((const unsigned char *)pass_phrase_str, strlen(pass_phrase_str), &pass_phrase_str_decode_length);
#endif
- slog(MISC_PRINT, SLOG_DEBUG, "login2 -> zte_password:%s.\n", pass_phrase_str_decode); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "login2 -> password:%s.\n", pass_phrase_str_decode); /*lint !e26*/
if (NULL == pass_phrase_str_decode) {
slog(MISC_PRINT, SLOG_DEBUG, "pass_phrase_str_decode: psw is empty.\n"); /*lint !e26*/
@@ -191,7 +191,7 @@
else
snprintf(zte_pass_phrase_str,pass_phrase_str_decode_length+1,"%s",pass_phrase_str_decode);
free(pass_phrase_str_decode);
- slog(MISC_PRINT, SLOG_DEBUG, "login3 -> zte_psw_admin:%s.\n", zte_pass_phrase_str); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "login3 -> psw_admin:%s.\n", zte_pass_phrase_str); /*lint !e26*/
#ifdef WEBS_SECURITY
pass_phrase_b64_encode = zte_base64_encode(zte_pass_phrase_str, strlen(zte_pass_phrase_str));
@@ -218,7 +218,7 @@
/*TBD:notify wifi module to make parameters go into effect*/
//(void)snprintf(wifi_set_flags_str,sizeof(wifi_set_flags_str)-1,"%u",wifi_set_flags);
//(void)zte_web_write(WIFI_NV_ITEM_WIFI_SET_FLAGS, wifi_set_flags_str);
- //slog(MISC_PRINT,SLOG_DEBUG,"zte_wlan_ssid1_set: wifi_set_flags [%u] to [%s].", wifi_set_flags,wifi_set_flags_str);/*lint !e26*/
+ //slog(MISC_PRINT,SLOG_DEBUG,"wlan_ssid1_set: wifi_set_flags [%u] to [%s].", wifi_set_flags,wifi_set_flags_str);/*lint !e26*/
//printf(" deal_quick_setup_wifi_security------------------------- 11111\n");
sc_cfg_get("wifi_cur_state", wifi_cur_state, sizeof(wifi_cur_state));
@@ -336,7 +336,7 @@
pass_phrase_str = websGetVar(wp, T("passphrase"), T(""));
slog(MISC_PRINT, SLOG_DEBUG, "pass_phrase_str:%s.\n", pass_phrase_str); /*lint !e26*/
pass_phrase_str_decode = zte_base64_decode((const unsigned char *)pass_phrase_str, strlen(pass_phrase_str), &pass_phrase_str_decode_length);
- slog(MISC_PRINT, SLOG_DEBUG, "login2 -> zte_password:%s.\n", pass_phrase_str_decode); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "login2 -> password:%s.\n", pass_phrase_str_decode); /*lint !e26*/
if (NULL == pass_phrase_str_decode) {
slog(MISC_PRINT, SLOG_DEBUG, "pass_phrase_str_decode: psw is empty.\n"); /*lint !e26*/
@@ -349,7 +349,7 @@
else
snprintf(zte_pass_phrase_str,pass_phrase_str_decode_length+1,"%s",pass_phrase_str_decode);
free(pass_phrase_str_decode);
- slog(MISC_PRINT, SLOG_DEBUG, "login3 -> zte_psw_admin:%s.\n", zte_pass_phrase_str); //cov m
+ slog(MISC_PRINT, SLOG_DEBUG, "login3 -> psw_admin:%s.\n", zte_pass_phrase_str); //cov m
#ifdef WEBS_SECURITY
pass_phrase_b64_encode = zte_base64_encode(zte_pass_phrase_str, strlen(zte_pass_phrase_str));
@@ -371,7 +371,7 @@
pass_phrase_str = websGetVar(wp, T("passphrase"), T(""));
slog(MISC_PRINT, SLOG_DEBUG, "pass_phrase_str:%s.\n", pass_phrase_str); /*lint !e26*/
pass_phrase_str_decode = zte_base64_decode((const unsigned char *)pass_phrase_str, strlen(pass_phrase_str), &pass_phrase_str_decode_length);
- slog(MISC_PRINT, SLOG_DEBUG, "login2 -> zte_password:%s.\n", pass_phrase_str_decode); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "login2 -> password:%s.\n", pass_phrase_str_decode); /*lint !e26*/
if (NULL == pass_phrase_str_decode) {
slog(MISC_PRINT, SLOG_DEBUG, "pass_phrase_str_decode: psw is empty.\n"); /*lint !e26*/
@@ -384,7 +384,7 @@
else
snprintf(zte_pass_phrase_str,pass_phrase_str_decode_length+1,"%s",pass_phrase_str_decode);
free(pass_phrase_str_decode);
- slog(MISC_PRINT, SLOG_DEBUG, "login3 -> zte_psw_admin:%s.\n", zte_pass_phrase_str); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "login3 -> psw_admin:%s.\n", zte_pass_phrase_str); /*lint !e26*/
#ifdef WEBS_SECURITY
pass_phrase_b64_encode = zte_base64_encode(zte_pass_phrase_str, strlen(zte_pass_phrase_str));
@@ -409,7 +409,7 @@
/*TBD:notify wifi module to make parameters go into effect*/
//(void)snprintf(wifi_set_flags_str,sizeof(wifi_set_flags_str)-1,"%u",wifi_set_flags);
//(void)zte_web_write(WIFI_NV_ITEM_WIFI_SET_FLAGS, wifi_set_flags_str);
- //slog(MISC_PRINT,SLOG_DEBUG,"zte_wlan_ssid1_set: wifi_set_flags [%u] to [%s].", wifi_set_flags,wifi_set_flags_str);/*lint !e26*/
+ //slog(MISC_PRINT,SLOG_DEBUG,"wlan_ssid1_set: wifi_set_flags [%u] to [%s].", wifi_set_flags,wifi_set_flags_str);/*lint !e26*/
//printf(" deal_quick_setup_wifi_security------------------------- 11111\n");
sc_cfg_get("wifi_cur_state", wifi_cur_state, sizeof(wifi_cur_state));
diff --git a/ap/app/goahead/interface5.0/wifi/zte_web_wlan_station.c b/ap/app/goahead/interface5.0/wifi/zte_web_wlan_station.c
index 63b8dd0..baf3515 100755
--- a/ap/app/goahead/interface5.0/wifi/zte_web_wlan_station.c
+++ b/ap/app/goahead/interface5.0/wifi/zte_web_wlan_station.c
@@ -771,7 +771,7 @@
//²ÎÊýºÏ·¨ÐÔ¼ì²é
- slog(WIFI_PRINT, SLOG_DEBUG,"[%s]zte_wlan_station_set !\n", __FILE__);
+ slog(WIFI_PRINT, SLOG_DEBUG,"[%s]wlan_station_set !\n", __FILE__);
if (check_set_value(wifi_sta_connection) == FALSE) {
zte_write_result_to_web(wp, FAILURE);
@@ -818,10 +818,10 @@
lRet = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_WIFI, MSG_CMD_WIFI_STATION_CLOSE, 0, NULL, 0);
if (lRet != 0) {
//zte_web_write("RadioOff", "1");
- slog(WIFI_PRINT, SLOG_ERR,"[%s]zte_wlan_station_set MSG_CMD_WIFI_STATION_CLOSE failed\n", __FILE__);
+ slog(WIFI_PRINT, SLOG_ERR,"[%s]wlan_station_set MSG_CMD_WIFI_STATION_CLOSE failed\n", __FILE__);
} else {
- slog(WIFI_PRINT, SLOG_NORMAL,"[%s]zte_wlan_station_set MSG_CMD_WIFI_STATION_CLOSE!\n", __FILE__);
+ slog(WIFI_PRINT, SLOG_NORMAL,"[%s]wlan_station_set MSG_CMD_WIFI_STATION_CLOSE!\n", __FILE__);
}
} else if (strcmp(wifi_sta_connection, "1") == 0) { //¹¦ÄÜ¿ªÆô
@@ -835,12 +835,12 @@
if(strcmp(ap_station_mode, WEB_WLAN_STATION_MODE_WIFI_PREF) == 0)
{
// zte_send_message(MODULE_ID_BLC_RCV, MSG_CMD_BLC_SET_WIFISTATION_PRE, 0, NULL);
- wf_log("[%s]zte_wlan_station_set WIFISTATION_PRE!\n",__FILE__);
+ wf_log("[%s]wlan_station_set WIFISTATION_PRE!\n",__FILE__);
}
else if(strcmp(ap_station_mode, WEB_WLAN_STATION_MODE_DIAL_PREF) == 0)
{
//zte_send_message(MODULE_ID_BLC_RCV, MSG_CMD_BLC_SET_MODEM_PRE, 0, NULL);
- wf_log("[%s]zte_wlan_station_set MODEM_PRE!\n",__FILE__);
+ wf_log("[%s]wlan_station_set MODEM_PRE!\n",__FILE__);
}
**********/
@@ -854,15 +854,15 @@
lRet = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_WIFI, MSG_CMD_WIFI_STATION_OPEN, 0, NULL, 0);
if (lRet != 0) {
//zte_web_write("RadioOff", "1");
- slog(WIFI_PRINT, SLOG_ERR,"[%s]zte_wlan_station_set MSG_CMD_WIFI_STATION_OPEN failed\n", __FILE__);
+ slog(WIFI_PRINT, SLOG_ERR,"[%s]wlan_station_set MSG_CMD_WIFI_STATION_OPEN failed\n", __FILE__);
} else {
- slog(WIFI_PRINT, SLOG_NORMAL,"[%s]zte_wlan_station_set MSG_CMD_WIFI_STATION_OPEN!\n", __FILE__);
+ slog(WIFI_PRINT, SLOG_NORMAL,"[%s]wlan_station_set MSG_CMD_WIFI_STATION_OPEN!\n", __FILE__);
}
}
}
- slog(WIFI_PRINT, SLOG_DEBUG,"zte_wlan_station_set SUCCESS!\n");//cov m
+ slog(WIFI_PRINT, SLOG_DEBUG,"wlan_station_set SUCCESS!\n");//cov m
zte_write_result_to_web(wp, SUCCESS);
}
@@ -1219,7 +1219,7 @@
EX_WPAPSK1 = websGetVar(wp, T("EX_WPAPSK1"), T(""));
EX_wifi_profile = websGetVar(wp, T("EX_wifi_profile"), T(""));
EX_mac = websGetVar(wp, T("EX_mac"), T(""));
- slog(WIFI_PRINT, SLOG_NORMAL,"-----zte_wlan_station_connect-----EX_AuthMode is %s\n", EX_AuthMode);
+ slog(WIFI_PRINT, SLOG_NORMAL,"-----wlan_station_connect-----EX_AuthMode is %s\n", EX_AuthMode);
//²ÎÊýºÏ·¨ÐÔ¼ì²é
if (check_connect_value(EX_SSID1, EX_AuthMode, EX_EncrypType, EX_DefaultKeyID, EX_wifi_profile, EX_WEPKEY, EX_WPAPSK1) == FALSE) {
zte_write_result_to_web(wp, FAILURE);
diff --git a/ap/app/goahead/interface5.0/zte_web_get_fw_para.c b/ap/app/goahead/interface5.0/zte_web_get_fw_para.c
index 47df969..716dd4c 100755
--- a/ap/app/goahead/interface5.0/zte_web_get_fw_para.c
+++ b/ap/app/goahead/interface5.0/zte_web_get_fw_para.c
@@ -616,7 +616,7 @@
fp = popen("cat /sys/class/android_usb/android0/debug_enable", "r");
if (NULL == fp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_get_device_mode: get read fp failed."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "get_device_mode: get read fp failed."); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return ;
}
@@ -658,14 +658,14 @@
}
status = zte_web_read(NV_LOGINFO, loginfo);
if (ZTE_NVIO_DONE != status) {
- slog(MISC_PRINT, SLOG_ERR,"zte_get_loginfo: read the nv [loginfo] fail.");
+ slog(MISC_PRINT, SLOG_ERR,"get_loginfo: read the nv [loginfo] fail.");
return ;
}
//get request ip addr
ip_address = websGetRequestIpaddr(wp);
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH wp->ipaddr ipaddr is array, it's address can not be NULL
if (NULL == ip_address) {
- slog(MISC_PRINT, SLOG_ERR,"zte_get_loginfo: ip_address is null.");
+ slog(MISC_PRINT, SLOG_ERR,"get_loginfo: ip_address is null.");
return ;
}
#endif
@@ -682,7 +682,7 @@
strncpy(login_status, "ok", NV_ITEM_STRING_LEN_20);
} else {
strncpy(login_status, "", NV_ITEM_STRING_LEN_20);
- //slog(MISC_PRINT, SLOG_DEBUG,"zte_get_login loginfo:%s,ip:%s,nv:%s,cookie:%s,nv:%s,buf:%s!\n",loginfo,ip_address,nv_ipaddr,wp->cookie,cook_id,buf);
+ //slog(MISC_PRINT, SLOG_DEBUG,"get_login loginfo:%s,ip:%s,nv:%s,cookie:%s,nv:%s,buf:%s!\n",loginfo,ip_address,nv_ipaddr,wp->cookie,cook_id,buf);
}
}
/******************************************************
diff --git a/ap/app/goahead/interface5.0/zte_web_httpshare.c b/ap/app/goahead/interface5.0/zte_web_httpshare.c
index e77e0db..6d1f382 100644
--- a/ap/app/goahead/interface5.0/zte_web_httpshare.c
+++ b/ap/app/goahead/interface5.0/zte_web_httpshare.c
@@ -20,10 +20,10 @@
int zte_httpshare_call_system(char * cmd)
{
if (NULL == cmd) {
- slog(MISC_PRINT,SLOG_DEBUG,"[httpshare]zte_httpshare_call_system: NULL-------------------------------\n");
+ slog(MISC_PRINT,SLOG_DEBUG,"[httpshare]httpshare_call_system: NULL-------------------------------\n");
return -1;
}
- slog(MISC_PRINT,SLOG_NORMAL,"[httpshare]zte_httpshare_call_system: [%s] \n", cmd);
+ slog(MISC_PRINT,SLOG_NORMAL,"[httpshare]httpshare_call_system: [%s] \n", cmd);
#if 0
return system(cmd);
#else
@@ -34,10 +34,10 @@
static int zte_httpshare_call_system_echo(char * cmd)
{
if (NULL == cmd) {
- slog(MISC_PRINT,SLOG_DEBUG,"[httpshare]zte_httpshare_call_system_echo: NULL-------------------------------\n");
+ slog(MISC_PRINT,SLOG_DEBUG,"[httpshare]httpshare_call_system_echo: NULL-------------------------------\n");
return -1;
}
- slog(MISC_PRINT,SLOG_NORMAL,"[httpshare]zte_httpshare_call_system_echo: [%s] \n", cmd);
+ slog(MISC_PRINT,SLOG_NORMAL,"[httpshare]httpshare_call_system_echo: [%s] \n", cmd);
return soft_system(cmd);
}
@@ -51,7 +51,7 @@
char *newenviron[] = { NULL };
// cmd array's size is unknown
-// slog(MISC_PRINT,SLOG_NORMAL,"[httpshare]zte_httpshare_call_zte_system: [%s %s %s] \n", cmd[0],cmd[1],cmd[2]);
+// slog(MISC_PRINT,SLOG_NORMAL,"[httpshare]httpshare_call_system: [%s %s %s] \n", cmd[0],cmd[1],cmd[2]);
pid = fork();
if (pid == -1) {
@@ -82,14 +82,14 @@
int rc = 0;
if (NULL == db) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_db_open:invalide inputs.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_db_open:invalide inputs.\n");
return ZTE_HTTPSHARE_DB_ERROR_INVAILD_PTR;
}
rc = sqlite3_open(ZTE_HTTPSHARE_DB_PATH, &tmp_db);
if (rc) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_db_open:can not open db,sqlite3_errmsg:%s\n", sqlite3_errmsg(tmp_db));
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_db_open:can not open db,sqlite3_errmsg:%s\n", sqlite3_errmsg(tmp_db));
(void)sqlite3_close(tmp_db);
return ZTE_HTTPSHARE_DB_ERROR_NOT_OPEN_DB;
}
@@ -102,12 +102,12 @@
int rc = 0;
if (NULL == db) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_db_close:invalide inputs.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_db_close:invalide inputs.\n");
return ZTE_HTTPSHARE_DB_ERROR_INVAILD_PTR;
}
rc = sqlite3_close(db);
if (rc) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_db_close:can not close db.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_db_close:can not close db.\n");
return ZTE_HTTPSHARE_DB_ERROR;
}
return ZTE_HTTPSHARE_DB_OK;
@@ -118,18 +118,18 @@
int rc = 0;
if (NULL == sql) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_db_exec_sql:invalide inputs.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_db_exec_sql:invalide inputs.\n");
return ZTE_HTTPSHARE_DB_ERROR_INVAILD_PTR;
}
if (0 != zte_httpshare_db_open(&db)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_db_exec_sql:open httpshare.db failed.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_db_exec_sql:open httpshare.db failed.\n");
return ZTE_HTTPSHARE_DB_ERROR_NOT_OPEN_DB;
}
rc = sqlite3_exec(db, sql, callback, fvarg, NULL);
- slog(MISC_PRINT, SLOG_NORMAL,"[httpshare]zte_httpshare_db_exec_sql:%s rc=%d\n", sql, rc);
+ slog(MISC_PRINT, SLOG_NORMAL,"[httpshare]httpshare_db_exec_sql:%s rc=%d\n", sql, rc);
if (rc) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_db_exec_sql:can not exec sql,sqlite3_errmsg:%s.\n", sqlite3_errmsg(db));
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_db_exec_sql:can not exec sql,sqlite3_errmsg:%s.\n", sqlite3_errmsg(db));
(void)zte_httpshare_db_close(db);
return ZTE_HTTPSHARE_DB_ERROR;
}
@@ -157,14 +157,14 @@
int zte_check_download_file(char *path)//0: ²»´æÔڼǼ 1:¼Ç¼´æÔÚ
{
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_check_download_file:path->%s\n", path);
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_check_download_file:download_file->%s\n", download_file);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]check_download_file:path->%s\n", path);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]check_download_file:download_file->%s\n", download_file);
if (!strncmp(path, download_file, strlen(path))) {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_check_download_file:find used file->%s\n", path);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]check_download_file:find used file->%s\n", path);
return 1;
} else {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_check_download_file:not find file->%s\n", path);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]check_download_file:not find file->%s\n", path);
return 0;
}
}
@@ -193,14 +193,14 @@
//char *cmd = NULL;
if (!path) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_del_file null\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]del_file null\n");
return 0;
}
/*
cmd = (char *)malloc(strlen(path) + 10);
//char cmd[4*ZTE_HTTPSHARE_FILE_NAME_MAX_LEN+1] = {0};
if (NULL == cmd) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_del_file malloc error!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]del_file malloc error!\n");
return 0;
}
snprintf(cmd, strlen(path) + 10, "rm -rf \"%s\"", path);
@@ -349,11 +349,11 @@
sleep(2);
return 1;
}
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_mount_sd %s error!\n", sd_path);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_mount_sd %s error!\n", sd_path);
}
if (0 != zte_system(cmd1)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_mount_sd %s error!\n", USB_DEV_SDCARD_PATH_BACK);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_mount_sd %s error!\n", USB_DEV_SDCARD_PATH_BACK);
return 0;
}
sleep(2);
@@ -367,20 +367,20 @@
int cdrom = -1;
cdrom = zte_get_cdrom();
- slog(MISC_PRINT, SLOG_ERR,"zte_mount_httpshare:cdrom=%d\n",cdrom);
+ slog(MISC_PRINT, SLOG_ERR,"mount_httpshare:cdrom=%d\n",cdrom);
if(cdrom == 0)
{
memset(cmd, 0, sizeof(cmd));
zte_httpshare_call_system_echo("/bin/echo NULL > /sys/devices/platform/zx29_hsotg.0/gadget/lun0/file");
if (-1 == access(SD_CARD_PATH, F_OK)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_mount_httpshare mmc2 no exist!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]mount_httpshare mmc2 no exist!\n");
if(mkdir(SD_CARD_PATH, 0777) < 0)
{
slog(MISC_PRINT, SLOG_ERR,"[httpshare]mkdir(%s) fail!\n", SD_CARD_PATH);
}
return zte_httpshare_mount_sd();
} else {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_mount_httpshare %s exist\n", SD_CARD_PATH);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]mount_httpshare %s exist\n", SD_CARD_PATH);
return zte_httpshare_mount_sd();
}
}
@@ -389,13 +389,13 @@
memset(cmd, 0, sizeof(cmd));
zte_httpshare_call_system_echo("/bin/echo NULL > /sys/devices/platform/zx29_hsotg.0/gadget/lun1/file");
if (-1 == access(SD_CARD_PATH, F_OK)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_mount_httpshare mmc2 no exist!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]mount_httpshare mmc2 no exist!\n");
if(mkdir(SD_CARD_PATH, 0777) < 0){
slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]mkdir fail %s exist\n", SD_CARD_PATH);
}
return zte_httpshare_mount_sd();
} else {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_mount_httpshare %s exist\n", SD_CARD_PATH);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]mount_httpshare %s exist\n", SD_CARD_PATH);
return zte_httpshare_mount_sd();
}
}
@@ -417,8 +417,8 @@
(void)zte_web_read(NV_HTTPSHARE_WR_AUTH, HTTP_SHARE_WR_AUTH);
(void)zte_web_read(NV_HTTPSHARE_FILE, HTTP_SHARE_FILE);
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_write_auth_to_web: value is [%s]\n", HTTP_SHARE_WR_AUTH);
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_write_auth_to_web: value is [%s]\n", HTTP_SHARE_FILE);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]write_auth_to_web: value is [%s]\n", HTTP_SHARE_WR_AUTH);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]write_auth_to_web: value is [%s]\n", HTTP_SHARE_FILE);
web_feedback_header(wp);
(void)websWrite(wp, T("{\"HTTP_SHARE_WR_AUTH\":\"%s\",\"HTTP_SHARE_FILE\":\"%s\"}"),
HTTP_SHARE_WR_AUTH, HTTP_SHARE_FILE);
@@ -503,13 +503,13 @@
zte_httpshare_return_e_type zte_httpshare_check_and_creat_dir(char *path)
{
if (!path) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_check_and_creat_dir: check dir path null.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_check_and_creat_dir: check dir path null.\n");
return ZTE_HTTPSHARE_FAILURE;
}
if (-1 == access(path, F_OK)) {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_httpshare_check_and_creat_dir:%s does not exist,socreate it.\n", ZTE_HTTPSHARE_DB_DIR);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]httpshare_check_and_creat_dir:%s does not exist,socreate it.\n", ZTE_HTTPSHARE_DB_DIR);
if (-1 == mkdir(path, 0777)) { /*lint !e1055*/
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_check_and_creat_dir:failed to create db dir.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_check_and_creat_dir:failed to create db dir.\n");
return ZTE_HTTPSHARE_FAILURE;
}
}
@@ -524,7 +524,7 @@
result = zte_httpshare_db_exec_sql(ZTE_CREATE_TABLE_HTTPSHARE_SQL, NULL, NULL);
if (ZTE_HTTPSHARE_DB_OK != result) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_create_table:create httpshare table result is %d\n", result);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_create_table:create httpshare table result is %d\n", result);
return result;
}
return result;
@@ -535,16 +535,16 @@
{
if (!path) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_check_file_exist:file path null.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]check_file_exist:file path null.\n");
return 0;
}
if (-1 == access(path, F_OK)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_check_file_exist path=%s (file not exist)\n", path);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]check_file_exist path=%s (file not exist)\n", path);
return 0;
} else {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_check_file_exist path=%s (file exist)\n", path);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]check_file_exist path=%s (file exist)\n", path);
return 1;
}
}
@@ -562,16 +562,16 @@
if(access("/sys/kernel/debug/mmc1/present", R_OK) != 0)
{
- slog(MISC_PRINT, SLOG_ERR, "[httpshare] zte_check_sdcard_exist file not exist!\n");
+ slog(MISC_PRINT, SLOG_ERR, "[httpshare] check_sdcard_exist file not exist!\n");
return ret;
}
//fd = popen("cat /proc/proc_sd/size","r");
fd = popen("cat /sys/kernel/debug/mmc1/present", "r");
- //printf("[httpshare]zte_check_sdcard_exist cat /sys/kernel/debug/mmc1/present\n");
+ //printf("[httpshare]check_sdcard_exist cat /sys/kernel/debug/mmc1/present\n");
if (fd == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_check_sdcard_exist popen file = NULL\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]check_sdcard_exist popen file = NULL\n");
return ret;
}
if (!feof(fd) && fgets(size_sd, sizeof(size_sd), fd) != NULL) {
@@ -580,7 +580,7 @@
pclose(fd);
- //printf("[httpshare]zte_check_sdcard_exist :get size data = %d\n",ret);
+ //printf("[httpshare]check_sdcard_exist :get size data = %d\n",ret);
return ret;
}
@@ -611,7 +611,7 @@
(void)zte_web_write(STR_SDCARD_MODE_OPT, "0");
cdrom = zte_get_cdrom();
- slog(MISC_PRINT, SLOG_ERR,"zte_mount_httpshare:cdrom=%d\n",cdrom);
+ slog(MISC_PRINT, SLOG_ERR,"mount_httpshare:cdrom=%d\n",cdrom);
if(cdrom == 0)
zte_httpshare_call_system_echo("/bin/echo dev/mmcblk0 > /sys/devices/platform/zx29_hsotg.0/gadget/lun0/file");
else if(cdrom == 1)
@@ -657,11 +657,11 @@
(void)zte_del_file(ZTE_HTTPSHARE_DB_PATH);
if (ZTE_HTTPSHARE_SUCCESS != zte_httpshare_check_and_creat_dir(ZTE_HTTPSHARE_DB_DIR)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_init:zte_httpshare_check_and_creat_dir ZTE_HTTPSHARE_DB_DIR fail!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_init:httpshare_check_and_creat_dir HTTPSHARE_DB_DIR fail!\n");
return;
}
if (ZTE_HTTPSHARE_DB_OK != zte_httpshare_create_table()) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_init:zte_httpshare_create_table fail!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_init:httpshare_create_table fail!\n");
return;
}
@@ -716,7 +716,7 @@
int zte_httpshare_db_id_cb(void *fvarg, int line, char **zresult, char **lname)
{
if (1 > line) {
- printf("[httpshare]zte_httpshare_db_id_cb:record no data.\n");
+ printf("[httpshare]httpshare_db_id_cb:record no data.\n");
return -1;
}
*(int*)fvarg = atoi(zresult[0]);
@@ -727,7 +727,7 @@
int zte_httpshare_check_record(char *ip)
{
if (!ip) {
- printf("[httpshare]zte_httpshare_check_record:para null.\n");
+ printf("[httpshare]httpshare_check_record:para null.\n");
return -1;
}
@@ -741,7 +741,7 @@
result = zte_httpshare_db_exec_sql(sql, zte_httpshare_db_id_cb, &id);
(void)sleep(2);
if (ZTE_HTTPSHARE_DB_OK != result) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_check_record:result %d\n", result);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_check_record:result %d\n", result);
}
return id;
@@ -753,7 +753,7 @@
{
if ((!ip) || (!path)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_update_record:para null.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_update_record:para null.\n");
return ZTE_HTTPSHARE_DB_ERROR;
}
@@ -764,7 +764,7 @@
result = zte_httpshare_db_exec_sql(sql, NULL, NULL);
if (ZTE_HTTPSHARE_DB_OK != result) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_update_record:update record result %d\n", result);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_update_record:update record result %d\n", result);
return result;
}
@@ -781,7 +781,7 @@
zte_httpshare_db_result_e_type zte_httpshare_get_record(char *ip, char *path)
{
if ((!ip) || (!path)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_get_record:para null.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_get_record:para null.\n");
return ZTE_HTTPSHARE_DB_ERROR;
}
zte_httpshare_db_result_e_type result = ZTE_HTTPSHARE_DB_OK;
@@ -792,7 +792,7 @@
result = zte_httpshare_db_exec_sql(sql, zte_httpshare_getpath_cb, path);
(void)sleep(1);
if (ZTE_HTTPSHARE_DB_OK != result) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_get_record:update record result %d\n", result);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_get_record:update record result %d\n", result);
return result;
}
@@ -804,7 +804,7 @@
{
if ((!ip) || (!path)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_insert_path_to_db:para null.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_insert_path_to_db:para null.\n");
return ZTE_HTTPSHARE_DB_ERROR;
}
@@ -816,7 +816,7 @@
result = zte_httpshare_db_exec_sql(sql, NULL, NULL);
if (ZTE_HTTPSHARE_DB_OK != result) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_insert_path_to_db:result %d\n", result);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_insert_path_to_db:result %d\n", result);
return result;
}
return result;
@@ -830,13 +830,13 @@
int i = 0;
struct utimbuf times;
if ((!new_time) || (!path_source)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_change_file_time src==NULL\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]change_file_time src==NULL\n");
return;
}
if ((!strlen(path_source)) || (!strlen(new_time))) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_change_file_time src==empty\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]change_file_time src==empty\n");
return;
}
@@ -890,7 +890,7 @@
if (n < 3) {
(void)websWrite(wp, T("],\"totalRecord\":\"%d\"}}"), file_count);
if (n <= 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_write_filerecord_alphasort: scandir n=%d.\n", n);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]write_filerecord_alphasort: scandir n=%d.\n", n);
free(namelist);
return 1;
}
@@ -904,7 +904,7 @@
char *file_path = NULL;
file_path = (char*)malloc(ZTE_HTTPSHARE_PATH_NAME_MAX_LEN + 1);
if (!file_path) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_write_filerecord_alphasort, malloc error!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]write_filerecord_alphasort, malloc error!\n");
(void)websWrite(wp, T("],\"totalRecord\":\"%d\"}}"), file_count);
while (n--) {
slog(MISC_PRINT, SLOG_DEBUG,"namelist[%d]:%s\n", n, namelist[n]->d_name);
@@ -925,8 +925,8 @@
errno = 0;
if (stat(file_path, &fileinfo) < 0) {
- //printf("[httpshare]zte_write_filerecord_alphasort stat < 0\n");
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_write_filerecord_alphasort stat : %s[%s]\n", strerror(errno),file_path);
+ //printf("[httpshare]write_filerecord_alphasort stat < 0\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]write_filerecord_alphasort stat : %s[%s]\n", strerror(errno),file_path);
continue;
}
file_count++;
@@ -952,7 +952,7 @@
free(file_path);
file_path = NULL;
while (n--) {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_write_filerecord_alphasort:namelist[%d]->%s\n", n, namelist[n]->d_name);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]write_filerecord_alphasort:namelist[%d]->%s\n", n, namelist[n]->d_name);
free(namelist[n]);
}
free(namelist);
@@ -982,7 +982,7 @@
(void)websWrite(wp, T("],\"totalRecord\":\"%d\"}}"), file_count);
if (n <= 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_write_filerecord_alphasort_page scandir n=%d.\n", n);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]write_filerecord_alphasort_page scandir n=%d.\n", n);
free(namelist);
return 1;
}
@@ -995,7 +995,7 @@
}
file_path = (char*)malloc(ZTE_HTTPSHARE_PATH_NAME_MAX_LEN + 1);
if (!file_path) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_write_filerecord_alphasort_page:list file memory fail!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]write_filerecord_alphasort_page:list file memory fail!\n");
(void)websWrite(wp, T("],\"totalRecord\":\"%d\"}}"), file_count);
while (n--) free(namelist[n]);
free(namelist);
@@ -1020,7 +1020,7 @@
memset(file_path, 0, ZTE_HTTPSHARE_PATH_NAME_MAX_LEN + 1);
snprintf(file_path, ZTE_HTTPSHARE_PATH_NAME_MAX_LEN + 1, "%s/%s", path, namelist[i]->d_name);
if (stat(file_path, &fileinfo) < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_write_filerecord_alphasort_page stat %s[%s]\n", strerror(errno),file_path);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]write_filerecord_alphasort_page stat %s[%s]\n", strerror(errno),file_path);
continue;
}
@@ -1046,7 +1046,7 @@
free(file_path);
file_path = NULL;
while (n--) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_write_filerecord_alphasort_page:namelist[%d]->%s\n", n, namelist[n]->d_name);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]write_filerecord_alphasort_page:namelist[%d]->%s\n", n, namelist[n]->d_name);
free(namelist[n]);
}
free(namelist);
@@ -1060,13 +1060,13 @@
int zte_create_document(char* path)
{
if (!path) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_create_document:path is null\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]create_document:path is null\n");
return 0;
}
- slog(MISC_PRINT, SLOG_NORMAL,"[httpshare]zte_create_document:create new folder->%s\n", path);
+ slog(MISC_PRINT, SLOG_NORMAL,"[httpshare]create_document:create new folder->%s\n", path);
if (-1 == mkdir(path, 0777)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_create_documentcreate new folder->%s failed\n", path);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]create_documentcreate new folder->%s failed\n", path);
return 0;
}
@@ -1086,12 +1086,12 @@
char *name = NULL;
absolute_path = (char*)malloc(ZTE_HTTPSHARE_PATH_NAME_MAX_LEN + 1);
if (!absolute_path) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_del_multi_file_record:multi del abusolute path malloc fail.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]del_multi_file_record:multi del abusolute path malloc fail.\n");
return 0;
}
name = (char*)malloc(strlen(path1) + 1);
if (!name) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_del_multi_file_record:multi del name malloc fail.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]del_multi_file_record:multi del name malloc fail.\n");
free(absolute_path);
absolute_path = NULL;
return 0;
@@ -1107,7 +1107,7 @@
} else {
//·¾¶Ãû³Æ³¤¶È<4096 ; ÎļþÃû³¤¶È<255
if ((strlen(name) > 255) || ((strlen(name) + strlen(path)) > 4095)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_del_multi_file_record:filename/path too long\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]del_multi_file_record:filename/path too long\n");
free(name);
free(absolute_path);
@@ -1119,7 +1119,7 @@
// added by fenglei for security begin 20141029
if (zte_httpshare_check_patch_inlegal(absolute_path)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_del_multi_file_record:check del path is legal or not %s\n", absolute_path);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]del_multi_file_record:check del path is legal or not %s\n", absolute_path);
free(name);
free(absolute_path);
name = absolute_path = NULL;
@@ -1131,10 +1131,10 @@
(void)zte_del_file(absolute_path);
}
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_del_multi_file_record:check result->%d.\n", check_result);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]del_multi_file_record:check result->%d.\n", check_result);
if (access(absolute_path, F_OK) == 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_del_multi_file_record:del file fail.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]del_multi_file_record:del file fail.\n");
if (0 == check_result) { //²»´æÔڼǼ£¬É¾³ýʧ°Ü£¬·µ»ØÊ§°Ü
del_res = 0;
} else {
@@ -1194,7 +1194,7 @@
void zte_httpShare_getcard_value(webs_t wp)
{
if (!sd_card_isExist()) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_getcard_value no sdcard.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_getcard_value no sdcard.\n");
zte_write_result_to_web(wp, NO_SDCARD);
return;
}
@@ -1241,14 +1241,14 @@
{
char *mode = websGetVar(wp, "mode_set", T(""));
- //printf("[httpshare]zte_httpShare_modeset:set to mode->%s\n", mode);
+ //printf("[httpshare]httpShare_modeset:set to mode->%s\n", mode);
if (!sd_card_isExist()) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_modeset:no sdcard.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_modeset:no sdcard.\n");
zte_write_result_to_web(wp, NO_SDCARD);
return;
}
- //printf("[httpshare]zte_httpShare_modeset:sdcard exist.\n");
+ //printf("[httpshare]httpShare_modeset:sdcard exist.\n");
if ((0 != strcmp("http_share_mode", mode)) && (0 != strcmp("usb_mode", mode))) {
zte_write_result_to_web(wp, FAILURE);
return;
@@ -1285,7 +1285,7 @@
char *path_web = neutralize(path_web_tmp);
if(path_web == NULL){
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_enterFold fail %s.\n", path_web_tmp);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_enterFold fail %s.\n", path_web_tmp);
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -1295,7 +1295,7 @@
path_source = (char *)malloc(path_source_len); //²âÊÔ:SD_CARD_PATH_PR=/mnt/jffs2
if (!path_source) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_enterFold malloc fail\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_enterFold malloc fail\n");
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -1313,7 +1313,7 @@
char * ip = websGetRequestIpaddr(wp);
memset(path_source, 0, path_source_len);
snprintf(path_source, path_source_len, "%s%s", SD_CARD_PATH_PR, path_web);
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_httpShare_enterFold: path->%s, page_index->%d, ip->%s.\n", path_source, page_index, ip);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]httpShare_enterFold: path->%s, page_index->%d, ip->%s.\n", path_source, page_index, ip);
if (!sd_card_isExist()) {
zte_write_result_to_web(wp, NO_SDCARD);
@@ -1321,14 +1321,14 @@
}
if (!zte_check_file_exist(path_source)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_enterFold path inexist\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_enterFold path inexist\n");
zte_write_result_to_web(wp, FAILURE);
goto end;
//return;
}
//added by fenglei for security begin 20141029
if (zte_httpshare_check_patch_inlegal(path_source)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_enterFold path %s inlegal\n", path_source);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_enterFold path %s inlegal\n", path_source);
zte_write_result_to_web(wp, FAILURE);
goto end;
}
@@ -1377,7 +1377,7 @@
char *path_source = NULL;
char *path_web = neutralize(path_web_tmp);
if(path_web == NULL){
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_new fail %s.\n", path_web_tmp);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_new fail %s.\n", path_web_tmp);
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -1387,7 +1387,7 @@
path_source = (char *)malloc(path_source_len);
if (!path_source) {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_httpShare_new malloc fail\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]httpShare_new malloc fail\n");
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -1448,18 +1448,18 @@
char *root_web = neutralize(root_web_tmp);
if(root_web == NULL){
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_del fail %s.\n", root_web_tmp);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_del fail %s.\n", root_web_tmp);
zte_write_result_to_web(wp, FAILURE);
return;
}
int root_path_len = strlen(root_web) + 30;
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_httpShare_del:dele_path->%s, name->%s.\n", root_web, del_path);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]httpShare_del:dele_path->%s, name->%s.\n", root_web, del_path);
// root_path = (char *)malloc(strlen(root_web)+5);
root_path = (char *)malloc(root_path_len);
if (!root_path) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_del malloc fail.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_del malloc fail.\n");
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -1471,7 +1471,7 @@
}
//added by fenglei for security begin 20141029
if (zte_httpshare_check_patch_inlegal(del_path)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_del path is inlegal %s\n", del_path);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_del path is inlegal %s\n", del_path);
zte_write_result_to_web(wp, FAILURE);
goto end;
}
@@ -1514,7 +1514,7 @@
char *rw_auth = websGetVar(wp, "HTTP_SHARE_WR_AUTH", T(""));
char *file_name = websGetVar(wp, "HTTP_SHARE_FILE", T(""));
char *httpshare_status = websGetVar(wp, NV_HTTPSHARE_STATUS, T(""));
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_httpShare_auth_set:HTTP_SHARE_STATUS->%s, HTTP_SHARE_WR_AUTH->%s, HTTP_SHARE_FILE->%s\n", httpshare_status, rw_auth, file_name);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]httpShare_auth_set:HTTP_SHARE_STATUS->%s, HTTP_SHARE_WR_AUTH->%s, HTTP_SHARE_FILE->%s\n", httpshare_status, rw_auth, file_name);
if (!strcmp(httpshare_status, "Disabled")) {
(void)zte_web_write(NV_HTTPSHARE_STATUS, httpshare_status);
@@ -1556,23 +1556,23 @@
int fd = -1;
if(old_file_web == NULL || new_file_web == NULL){
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_rename fail %s %s.\n", old_file_web_tmp, new_file_web_tmp);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_rename fail %s %s.\n", old_file_web_tmp, new_file_web_tmp);
zte_write_result_to_web(wp, FAILURE);
return;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_httpShare_rename:old name->%s\n", old_file_web);
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_httpShare_rename:new name->%s\n", new_file_web);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]httpShare_rename:old name->%s\n", old_file_web);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]httpShare_rename:new name->%s\n", new_file_web);
// old_file_name= (char *)malloc(strlen(old_file_web)+5);
old_file_name = (char *)malloc(strlen(old_file_web) + 30);
if (!old_file_name) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_rename malloc fail\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_rename malloc fail\n");
zte_write_result_to_web(wp, FAILURE);
return;
}
new_file_name = (char *)malloc(strlen(new_file_web) + 30);
if (!new_file_name) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_rename malloc fail\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_rename malloc fail\n");
zte_write_result_to_web(wp, FAILURE);
goto end2;
}
@@ -1594,23 +1594,23 @@
if ((check_result = zte_check_download_file(old_file_name))) { //ÎÞÏÂÔØ¼Ç¼
zte_write_result_to_web(wp, PROCESSING);
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_rename:path is using\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_rename:path is using\n");
goto end;
}
//added by fenglei for security end 20141029
fd = rename(old_file_name, new_file_name);
if (fd < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_rename:rename fail fd->%d\n", fd);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_rename:rename fail fd->%d\n", fd);
zte_write_result_to_web(wp, FAILURE);
} else {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_rename:rename success, fd->%d\n", fd);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_rename:rename success, fd->%d\n", fd);
zte_httpshare_call_system("/bin/sync"); //write new file from momeroy to sdcard on time
zte_write_result_to_web(wp, SUCCESS);
}
end:
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_httpShare_rename:end2\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]httpShare_rename:end2\n");
free(new_file_name);
new_file_name = NULL;
@@ -1640,7 +1640,7 @@
char *path_source = NULL;
char *path_web = neutralize(path_web_tmp);
if(path_web == NULL){
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_check_file fail %s.\n", path_web_tmp);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_check_file fail %s.\n", path_web_tmp);
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -1652,7 +1652,7 @@
}
path_source = (char *)malloc(path_source_len);
if (!path_source) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpShare_check_file malloc fail\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpShare_check_file malloc fail\n");
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -1766,12 +1766,12 @@
char *ptr = NULL;
if (wp->url == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_path_check error1\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]path_check error1\n");
return 0;
}
if (strlen(wp->url) == 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_path_check error2\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]path_check error2\n");
return 0;
}
snprintf(path_temp, ZTE_HTTPSHARE_FILE_NAME_MAX_LEN, "%s", wp->url);
@@ -1780,10 +1780,10 @@
ptr += strlen("/cgi-bin/httpshare")+1;//ptrÖ¸ÏòÃû³ÆÊ××Öĸ
if (strstr(ptr, "/") != NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_path_check error\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]path_check error\n");
return 0;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_path_check upload name:%s\n", ptr);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]path_check upload name:%s\n", ptr);
return 1;
}
@@ -1820,7 +1820,7 @@
int zte_reset_cgi_state(webs_t wp)
{
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_reset_cgi_state.\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]reset_cgi_state.\n");
#if 0 // kw 3
if (!zte_malloc_cgi_buff()) {
slog(MISC_PRINT, SLOG_ERR,"[httpshare]malloc failed.\n");
@@ -1983,7 +1983,7 @@
zte_del_file(name);
zte_del_file(TCARD_UPLOAD_FILE);
if ((access(name, F_OK) == 0) || (access(TCARD_UPLOAD_FILE, F_OK) == 0)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_check_upload_file del upload file fail!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_check_upload_file del upload file fail!\n");
}
memset(file_buf_memory, 0, FILE_BUFFER_LEN);
memset(&pp_header, 0, sizeof(USER_COMMON_INFOR));
@@ -2003,8 +2003,8 @@
//snprintf(URL,sizeof(URL),"%s",wp->url);
//printf("[iphone]zte_get_upload_filename URL:%s\n",URL);
- slog(MISC_PRINT, SLOG_DEBUG,"[iphone]zte_get_upload_filename url:%s\n", wp->url);
- slog(MISC_PRINT, SLOG_DEBUG,"[iphone]zte_get_upload_filename path:%s\n", wp->path);
+ slog(MISC_PRINT, SLOG_DEBUG,"[iphone]get_upload_filename url:%s\n", wp->url);
+ slog(MISC_PRINT, SLOG_DEBUG,"[iphone]get_upload_filename path:%s\n", wp->path);
if ((wp->path == NULL) || (wp->url == NULL)) {
return -1;
@@ -2012,7 +2012,7 @@
websDecodeUrl(URL, wp->url, gstrlen(wp->url));
- slog(MISC_PRINT, SLOG_DEBUG,"[iphone]zte_get_upload_filename URL:%s\n", URL);
+ slog(MISC_PRINT, SLOG_DEBUG,"[iphone]get_upload_filename URL:%s\n", URL);
if (strlen(URL) <= 0) {
return -1;
@@ -2021,24 +2021,24 @@
temp_name = strstr(URL, "cgi-bin/httpshare");
if (temp_name == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[iphone]zte_get_upload_filename url strstr cgi == NULL\n");
+ slog(MISC_PRINT, SLOG_ERR,"[iphone]get_upload_filename url strstr cgi == NULL\n");
return -1;
}
temp_name += strlen("cgi-bin/httpshare")+1;
- slog(MISC_PRINT, SLOG_DEBUG,"[iphone]zte_get_upload_filename temp:%s\n", temp_name);
+ slog(MISC_PRINT, SLOG_DEBUG,"[iphone]get_upload_filename temp:%s\n", temp_name);
// if (temp_name != NULL) {
if (strlen(temp_name) == 0) {
- slog(MISC_PRINT, SLOG_ERR,"[iphone]zte_get_upload_filename url name == NULL,get name from file header\n");
+ slog(MISC_PRINT, SLOG_ERR,"[iphone]get_upload_filename url name == NULL,get name from file header\n");
return 0;
}
if (strstr(temp_name, "#") != NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[iphone]zte_get_upload_filename url name have #,get name from file header\n");
+ slog(MISC_PRINT, SLOG_ERR,"[iphone]get_upload_filename url name have #,get name from file header\n");
return 0;
}
// }else {
-// slog(MISC_PRINT, SLOG_ERR,"[iphone]zte_get_upload_filename temp == NULL\n");
+// slog(MISC_PRINT, SLOG_ERR,"[iphone]get_upload_filename temp == NULL\n");
// return -1;
// }
@@ -2046,7 +2046,7 @@
memset(pp_current->file_name, 0, sizeof(pp_current->file_name));
snprintf(pp_current->file_name, ZTE_HTTPSHARE_FILE_NAME_MAX_LEN, "%s", temp_name);
- slog(MISC_PRINT, SLOG_DEBUG,"[iphone]zte_get_upload_filename url:%s, temp:%s, pp_header:%s\n", URL, temp_name, pp_current->file_name);
+ slog(MISC_PRINT, SLOG_DEBUG,"[iphone]get_upload_filename url:%s, temp:%s, pp_header:%s\n", URL, temp_name, pp_current->file_name);
return 1;
}
@@ -2062,7 +2062,7 @@
int name_head ;
sp_name = "filename=";
if (NULL == text) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_get_cgi_filename text is null.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]get_cgi_filename text is null.\n");
return NULL;
}
if (!strlen(pp_current->UnixYMDTime)) {
@@ -2075,11 +2075,11 @@
}
pp_current->UnixYMDTime[k] = '\0';
}
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_get_cgi_filename UnixYMDTime is %s.\n", pp_current->UnixYMDTime);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]get_cgi_filename UnixYMDTime is %s.\n", pp_current->UnixYMDTime);
}
name_head = zte_str_index(text, sp_name); //find 'filename='
- //printf("[httpshare]zte_get_cgi_filename head is %d.\n",name_head);
+ //printf("[httpshare]get_cgi_filename head is %d.\n",name_head);
if (name_head > 0) {
for (i = name_head; * (text + i) != '\0'; i++) { //ÕÒµ½filename="test.doc"µÄµÚÒ»¸öÒýºÅλÖÃ
if (*(text + i) == '"') {
@@ -2127,7 +2127,7 @@
{
char *fdindex = NULL;
if (!buf) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_cgi_parse_file_head file head is null\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]cgi_parse_file_head file head is null\n");
return NULL;
}
@@ -2169,7 +2169,7 @@
user->infor.file_head = ZTE_CGI_PARSE_FINDE_FILE_HEAD;
user->infor.file_head_len++;
fdindex++;
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_cgi_parse_file_head file_head_len %d.\n", user->infor.file_head_len);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]cgi_parse_file_head file_head_len %d.\n", user->infor.file_head_len);
return fdindex;//Êý¾ÝÆðʼ
} else {
user->infor.file_head = ZTE_CGI_PARSE_FILE_HEAD_BEGIN;
@@ -2186,7 +2186,7 @@
{
char *fdindex = NULL;
if (!buf) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_cgi_parse_file_tail_address file tail is null\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]cgi_parse_file_tail_address file tail is null\n");
return NULL;
}
@@ -2215,7 +2215,7 @@
if ((*fdindex) == 13) {
user->infor.file_tail_addres = ZTE_CGI_PARSE_FINDE_FILE_TAIL_ADD;
user->infor.file_tail_len++;
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_cgi_parse_file_tail_address found file tail,file_tail_len->%d.\n", user->infor.file_tail_len);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]cgi_parse_file_tail_address found file tail,file_tail_len->%d.\n", user->infor.file_tail_len);
return fdindex;//file_tail start
} else {
user->infor.file_tail_addres = ZTE_CGI_PARSE_FILE_TAIL_ADD_BEGIN;
@@ -2244,12 +2244,12 @@
slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]file info: tail len->%d.\n", pp_current->infor.file_tail_len);
if (file_tail) {
pp_current->infor.file_tail_len = strlen(file_tail);
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_cgi_parse_file_tail file tail len is %d\n", pp_current->infor.file_tail_len);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]cgi_parse_file_tail file tail len is %d\n", pp_current->infor.file_tail_len);
slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]file info: tail->%s.\n", file_tail);
pp_current->infor.file_tail = ZTE_CGI_PARSE_FINDE_TAIL_IN_FILE;
return file_tail;
} else {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_cgi_parse_file_tail file_tail not found\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]cgi_parse_file_tail file_tail not found\n");
return NULL;
}
} else {
@@ -2290,15 +2290,15 @@
boolean zte_bufer_combination(char *buf, int size)
{
if ((tcard_file_size + size) < FILE_BUFFER_LEN - WEBS_SOCKET_BUFSIZ) {
- //printf("[httpshare]zte_bufer_combination tcard_file_size->%d,size->%d.\n",tcard_file_size,size);
- //printf("[httpshare]zte_bufer_combination FILE_BUFFER_LEN->%d,WEBS_SOCKET_BUFSIZ->%d.\n",FILE_BUFFER_LEN,WEBS_SOCKET_BUFSIZ);
+ //printf("[httpshare]bufer_combination tcard_file_size->%d,size->%d.\n",tcard_file_size,size);
+ //printf("[httpshare]bufer_combination FILE_BUFFER_LEN->%d,WEBS_SOCKET_BUFSIZ->%d.\n",FILE_BUFFER_LEN,WEBS_SOCKET_BUFSIZ);
memcpy(file_buf_memory_ptr, buf, size);
file_buf_memory_ptr = file_buf_memory_ptr + size;
tcard_file_size = tcard_file_size + size;
- //printf("[httpshare]zte_bufer_combination tcard_file_size->%d,size->%d.\n",tcard_file_size,size);
+ //printf("[httpshare]bufer_combination tcard_file_size->%d,size->%d.\n",tcard_file_size,size);
return FALSE;
} else {
- //printf("[httpshare]zte_bufer_combination begin to write file \n");
+ //printf("[httpshare]bufer_combination begin to write file \n");
memcpy(file_buf_memory_ptr, buf, size);
file_buf_memory_ptr = file_buf_memory_ptr + size;
@@ -2319,17 +2319,17 @@
//}
if (NULL == pp_current) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_write:zte_get_user_position failed\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_write:get_user_position failed\n");
return -1;
}
if (1 != zte_check_sdcard_exist()) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_write:zte_get_user_position failed\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_write:get_user_position failed\n");
return -1;
}
file_handler = open(pp_current->path, O_CREAT | O_WRONLY | O_APPEND, 0666);
if (file_handler < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_write zte write file open file failed\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_write write file open file failed\n");
return -1;
} else {
(void)write(file_handler, file_buf_memory, tcard_file_size);
@@ -2338,7 +2338,7 @@
tcard_file_size = 0;
file_close = close(file_handler);
if (file_close < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_httpshare_write zte write file close file failed\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]httpshare_write write file close file failed\n");
return -1;
}
@@ -2376,7 +2376,7 @@
left_size = zte_clen - nbytes;
if (left_size < ZTE_PARSE_CGI_TAIL_LEN) {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_process_cgi_write left_size->%d.nbytes->%d\n", left_size, nbytes);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]process_cgi_write left_size->%d.nbytes->%d\n", left_size, nbytes);
file_tail = zte_cgi_parse_file_tail(pp_current, left_size, text, nbytes); //ÕÒµ½tail λÖÃ
slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]file_tail->%-*.*s.\n", pp_current->infor.file_tail_len, pp_current->infor.file_tail_len, file_tail);
}
@@ -2388,19 +2388,19 @@
}
if (pp_current->infor.file_tail == ZTE_CGI_PARSE_FINDE_TAIL_IN_FILE) {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_process_cgi_write ZTE_CGI_PARSE_FINDE_TAIL_IN_FILE.\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]process_cgi_write CGI_PARSE_FINDE_TAIL_IN_FILE.\n");
if (file_tail == file_head) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_process_cgi_write it is a null file\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]process_cgi_write it is a null file\n");
file_close = close(open(pp_current->path, O_CREAT, 0666));
if (file_close < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_process_cgi_write zte write file close file failed\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]process_cgi_write write file close file failed\n");
}
return -1;
}
if (file_tail - file_head < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_process_cgi_write file_tail-file_head = %d < 0\n", file_tail - file_head);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]process_cgi_write file_tail-file_head = %d < 0\n", file_tail - file_head);
return -1;
}
slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]file_tail-file_head->%d.\n", file_tail - file_head);
@@ -2408,7 +2408,7 @@
} else if (pp_current->infor.file_tail == ZTE_CGI_PARSE_FINDE_TAIL_IN_POOL) {
(void)zte_write_file(wp, pp_current->infor.file_tail_pool, (file_tail - pp_current->infor.file_tail_pool));
} else {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_process_cgi_write some erro happened\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]process_cgi_write some erro happened\n");
}
} else {
@@ -2420,7 +2420,7 @@
pp_current->infor.data_no = ZTE_CGI_WRITE_THE_SEC_DATA;
- printf("[httpshare]zte_process_cgi_write file head len-> %d\n", pp_current->infor.file_head_len);
+ printf("[httpshare]process_cgi_write file head len-> %d\n", pp_current->infor.file_head_len);
} else {
(void)zte_write_file(wp, file_head, nbytes);
}
@@ -2455,20 +2455,20 @@
}
if (pp_current->infor.file_tail == ZTE_CGI_PARSE_FINDE_TAIL_IN_FILE) {
- printf("[httpshare]zte_process_cgi_write ZTE_CGI_PARSE_FINDE_TAIL_IN_FILE.\n");
+ printf("[httpshare]process_cgi_write CGI_PARSE_FINDE_TAIL_IN_FILE.\n");
//if(file_tail==file_head)
//{
- // printf("[httpshare]zte_process_cgi_write it is a null file\n");
+ // printf("[httpshare]process_cgi_write it is a null file\n");
// file_close=close(open(pp_current->path, O_CREAT,0666 ));
// if(file_close<0)
// {
- // printf("[httpshare]zte_process_cgi_write zte write file close file failed\n");
+ // printf("[httpshare]process_cgi_write write file close file failed\n");
// return -1;
// }
//}
if (file_tail - file_head < 0) {
- printf("[httpshare]zte_process_cgi_write file_tail-file_head = %d < 0\n", file_tail - file_head);
+ printf("[httpshare]process_cgi_write file_tail-file_head = %d < 0\n", file_tail - file_head);
return -1;
}
@@ -2478,7 +2478,7 @@
file_end = TRUE;
ret = zte_write_file(wp, pp_current->infor.file_tail_pool, (file_tail - pp_current->infor.file_tail_pool), pp_current);
} else {
- printf("[httpshare]zte_process_cgi_write some erro happened\n");
+ printf("[httpshare]process_cgi_write some erro happened\n");
ret = 0;
}
@@ -2495,7 +2495,7 @@
}
}
}
- //printf("[zyl]zte_process_cgi_write:ret->%d\n",ret);
+ //printf("[zyl]process_cgi_write:ret->%d\n",ret);
return ret;
}
@@ -2513,7 +2513,7 @@
//pp_current = zte_get_user_position(wp);
// if (NULL == pp_current || NULL == text) { // kw 3 pp_current point to pp_aheader's address, can not be NULL
if (NULL == text) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_process_cgi_begin recv failed.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]process_cgi_begin recv failed.\n");
return -1;
}
if (pp_current->card_full) {
@@ -2531,10 +2531,10 @@
return 1;
}
#endif
- //printf("[httpshare]file info: zte_clen->%d.\n",zte_clen);
+ //printf("[httpshare]file info: clen->%d.\n",zte_clen);
if (pp_current->infor.file_head != ZTE_CGI_PARSE_FINDE_FILE_HEAD) {
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte upload to fild head.\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]upload to fild head.\n");
file_head = zte_cgi_parse_file_head(zte_get_cgi_filename(wp, text, pp_current), pp_current);
//ÕÒµ½Êý¾ÝÆðʼλfile_head
@@ -2572,13 +2572,13 @@
struct stat statbuf;
if (!temp_file_name) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_check_file_complete:path NULL\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]check_file_complete:path NULL\n");
return 0;
}
if (!strlen(temp_file_name)) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_check_file_complete:strlen(path)==0\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]check_file_complete:strlen(path)==0\n");
return 0;
}
@@ -2592,7 +2592,7 @@
//slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]ret is %d\n", ret);
if (stat(temp_file_name, &statbuf) < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_check_file_complete stat : %s[%s]\n", strerror(errno),temp_file_name);
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]check_file_complete stat : %s[%s]\n", strerror(errno),temp_file_name);
return 0;
}
file_should_size = user->infor.file_raw_size - user->infor.file_head_len - user->infor.file_tail_len;
@@ -2643,7 +2643,7 @@
{
websDone(wp, 200);
sleep(1);
- slog(MISC_PRINT, SLOG_NORMAL,"[httpshare]zte_process_cgi_end websDone\n");
+ slog(MISC_PRINT, SLOG_NORMAL,"[httpshare]process_cgi_end websDone\n");
zte_remove_user();
return 1;
}
@@ -2653,12 +2653,12 @@
USER_COMMON_INFOR *pp_current = &pp_header;
#if 0 // kw 3 pp_current points to pp_haader' address, can not be null
if (NULL == pp_current) {
- slog(MISC_PRINT, SLOG_ERR,"[httpshare]zte_process_cgi_end pp_current NULL.\n");
+ slog(MISC_PRINT, SLOG_ERR,"[httpshare]process_cgi_end pp_current NULL.\n");
zte_write_result_to_web(wp, FAILURE);
return;
}
#endif
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_process_cgi_end path =%s\n", pp_current->path);
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]process_cgi_end path =%s\n", pp_current->path);
if (pp_current->card_full) {
unlink(pp_current->path);
zte_write_httpShare_upload_result_to_web(wp, FAILURE, "space_not_enough");
@@ -2668,7 +2668,7 @@
if (!zte_check_file_complete(pp_current->path, pp_current)) {
unlink(pp_current->path);
zte_write_httpShare_upload_result_to_web(wp, FAILURE, "data_lost");
- slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]zte_process_cgi_end data_lost.\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[httpshare]process_cgi_end data_lost.\n");
return;
} else {
(void)zte_httpshare_call_system("/bin/sync"); //write new file from momeroy to sdcard on time
diff --git a/ap/app/goahead/interface5.0/zte_web_mc.c b/ap/app/goahead/interface5.0/zte_web_mc.c
index 908dc61..dcd26c4 100644
--- a/ap/app/goahead/interface5.0/zte_web_mc.c
+++ b/ap/app/goahead/interface5.0/zte_web_mc.c
@@ -36,7 +36,7 @@
/*check the input param*/
if (msg_ptr == NULL) {
- slog(MISC_PRINT, SLOG_ERR, "the zte_mc_relay_sms_send_msg fun's input param is valid!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "the mc_relay_sms_send_msg fun's input param is valid!"); /*lint !e26*/
return -1;
}
@@ -47,18 +47,18 @@
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(T_zUfiSms_SendReq) > ZTE_MODEM_RELAY_MSGBUF_MAX_LEN) { /*lint !e506*/
- slog(MISC_PRINT, SLOG_ERR, "the size of zte_sms_send_msg_ui_req_info_s_type is more than the msg buf , sizeof(zte_sms_send_msg_ui_req_info_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR, "the size of sms_send_msg_ui_req_info_s_type is more than the msg buf , sizeof(sms_send_msg_ui_req_info_s_type) = %d!"
, sizeof(T_zUfiSms_SendReq));/*lint !e26*/
return -1;
}
#endif
memcpy(send_msg.msg_data, msg_ptr, sizeof(T_zUfiSms_SendReq));
- slog(MISC_PRINT, SLOG_NORMAL, "zte_send_message sms send msg start!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "send_message sms send msg start!"); /*lint !e26*/
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL,MSG_CMD_SEND_SMS, sizeof(send_msg), (char*)&send_msg);
ret_code = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_SMS, MSG_CMD_SEND_SMS, sizeof(send_msg), (char*)&send_msg, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_send_message sms send msg end!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "send_message sms send msg end!"); /*lint !e26*/
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay sms send msg fail"); /*lint !e26*/
@@ -98,17 +98,17 @@
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(T_zUfiSms_ModifyFlag) > ZTE_MODEM_RELAY_MSGBUF_MAX_LEN) { /*lint !e506*/
- slog(MISC_PRINT, SLOG_ERR, "the size of zte_mc_relay_sms_modify_s_type is more than the msg buf , sizeof(zte_mc_relay_sms_modify_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR, "the size of mc_relay_sms_modify_s_type is more than the msg buf , sizeof(mc_relay_sms_modify_s_type) = %d!"
, sizeof(T_zUfiSms_ModifyFlag));/*lint !e26*/
return -1;
}
#endif
memcpy(send_msg.msg_data, modify_info_tmp, sizeof(T_zUfiSms_ModifyFlag));
- slog(MISC_PRINT, SLOG_NORMAL, "zte_send_message sms modify tag start!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "send_message sms modify tag start!"); /*lint !e26*/
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL,MSG_CMD_SMS_MODIFY_TAG, sizeof(send_msg), (char*)&send_msg);
ret_code = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_SMS, MSG_CMD_SMS_MODIFY_TAG, sizeof(send_msg), (char*)&send_msg, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_send_message sms modify tag end!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "send_message sms modify tag end!"); /*lint !e26*/
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay sms send modify tag msg fail"); /*lint !e26*/
@@ -138,7 +138,7 @@
/*check the input param*/
if (msg_ptr == NULL) {
- slog(MISC_PRINT, SLOG_ERR, "the zte_mc_relay_sms_write_msg fun's input param is valid!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "the mc_relay_sms_write_msg fun's input param is valid!"); /*lint !e26*/
return -1;
}
@@ -149,17 +149,17 @@
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(T_zUfiSms_SaveReq) > ZTE_MODEM_RELAY_MSGBUF_MAX_LEN) { /*lint !e506*/
- slog(MISC_PRINT, SLOG_ERR, "the size of zte_sms_write_msg_info_s_type is more than the msg buf , sizeof(zte_sms_write_msg_info_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR, "the size of sms_write_msg_info_s_type is more than the msg buf , sizeof(sms_write_msg_info_s_type) = %d!"
, sizeof(T_zUfiSms_SaveReq));/*lint !e26*/
return -1;
}
#endif
memcpy(send_msg.msg_data, msg_ptr, sizeof(T_zUfiSms_SaveReq));
- slog(MISC_PRINT, SLOG_NORMAL, "zte_send_message sms write msg start!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "send_message sms write msg start!"); /*lint !e26*/
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL,MSG_CMD_DRAFTS_SAVE,sizeof(send_msg), (char*)&send_msg);
ret_code = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_SMS, MSG_CMD_DRAFTS_SAVE, sizeof(send_msg), (char*)&send_msg, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_send_message sms write msg end!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "send_message sms write msg end!"); /*lint !e26*/
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay sms send write msg fail"); /*lint !e26*/
@@ -189,14 +189,14 @@
/*check the input param*/
if (del_info_ptr == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"the zte_mc_relay_sms_delete_msg fun's input param is valid!");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"the mc_relay_sms_delete_msg fun's input param is valid!");/*lint !e26*/
return -1;
}
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(T_zUfiSms_DelReq) > MSG_DATA_MAX_LEN) {
- slog(MISC_PRINT, SLOG_ERR,"the size of zte_sms_delete_msg_info_s_type is more than the msg buf , sizeof(zte_sms_delete_msg_info_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR,"the size of sms_delete_msg_info_s_type is more than the msg buf , sizeof(sms_delete_msg_info_s_type) = %d!"
, sizeof(T_zUfiSms_DelReq));/*lint !e26*/
return -1;
}
@@ -207,7 +207,7 @@
//ret_code = zte_send_message(ZTE_SOCKET_PATH_MAIN_CONTROL, sizeof(send_msg), (char*)&send_msg);
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL, MSG_CMD_DEL_SMS_BY_INDEX, sizeof(T_zUfiSms_DelReq), (char *)del_info_ptr);
ret_code = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_SMS, MSG_CMD_DEL_SMS_BY_INDEX, sizeof(T_zUfiSms_DelReq), (char *)del_info_ptr, 0);
- slog(MISC_PRINT, SLOG_DEBUG,"zte_send_message sms delete msg end!");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"send_message sms delete msg end!");/*lint !e26*/
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR,"mc lib relay sms send delete msg fail");/*lint !e26*/
return -1;
@@ -233,26 +233,26 @@
/*check the input param*/
if (del_info_ptr == NULL) {
- slog(MISC_PRINT, SLOG_ERR, "the zte_mc_relay_sms_move_to_sim_msg fun's input param is valid!");
+ slog(MISC_PRINT, SLOG_ERR, "the mc_relay_sms_move_to_sim_msg fun's input param is valid!");
return -1;
}
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(T_zUfiSms_DelReq) > MSG_DATA_MAX_LEN) {
- slog(MISC_PRINT, SLOG_ERR, "the size of zte_sms_delete_msg_info_s_type is more than the msg buf , sizeof(zte_sms_delete_msg_info_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR, "the size of sms_delete_msg_info_s_type is more than the msg buf , sizeof(sms_delete_msg_info_s_type) = %d!"
, sizeof(T_zUfiSms_DelReq));
return -1;
}
#endif
- slog(MISC_PRINT, SLOG_NORMAL, "zte_send_message sms move to sim msg start!");
+ slog(MISC_PRINT, SLOG_NORMAL, "send_message sms move to sim msg start!");
//slog(MISC_PRINT,SLOG_DEBUG,"del_info_ptr->db is %d\n",del_info_ptr->db);
//ret_code = zte_send_message(ZTE_SOCKET_PATH_MAIN_CONTROL, sizeof(send_msg), (char*)&send_msg);
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL, MSG_CMD_COPY_SMS, sizeof(T_zUfiSms_DelReq), (char *)del_info_ptr);
ret_code = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_SMS, MSG_CMD_COPY_SMS, sizeof(T_zUfiSms_DelReq), (char *)del_info_ptr, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_send_message sms move to sim msg end!");
+ slog(MISC_PRINT, SLOG_DEBUG, "send_message sms move to sim msg end!");
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay sms send move to sim msg fail");
return -1;
@@ -279,7 +279,7 @@
/*check the input param*/
if (parameter_ptr == NULL) {
- slog(MISC_PRINT, SLOG_ERR, "the zte_mc_relay_sms_set_parameter fun's input param is valid!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "the mc_relay_sms_set_parameter fun's input param is valid!"); /*lint !e26*/
return -1;
}
@@ -290,17 +290,17 @@
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(T_zUfiSms_ParaInfo) > ZTE_MODEM_RELAY_MSGBUF_MAX_LEN) { /*lint !e506*/
- slog(MISC_PRINT, SLOG_ERR, "the size of zte_sms_parameter_info_s_type is more than the msg buf , sizeof(zte_sms_parameter_info_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR, "the size of sms_parameter_info_s_type is more than the msg buf , sizeof(sms_parameter_info_s_type) = %d!"
, sizeof(T_zUfiSms_ParaInfo));/*lint !e26*/
return -1;
}
#endif
memcpy(send_msg.msg_data, parameter_ptr, sizeof(T_zUfiSms_ParaInfo));
- slog(MISC_PRINT, SLOG_NORMAL, "zte_send_message sms set parameter( start!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "send_message sms set parameter( start!"); /*lint !e26*/
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL,MSG_CMD_SMS_LOCATION_SET, sizeof(send_msg), (char*)&send_msg);
ret_code = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_SMS, MSG_CMD_SMS_LOCATION_SET, sizeof(send_msg), (char*)&send_msg, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_send_message sms set parameter( end!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "send_message sms set parameter( end!"); /*lint !e26*/
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay sms set parameter msg fail"); /*lint !e26*/
@@ -332,11 +332,11 @@
/*check the input param*/
if (pbm_recv_record == NULL) {
- slog(MISC_PRINT, SLOG_ERR, "the zte_mc_relay_pbm_create_modify_record fun's input is NULL "); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "the mc_relay_pbm_create_modify_record fun's input is NULL "); /*lint !e26*/
return -1;
}
- slog(MISC_PRINT, SLOG_DEBUG, "enter the zte_mc_relay_pbm_create_modify_record fun "); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "enter the mc_relay_pbm_create_modify_record fun "); /*lint !e26*/
/*set the value*/
send_msg.msg_hdr.type = ZTE_PBM_RELAY_TYPE;
@@ -345,17 +345,17 @@
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(zte_pbm_create_ext_record_s_type) > ZTE_MODEM_RELAY_MSGBUF_MAX_LEN) { /*lint !e506*/
- slog(MISC_PRINT, SLOG_ERR, "the size of zte_pbm_create_ext_record_s_type is more than the msg buf , sizeof(zte_pbm_create_ext_record_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR, "the size of pbm_create_ext_record_s_type is more than the msg buf , sizeof(pbm_create_ext_record_s_type) = %d!"
, sizeof(zte_pbm_create_ext_record_s_type));/*lint !e26*/
return -1;
}
#endif
memcpy(send_msg.msg_data, pbm_recv_record, sizeof(zte_pbm_create_ext_record_s_type));
- slog(MISC_PRINT, SLOG_NORMAL, "zte_send_message PBM create modify record start!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "send_message PBM create modify record start!"); /*lint !e26*/
#if 0 // cov M when zte_send_message is commented, ret_code!= OK is unreachable
//ret_code = zte_send_message(ZTE_SOCKET_PATH_MAIN_CONTROL, sizeof(send_msg), (char*)&send_msg);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_send_message PBM create modify record end!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "send_message PBM create modify record end!"); /*lint !e26*/
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay pbm send create modify record fail"); /*lint !e26*/
@@ -386,11 +386,11 @@
/*check the input param*/
if (pbm_recv_record == NULL) {
- slog(MISC_PRINT, SLOG_ERR, "the zte_mc_relay_pbm_del_multi_record fun's input is NULL "); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "the mc_relay_pbm_del_multi_record fun's input is NULL "); /*lint !e26*/
return -1;
}
- slog(MISC_PRINT, SLOG_DEBUG, "enter the zte_mc_relay_pbm_del_one_record fun "); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "enter the mc_relay_pbm_del_one_record fun "); /*lint !e26*/
/*set the value*/
send_msg.msg_hdr.type = ZTE_PBM_RELAY_TYPE;
@@ -399,17 +399,17 @@
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(zte_pbm_del_multi_records_s_type) > ZTE_MODEM_RELAY_MSGBUF_MAX_LEN) { /*lint !e506*/
- slog(MISC_PRINT, SLOG_ERR, "the size of zte_pbm_del_multi_records_s_type is more than the msg buf , sizeof(zte_pbm_del_multi_records_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR, "the size of pbm_del_multi_records_s_type is more than the msg buf , sizeof(pbm_del_multi_records_s_type) = %d!"
, sizeof(zte_pbm_create_ext_record_s_type));/*lint !e26*/
return -1;
}
#endif
memcpy(send_msg.msg_data, pbm_recv_record, sizeof(zte_pbm_del_multi_records_s_type));
- slog(MISC_PRINT, SLOG_NORMAL, "zte_send_message PBM del one record start!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "send_message PBM del one record start!"); /*lint !e26*/
#if 0 // cov M when zte_send_message is commented, ret_code!= OK is unreachable
//ret_code = zte_send_message(ZTE_SOCKET_PATH_MAIN_CONTROL, sizeof(send_msg), (char*)&send_msg);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_send_message PBM del one record end!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "send_message PBM del one record end!"); /*lint !e26*/
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay pbm del one record msg fail"); /*lint !e26*/
@@ -438,11 +438,11 @@
/*check the input param*/
if (pbm_recv_record == NULL) {
- slog(MISC_PRINT, SLOG_ERR, "the zte_mc_relay_pbm_del_multi_record fun's input is NULL "); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "the mc_relay_pbm_del_multi_record fun's input is NULL "); /*lint !e26*/
return -1;
}
- slog(MISC_PRINT, SLOG_DEBUG, "enter the zte_mc_relay_pbm_del_multi_record fun "); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "enter the mc_relay_pbm_del_multi_record fun "); /*lint !e26*/
/*set the value*/
send_msg.msg_hdr.type = ZTE_PBM_RELAY_TYPE;
@@ -451,7 +451,7 @@
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(zte_pbm_del_multi_records_s_type) > ZTE_MODEM_RELAY_MSGBUF_MAX_LEN) { /*lint !e506*/
- slog(MISC_PRINT, SLOG_ERR, "the size of zte_pbm_del_multi_records_s_type is more than the msg buf , sizeof(zte_pbm_del_multi_records_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR, "the size of pbm_del_multi_records_s_type is more than the msg buf , sizeof(pbm_del_multi_records_s_type) = %d!"
, sizeof(zte_pbm_create_ext_record_s_type));/*lint !e26*/
return -1;
}
@@ -459,10 +459,10 @@
memcpy(send_msg.msg_data, pbm_recv_record, sizeof(zte_pbm_del_multi_records_s_type));
- slog(MISC_PRINT, SLOG_NORMAL, "zte_send_message PBM del multi record start!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "send_message PBM del multi record start!"); /*lint !e26*/
#if 0 // cov M when zte_send_message is commented, ret_code!= OK is unreachable
//ret_code = zte_send_message(ZTE_SOCKET_PATH_MAIN_CONTROL, sizeof(send_msg), (char*)&send_msg);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_send_message PBM del multi record end!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "send_message PBM del multi record end!"); /*lint !e26*/
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay pbm del multi record msg fail"); /*lint !e26*/
@@ -492,11 +492,11 @@
/*check the input param*/
if (pbm_recv_record == NULL) {
- slog(MISC_PRINT, SLOG_ERR, "the zte_mc_relay_pbm_del_all_record fun's input is NULL "); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "the mc_relay_pbm_del_all_record fun's input is NULL "); /*lint !e26*/
return -1;
}
- slog(MISC_PRINT, SLOG_DEBUG, "enter the zte_mc_relay_pbm_del_all_record fun "); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "enter the mc_relay_pbm_del_all_record fun "); /*lint !e26*/
/*set the value*/
send_msg.msg_hdr.type = ZTE_PBM_RELAY_TYPE;
@@ -505,7 +505,7 @@
#if 0 // kw 3 INVARIANT_CONDITION.UNREACH
/*check the length before memcpy for safe*/
if (sizeof(zte_pbm_del_multi_records_s_type) > ZTE_MODEM_RELAY_MSGBUF_MAX_LEN) { /*lint !e506*/
- slog(MISC_PRINT, SLOG_ERR, "the size of zte_pbm_del_multi_records_s_type is more than the msg buf , sizeof(zte_pbm_del_multi_records_s_type) = %d!"
+ slog(MISC_PRINT, SLOG_ERR, "the size of pbm_del_multi_records_s_type is more than the msg buf , sizeof(pbm_del_multi_records_s_type) = %d!"
, sizeof(zte_pbm_create_ext_record_s_type));/*lint !e26*/
return -1;
}
@@ -513,10 +513,10 @@
memcpy(send_msg.msg_data, pbm_recv_record, sizeof(zte_pbm_del_multi_records_s_type));
- slog(MISC_PRINT, SLOG_NORMAL, "zte_send_message PBM del all record start!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "send_message PBM del all record start!"); /*lint !e26*/
#if 0 // cov M // when zte_send_message is commented, ret_code != OK is unreachable
//ret_code = zte_send_message(ZTE_SOCKET_PATH_MAIN_CONTROL, sizeof(send_msg), (char*)&send_msg);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_send_message PBM del all record end!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "send_message PBM del all record end!"); /*lint !e26*/
if (ret_code != OK) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay pbm del all record msg fail"); /*lint !e26*/
diff --git a/ap/app/goahead/interface5.0/zte_web_mgmt.c b/ap/app/goahead/interface5.0/zte_web_mgmt.c
index a4e1311..37b1c15 100755
--- a/ap/app/goahead/interface5.0/zte_web_mgmt.c
+++ b/ap/app/goahead/interface5.0/zte_web_mgmt.c
@@ -147,9 +147,9 @@
psw_check_result_type_t psw_cheak_result = PSW_EMPTY;
char buf[CONFIG_DEFAULT_LENGTH] = {0};
- slog(MISC_PRINT, SLOG_DEBUG,"[login] zte_mgmt_login enter====\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[login] mgmt_login enter====\n");
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR,"[login] zte_mgmt_login: wp is null.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"[login] mgmt_login: wp is null.");/*lint !e26*/
zte_write_result_to_web(wp, LOGIN_FAIL);
return;
}
@@ -158,13 +158,13 @@
user = websGetVar(wp, T("username"), NULL);
if ('\0' == (*psw)) {
- slog(MISC_PRINT, SLOG_ERR,"[login] zte_mgmt_login: psw is empty.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"[login] mgmt_login: psw is empty.");/*lint !e26*/
zte_write_result_to_web(wp, LOGIN_FAIL);
return;
}
if (user != NULL) {
- slog(MISC_PRINT, SLOG_DEBUG," zte_mgmt_login user = %s\n", user);
+ slog(MISC_PRINT, SLOG_DEBUG," mgmt_login user = %s\n", user);
pUser = (char *)zte_base64_decode((const unsigned char *)user, strlen(user), (unsigned int*)&user_name_len);
if (NULL == pUser) {
zte_write_result_to_web(wp, LOGIN_FAIL);
@@ -178,25 +178,25 @@
snprintf(user_name,sizeof(user_name),"%s",pUser);
free(pUser);
- slog(MISC_PRINT, SLOG_DEBUG," zte_mgmt_login user_name = %s\n", user_name);
+ slog(MISC_PRINT, SLOG_DEBUG," mgmt_login user_name = %s\n", user_name);
sc_cfg_get("admin_user", buf, sizeof(buf));
if (0 != strcmp(user_name, buf)) {
- slog(MISC_PRINT, SLOG_ERR," zte_mgmt_login user_name fail \n");
+ slog(MISC_PRINT, SLOG_ERR," mgmt_login user_name fail \n");
zte_write_result_to_web(wp, LOGIN_USER_NAME_NOT_EXSIT);
return;
}
- slog(MISC_PRINT, SLOG_DEBUG," zte_mgmt_login uername correct \n");
+ slog(MISC_PRINT, SLOG_DEBUG," mgmt_login uername correct \n");
}
- slog(MISC_PRINT, SLOG_DEBUG,"[login] login1 -> zte_password_encode:%s.\n", psw); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"[login] login1 -> password_encode:%s.\n", psw); /*lint !e26*/
#ifdef WEBS_SECURITY
zte_password = js_aes_decode(psw, strlen(psw), (unsigned int*)&zte_password_len);
#else
zte_password = (char *)zte_base64_decode((const unsigned char *)psw, strlen(psw), (unsigned int*)&zte_password_len);
#endif
- slog(MISC_PRINT, SLOG_DEBUG,"[login] login2 -> zte_password:%s.\n", zte_password); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"[login] login2 -> password:%s.\n", zte_password); /*lint !e26*/
if (NULL == zte_password) {
- slog(MISC_PRINT, SLOG_ERR,"[login] zte_mgmt_login: psw is empty.\n");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"[login] mgmt_login: psw is empty.\n");/*lint !e26*/
zte_write_result_to_web(wp, LOGIN_FAIL);
return;
}
@@ -207,11 +207,11 @@
snprintf(zte_psw_admin,sizeof(zte_psw_admin),"%s",zte_password);
//strncpy(zte_psw_admin, zte_password, zte_password_len);
free(zte_password);
- slog(MISC_PRINT, SLOG_DEBUG,"[login] login3 -> zte_psw_admin:%s.\n", zte_psw_admin); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"[login] login3 -> psw_admin:%s.\n", zte_psw_admin); /*lint !e26*/
psw_cheak_result = zte_password_check(wp, zte_psw_admin);
if (psw_cheak_result != PSW_OK) {
- slog(MISC_PRINT, SLOG_ERR,"[login] zte_mgmt_login psw_cheak_result != PSW_OK\n");
+ slog(MISC_PRINT, SLOG_ERR,"[login] mgmt_login psw_cheak_result != PSW_OK\n");
zte_write_result_to_web(wp, LOGIN_FAIL);
return;
}
@@ -220,7 +220,7 @@
ip_address = websGetRequestIpaddr(wp);
#if 0 // kw 3
if (NULL == ip_address) {
- slog(MISC_PRINT, SLOG_ERR,"[login] zte_mgmt_login: ip_address is null.\n");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"[login] mgmt_login: ip_address is null.\n");/*lint !e26*/
zte_write_result_to_web(wp, LOGIN_FAIL);
return;
}
@@ -235,7 +235,7 @@
}
} else {
zte_reduct_login_times();
- slog(MISC_PRINT, SLOG_ERR,"[login] zte_mgmt_login: error pass.");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"[login] mgmt_login: error pass.");/*lint !e26*/
zte_write_result_to_web(wp, LOGIN_BAD_PASSWORD);
security_log(MODULE_ID_WEB_CGI,"web login err pwd ip=%s",ip_address);
return;
@@ -283,7 +283,7 @@
security_log(MODULE_ID_WEB_CGI,"web login suc ip=%s",ip_address);
return;
} else {
- slog(MISC_PRINT, SLOG_ERR,"[login] zte_mgmt_login_timemark_set fail\n");
+ slog(MISC_PRINT, SLOG_ERR,"[login] mgmt_login_timemark_set fail\n");
zte_write_result_to_web(wp, LOGIN_FAIL);
return;
}
@@ -339,7 +339,7 @@
luser_login_timemark = atol(user_login_timemark);
if(luser_login_timemark < 0 || luser_login_timemark > LONG_MAX-1){
luser_login_timemark = LONG_MAX;
- slog(MISC_PRINT, SLOG_DEBUG, "zte_mgmt_login_timemark_check: user_login_timemark is out of range [0, LONG_MAX).");
+ slog(MISC_PRINT, SLOG_DEBUG, "mgmt_login_timemark_check: user_login_timemark is out of range [0, LONG_MAX).");
}
sem_id = get_sem(TIME_SEM_KEY_2);
@@ -353,7 +353,7 @@
}
if ((time_now - luser_login_timemark) > LOGIN_TIMEOUT) {
- slog(MISC_PRINT, SLOG_DEBUG, "zte_mgmt_login_timemark_check: the login is timeout .");
+ slog(MISC_PRINT, SLOG_DEBUG, "mgmt_login_timemark_check: the login is timeout .");
(void)zte_web_write(NV_USER_IP_ADDR, "");
(void)zte_web_write(NV_LOGINFO, "timeout");
(void)zte_web_write(NV_COOKIE_ID, "");
@@ -420,7 +420,7 @@
//sc_cfg_save();
if ('\0' == (*language)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_mgmt_set_language: web para:[language] is empty string.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "mgmt_set_language: web para:[language] is empty string.\n"); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -456,20 +456,20 @@
{
/* if(verify_device_key(auth,strlen(auth),SEED,strlen(SEED)) != 1)
{
- slog(MISC_PRINT, SLOG_ERR, "zte_mgmt_set_devicemode: auth %s fail.\n",auth);
+ slog(MISC_PRINT, SLOG_ERR, "mgmt_set_devicemode: auth %s fail.\n",auth);
zte_write_result_to_web(wp, "set_devicemode fail:auth fail!");
return;
}*/
}
if ('\0' == (*debug_enable)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_mgmt_set_devicemode: web para:[debug_enable] is empty string.\n");
+ slog(MISC_PRINT, SLOG_ERR, "mgmt_set_devicemode: web para:[debug_enable] is empty string.\n");
zte_write_result_to_web(wp, "set_devicemode fail:parameter debug_enable is empty!");
return;
}
if (atoi(debug_enable) < 0 || atoi(debug_enable) > 3) {
- slog(MISC_PRINT, SLOG_ERR, "zte_mgmt_set_devicemode: web para:[debug_enable] is illegal string.\n");
+ slog(MISC_PRINT, SLOG_ERR, "mgmt_set_devicemode: web para:[debug_enable] is illegal string.\n");
zte_write_result_to_web(wp, "set_devicemode fail:parameter debug_enable is illegal!");
return;
}
@@ -595,7 +595,7 @@
void zte_goform_mgmt_syslog_process(webs_t wp)
{
- slog(MISC_PRINT, SLOG_DEBUG, "zte_goform_mgmt_syslog_process coming\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "goform_mgmt_syslog_process coming\n"); /*lint !e26*/
char_t *syslog_mode = NULL;
/* get value from web page */
syslog_mode = websGetVar(wp, T("syslog_mode"), T("all"));
@@ -788,7 +788,7 @@
slog(MISC_PRINT, SLOG_DEBUG, "current_psw or new_psw is NULL\n"); /*lint !e26*/
return -1;
}
- slog(MISC_PRINT, SLOG_NORMAL,"zte_mgmt_check_password old_psw:%s!\n", old_psw);
+ slog(MISC_PRINT, SLOG_NORMAL,"mgmt_check_password old_psw:%s!\n", old_psw);
if(old_psw_len < sizeof(old_psw_admin))
snprintf(old_psw_admin,old_psw_len+1,"%s",old_psw);
else
@@ -797,7 +797,7 @@
free(old_psw);
if (DATA_NO_SAFE == zte_Safe_noSpecialChar(old_psw_admin)) {
- slog(MISC_PRINT, SLOG_ERR,"zte_mgmt_check_password old_psw_admin Get Data is no Safe!\n");
+ slog(MISC_PRINT, SLOG_ERR,"mgmt_check_password old_psw_admin Get Data is no Safe!\n");
sc_cfg_set("data_safe", "failed");
return -1;
}
@@ -812,7 +812,7 @@
sc_cfg_set(NV_WEB_TOKEN, "");
security_log(MODULE_ID_WEB_CGI,"web checkpwd fail logout");
#endif
- slog(MISC_PRINT, SLOG_ERR,"zte_mgmt_check_password admin_Password fail!\n");
+ slog(MISC_PRINT, SLOG_ERR,"mgmt_check_password admin_Password fail!\n");
return -1;
}
}
@@ -851,8 +851,8 @@
return -1;
}
- slog(MISC_PRINT, SLOG_DEBUG,"zte_mgmt_handle_account new_psw:%s!\n", new_psw);
- slog(MISC_PRINT, SLOG_DEBUG,"zte_mgmt_handle_account new_user:%s!\n", new_user);
+ slog(MISC_PRINT, SLOG_DEBUG,"mgmt_handle_account new_psw:%s!\n", new_psw);
+ slog(MISC_PRINT, SLOG_DEBUG,"mgmt_handle_account new_user:%s!\n", new_user);
if(new_psw_len < sizeof(new_psw_admin))
snprintf(new_psw_admin,new_psw_len+1,"%s",new_psw);
else
@@ -867,20 +867,20 @@
free(new_user);
if (LOGIN_PSW_MIN_LEN > new_psw_len || LOGIN_PSW_MAX_LEN < new_psw_len) {
- slog(MISC_PRINT, SLOG_ERR,"zte_mgmt_handle_account new_psw_len is too long!\n");
+ slog(MISC_PRINT, SLOG_ERR,"mgmt_handle_account new_psw_len is too long!\n");
sc_cfg_set("data_safe", "failed");
return -1;
}
if (LOGIN_PSW_MIN_LEN > new_user_len || LOGIN_PSW_MAX_LEN < new_user_len) {
- slog(MISC_PRINT, SLOG_ERR,"zte_mgmt_handle_account new_user_len is too long!\n");
+ slog(MISC_PRINT, SLOG_ERR,"mgmt_handle_account new_user_len is too long!\n");
sc_cfg_set("data_safe", "failed");
return -1;
}
if (DATA_NO_SAFE == zte_Safe_noSpecialChar(new_psw_admin)
|| DATA_NO_SAFE == zte_Safe_noSpecialChar(new_user_admin)) {
- slog(MISC_PRINT, SLOG_ERR,"zte_mgmt_handle_account Get Data is no Safe!\n");
+ slog(MISC_PRINT, SLOG_ERR,"mgmt_handle_account Get Data is no Safe!\n");
sc_cfg_set("data_safe", "failed");
return -1;
}
@@ -903,13 +903,13 @@
system("smbd -D");
system("nmbd -D");
*/
- slog(MISC_PRINT, SLOG_DEBUG,"zte_mgmt_handle_account success!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"mgmt_handle_account success!\n");
return 0;
}
void zte_mgmt_change_account(webs_t wp)
{
- slog(MISC_PRINT, SLOG_NORMAL,"zte_mgmt_change_account ====================!\n");
+ slog(MISC_PRINT, SLOG_NORMAL,"mgmt_change_account ====================!\n");
if (0 != zte_mgmt_check_password(wp)) {
zte_write_result_to_web(wp, FAILURE);
@@ -1112,7 +1112,7 @@
slog(MISC_PRINT, SLOG_NORMAL, T("UFIx User disable pin!\n"));
(void)zte_web_write("pin_manage_process", "begin");
- slog(MISC_PRINT, SLOG_NORMAL, "zte_goform_mgmt_pin_mgmt_process send message: ZUFI_MODULE_ID_AT_MAIN, MSG_CMD_WEB_REQ_PIN_MANAGE");
+ slog(MISC_PRINT, SLOG_NORMAL, "goform_mgmt_pin_mgmt_process send message: ZUFI_MODULE_ID_AT_MAIN, MSG_CMD_WEB_REQ_PIN_MANAGE");
ret = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_AT_CTL, MSG_CMD_PIN_MANAGE_REQ, sizeof(T_zAt_PinManage), (UCHAR *)¶, 0);
if (0 != ret) {
sc_cfg_set("pin_manage_process", "");
@@ -1184,7 +1184,7 @@
slog(MISC_PRINT, SLOG_NORMAL, T("UFIx User enable pin!\n"));
(void)zte_web_write("pin_manage_process", "begin");
- slog(MISC_PRINT, SLOG_NORMAL, "zte_mgmt_enable_pin send message : ZUFI_MODULE_ID_AT_MAIN, MSG_CMD_WEB_REQ_PIN_MANAGE.");
+ slog(MISC_PRINT, SLOG_NORMAL, "mgmt_enable_pin send message : ZUFI_MODULE_ID_AT_MAIN, MSG_CMD_WEB_REQ_PIN_MANAGE.");
ret = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_AT_CTL, MSG_CMD_PIN_MANAGE_REQ, sizeof(T_zAt_PinManage), (UCHAR *)¶, 0);
if (0 != ret) {
sc_cfg_set("pin_manage_process", "");
@@ -1246,7 +1246,7 @@
strncpy(para.oldPin, pOldPin,sizeof(para.oldPin)-1);
strncpy(para.newPin, pNewPin,sizeof(para.newPin)-1);
(void)zte_web_write("pin_manage_process", "begin");
- slog(MISC_PRINT, SLOG_NORMAL, "zte_mgmt_modify_pin send message : ZUFI_MODULE_ID_AT_MAIN, MSG_CMD_WEB_REQ_PIN_MANAGE.");
+ slog(MISC_PRINT, SLOG_NORMAL, "mgmt_modify_pin send message : ZUFI_MODULE_ID_AT_MAIN, MSG_CMD_WEB_REQ_PIN_MANAGE.");
ret = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_AT_CTL, MSG_CMD_PIN_MANAGE_REQ, sizeof(T_zAt_PinManage), (UCHAR *)¶, 0);
if (0 != ret) {
sc_cfg_set("pin_manage_process", "");
@@ -1432,7 +1432,7 @@
zte_write_result_to_web(wp, FAILURE);
} else {
if (!zte_mgmt_login_timemark_set()) {
- slog(MISC_PRINT, SLOG_ERR, "[ERROR]zte_goform_whitelist_check -> timemark set error .\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "[ERROR]goform_whitelist_check -> timemark set error .\n"); /*lint !e26*/
}
zte_write_result_to_web(wp, SUCCESS);
}
@@ -1474,7 +1474,7 @@
zte_write_result_to_web(wp, FAILURE);
} else {
if (!zte_mgmt_login_timemark_set()) {
- slog(MISC_PRINT, SLOG_ERR, "[ERROR]zte_goform_whitelist_check -> timemark set error .\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "[ERROR]goform_whitelist_check -> timemark set error .\n"); /*lint !e26*/
}
zte_write_result_to_web(wp, SUCCESS);
}
@@ -2651,7 +2651,7 @@
if (0 == strcmp(update_action, FOTA_ACTION_CONFIRM_DOWNLOAD)) {
zte_web_write(NV_FOTA_UPGRADE_SELECTOR, "accept");
//zte_web_write(NV_FOTA_NEED_USER_CONFIRM,"0");
- slog(MISC_PRINT, SLOG_DEBUG,"web :zte_fota_update. update_action = FOTA_ACTION_CONFIRM_DOWNLOAD, set NV_FOTA_UPGRADE_SELECTOR accept!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"web :fota_update. update_action = FOTA_ACTION_CONFIRM_DOWNLOAD, set NV_FOTA_UPGRADE_SELECTOR accept!\n");
//zte_fota_SendMsg2DM(MSG_CMD_FOTA_WEBUI_START_DOWNLOAD);
//ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_DM_WEBUI_AT,MSG_CMD_FOTA_WEBUI_START_DOWNLOAD, 2, "1", 0);
iDlPara = 1;
@@ -2661,11 +2661,11 @@
zte_web_write(NV_FOTA_NEW_VERSION_STATE, IDLE);
zte_web_write(NV_FOTA_CURR_UPGRADE_STATE, IDLE);
- slog(MISC_PRINT, SLOG_DEBUG,"web :zte_fota_update. update_action = FOTA_ACTION_CANCEL_DOWNLOAD, set NV_FOTA_UPGRADE_SELECTOR cancel!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"web :fota_update. update_action = FOTA_ACTION_CANCEL_DOWNLOAD, set NV_FOTA_UPGRADE_SELECTOR cancel!\n");
zte_write_result_to_web(wp, SUCCESS);
return; //no need to send msg to ota module
} else if (0 == strcmp(update_action, "check")) {
- slog(MISC_PRINT, SLOG_DEBUG,"goahead :zte_fota_update. begin to check!!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"goahead :fota_update. begin to check!!\n");
zte_fota_SendMsg2DM(MSG_CMD_FOTA_WEBUI_START_FOTA);
}
@@ -2696,8 +2696,8 @@
updateMode = websGetVar(wp, T("UpgMode"), T(""));
allowRoamingUpdate = websGetVar(wp, T("UpgRoamPermission"), T(""));
- slog(MISC_PRINT, SLOG_DEBUG,"zte_fota_settings web para:[updateMode] is [%s].\n", updateMode);
- slog(MISC_PRINT, SLOG_DEBUG,"zte_fota_settings web para:[allowRoamingUpdate] is [%s].\n", allowRoamingUpdate);
+ slog(MISC_PRINT, SLOG_DEBUG,"fota_settings web para:[updateMode] is [%s].\n", updateMode);
+ slog(MISC_PRINT, SLOG_DEBUG,"fota_settings web para:[allowRoamingUpdate] is [%s].\n", allowRoamingUpdate);
if ('\0' == (*updateMode)) {
zte_write_result_to_web(wp, FAILURE);
@@ -2759,9 +2759,9 @@
return;
}
- WEBLOG("zte_get_fota_settings:[updateMode] is [%s].\n", updateMode);
- WEBLOG("zte_get_fota_settings:[updateIntervalDay] is [%s].\n", updateIntervalDay);
- WEBLOG("zte_get_fota_settings:[allowRoamingUpdate] is [%s].\n", allowRoamingUpdate);
+ WEBLOG("get_fota_settings:[updateMode] is [%s].\n", updateMode);
+ WEBLOG("get_fota_settings:[updateIntervalDay] is [%s].\n", updateIntervalDay);
+ WEBLOG("get_fota_settings:[allowRoamingUpdate] is [%s].\n", allowRoamingUpdate);
web_feedback_header(wp);
zte_rest_cmd_write_head(wp);
@@ -2808,7 +2808,7 @@
void zte_wan_lock_frequency_process(webs_t wp)
{
- slog(MISC_PRINT, SLOG_NORMAL, "zte_wan_lock_frequency_process coming");
+ slog(MISC_PRINT, SLOG_NORMAL, "wan_lock_frequency_process coming");
CHAR *actionlte = NULL;
CHAR *uarfcnlte = NULL;
CHAR *cellParaIdlte = NULL;
@@ -2889,35 +2889,35 @@
int check_lock = 0;
if (NULL == psw) {
- slog(MISC_PRINT, SLOG_DEBUG, "zte_mgmt_login: psw is empty.");
+ slog(MISC_PRINT, SLOG_DEBUG, "mgmt_login: psw is empty.");
return PSW_EMPTY;
}
- slog(MISC_PRINT, SLOG_DEBUG, "zte_mgmt_login:psw:%s", psw);
+ slog(MISC_PRINT, SLOG_DEBUG, "mgmt_login:psw:%s", psw);
//don't foget add the nv psw_fail_num_str
zte_web_read("psw_fail_num_str", psw_fail_num_str);
psw_fail_num = atoi(psw_fail_num_str);
psw_len = strlen(psw);
if (0 == psw_len) {
- slog(MISC_PRINT, SLOG_ERR, "zte_mgmt_login: psw is empty.");
+ slog(MISC_PRINT, SLOG_ERR, "mgmt_login: psw is empty.");
return PSW_EMPTY;
}
if (psw_fail_num <= 0) {
check_lock = zte_checkLoginTime(); // check the current time if it is time out
if (check_lock < 0) {
- slog(MISC_PRINT, SLOG_ERR, "zte_mgmt_login: psw number use out.");
+ slog(MISC_PRINT, SLOG_ERR, "mgmt_login: psw number use out.");
return PSW_TIME_OUT;
// } else if (check_lock > 0) { // kw 3
}else{
- slog(MISC_PRINT, SLOG_DEBUG, "zte_mgmt_login: login time out, can login.");
+ slog(MISC_PRINT, SLOG_DEBUG, "mgmt_login: login time out, can login.");
(void)zte_web_write("psw_fail_num_str", LOGIN_FAIL_TIMES);
}
}
zte_setLastLoginTime(); //record current time to nv
if (LOGIN_PSW_MIN_LEN > psw_len || LOGIN_PSW_MAX_LEN < psw_len) {
- slog(MISC_PRINT, SLOG_ERR, "zte_mgmt_login: psw is too long.");
+ slog(MISC_PRINT, SLOG_ERR, "mgmt_login: psw is too long.");
return PSW_TOO_LONG;
} else {
return PSW_OK;
@@ -2974,10 +2974,10 @@
char_t *work_type = NULL;
work_type = websGetVar(wp, T("work_type"), T(""));
- slog(MISC_PRINT, SLOG_DEBUG,"[zyl]zte_goform_set_work_type:work_type->%s\n", work_type);
+ slog(MISC_PRINT, SLOG_DEBUG,"[zyl]goform_set_work_type:work_type->%s\n", work_type);
if (work_type == NULL) {
- slog(MISC_PRINT, SLOG_ERR,"[zyl]zte_goform_set_work_type:empty!\n");
+ slog(MISC_PRINT, SLOG_ERR,"[zyl]goform_set_work_type:empty!\n");
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -2988,13 +2988,13 @@
return zte_write_result_to_web(wp, SUCCESS);
}
(void)zte_web_write("LanEnable", work_type);
- slog(MISC_PRINT, SLOG_DEBUG,"[zyl]zte_goform_set_work_type:work_type->%s\n", work_type);
+ slog(MISC_PRINT, SLOG_DEBUG,"[zyl]goform_set_work_type:work_type->%s\n", work_type);
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MAIN_CTRL, MSG_CMD_RESTART_REQUEST, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL,"[zyl]zte_goform_set_work_type:device reboot now\n");
+ slog(MISC_PRINT, SLOG_NORMAL,"[zyl]goform_set_work_type:device reboot now\n");
zte_write_result_to_web(wp, SUCCESS);
return;
} else {
- slog(MISC_PRINT, SLOG_ERR,"[zyl]zte_goform_set_work_type:work_type->%s error!\n", work_type);
+ slog(MISC_PRINT, SLOG_ERR,"[zyl]goform_set_work_type:work_type->%s error!\n", work_type);
zte_write_result_to_web(wp, FAILURE);
return;
}
diff --git a/ap/app/goahead/interface5.0/zte_web_pbm.c b/ap/app/goahead/interface5.0/zte_web_pbm.c
index f73b8ba..c97a1e1 100755
--- a/ap/app/goahead/interface5.0/zte_web_pbm.c
+++ b/ap/app/goahead/interface5.0/zte_web_pbm.c
@@ -28,10 +28,10 @@
(void)zte_web_read(ZTE_PBM_NV, flag);
if (0 == strcmp(flag, PBM_OPRATING)) {
- slog(MISC_PRINT, SLOG_DEBUG,"[PB] zte_web_pbm_check_can_process flag=%s, not can process.\n", flag);
+ slog(MISC_PRINT, SLOG_DEBUG,"[PB] web_pbm_check_can_process flag=%s, not can process.\n", flag);
return 0;
} else {
- slog(MISC_PRINT, SLOG_DEBUG,"[PB] zte_web_pbm_check_can_process flag=%s, can process.\n", flag);
+ slog(MISC_PRINT, SLOG_DEBUG,"[PB] web_pbm_check_can_process flag=%s, can process.\n", flag);
return -1;
}
}
@@ -84,11 +84,11 @@
//add by liuyingnan for server safe end
/*LOG*/
- slog(MISC_PRINT, SLOG_DEBUG, "zte_web_pbm->zte_web_pbm_contact_saveto_sim()."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "web_pbm->web_pbm_contact_saveto_sim()."); /*lint !e26*/
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_goform_pbm_contact_add_process(): invalid input.."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->goform_pbm_contact_add_process(): invalid input.."); /*lint !e26*/
return;
}
@@ -132,11 +132,11 @@
} else {
sim_contact_add.zte_pbm_type = ZTE_WEB_PBM_NUMBER_TYPE_2;
}
- slog(MISC_PRINT, SLOG_DEBUG, "zte_web_pbm_contact_saveto_sim:send messsage to mc start"); /*lint !e26*/
- slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.zte_pbm_id:%d", sim_contact_add.zte_pbm_id); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "web_pbm_contact_saveto_sim:send messsage to mc start"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.pbm_id:%d", sim_contact_add.zte_pbm_id); /*lint !e26*/
slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.name:%s", sim_contact_add.zte_pbm_name); /*lint !e26*/
slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.mobilephone_num:%s", sim_contact_add.zte_pbm_number); /*lint !e26*/
- slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.zte_pbm_type:%d", sim_contact_add.zte_pbm_type); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.pbm_type:%d", sim_contact_add.zte_pbm_type); /*lint !e26*/
/*send msg to mc*/
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL,ZTE_PBM_WRITE_REC_MSG, sizeof(sim_contact_add), (char*)&sim_contact_add);
@@ -149,7 +149,7 @@
return;
}
- slog(MISC_PRINT, SLOG_NORMAL, "zte_web_pbm_contact_saveto_sim:send messsage to mc end"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "web_pbm_contact_saveto_sim:send messsage to mc end"); /*lint !e26*/
/*goto web page*/
zte_write_result_to_web(wp, "success");
return;
@@ -175,17 +175,17 @@
char* pbm_mobilephone_num = NULL;
//add by liuyingnan for server safe end
/*LOG*/
- slog(MISC_PRINT, SLOG_DEBUG, "zte_web_pbm->zte_web_pbm_contact_saveto_pc()."); /*lint !e26*/
- slog(MISC_PRINT, SLOG_DEBUG,"[PB] zte_web_pbm_contact_saveto_pc entry\n");
+ slog(MISC_PRINT, SLOG_DEBUG, "web_pbm->web_pbm_contact_saveto_pc()."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"[PB] web_pbm_contact_saveto_pc entry\n");
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_web_pbm_contact_saveto_pc(): invalid input.."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->web_pbm_contact_saveto_pc(): invalid input.."); /*lint !e26*/
return;
}
//add by liuyingnan for server safe for xss attack start
pbm_name = websGetVar(wp, T("name"), T(""));
pbm_mobilephone_num = websGetVar(wp, T("mobilephone_num"), T(""));
- slog(MISC_PRINT, SLOG_DEBUG,"[PB] zte_web_pbm_contact_saveto_pc entry1\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[PB] web_pbm_contact_saveto_pc entry1\n");
if (PBM_MAX_TEXT_LENGTH < strlen(pbm_name) || PBM_MAX_NUM_LENGTH < strlen(pbm_mobilephone_num)
||DATA_NO_SAFE == zte_Safe_noSpecialChar_ucs2(pbm_name)
|| DATA_NO_SAFE == zte_Safe_noSpecialChar(pbm_mobilephone_num)
@@ -196,7 +196,7 @@
return;
}
//add by liuyingnan for server safe for xss attack end
- slog(MISC_PRINT, SLOG_DEBUG,"[PB] zte_web_pbm_contact_saveto_pc entry2\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[PB] web_pbm_contact_saveto_pc entry2\n");
/*init contact_add*/
memset(&pc_contact_add, 0, sizeof(pc_contact_add));
/*set struct value*/
@@ -224,12 +224,12 @@
} else {
pc_contact_add.zte_pbm_type = ZTE_WEB_PBM_NUMBER_TYPE_2;
}
- slog(MISC_PRINT, SLOG_DEBUG, "zte_web_pbm_contact_saveto_pc:send messsage to mc start"); /*lint !e26*/
- slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.zte_pbm_id:%d", pc_contact_add.zte_pbm_id); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "web_pbm_contact_saveto_pc:send messsage to mc start"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.pbm_id:%d", pc_contact_add.zte_pbm_id); /*lint !e26*/
slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.name:%s", pc_contact_add.zte_pbm_name); /*lint !e26*/
slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.mobilephone_num:%s", pc_contact_add.zte_pbm_number); /*lint !e26*/
- slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.zte_pbm_type:%d", pc_contact_add.zte_pbm_type); /*lint !e26*/
- printf("[PB] zte_web_pbm_contact_saveto_pc entry3\n");
+ slog(MISC_PRINT, SLOG_DEBUG, "sim_contact_add.pbm_type:%d", pc_contact_add.zte_pbm_type); /*lint !e26*/
+ printf("[PB] web_pbm_contact_saveto_pc entry3\n");
/*send msg to mc*/
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL,ZTE_PBM_WRITE_REC_MSG, sizeof(pc_contact_add), (char*)&pc_contact_add);
(void)zte_web_write(ZTE_PBM_NV, PBM_OPRATING);
@@ -240,8 +240,8 @@
zte_write_result_to_web(wp, FAILURE);
return;
}
- printf("zte_web_pbm_contact_saveto_pc:%d,%d,%d,%d\n", ret_code, MODULE_ID_WEB_CGI, MODULE_ID_PB, MSG_CMD_WRITE_PB);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_web_pbm_contact_saveto_pc:send messsage to mc end"); /*lint !e26*/
+ printf("web_pbm_contact_saveto_pc:%d,%d,%d,%d\n", ret_code, MODULE_ID_WEB_CGI, MODULE_ID_PB, MSG_CMD_WRITE_PB);
+ slog(MISC_PRINT, SLOG_NORMAL, "web_pbm_contact_saveto_pc:send messsage to mc end"); /*lint !e26*/
/*goto web page*/
zte_write_result_to_web(wp, "success");
}
@@ -269,7 +269,7 @@
/*check input*/
if (NULL == input || NULL == output || srcLen == 0 || destLen == 0) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_web_pbm_utils_parseStr():invalid input."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->web_pbm_utils_parseStr():invalid input."); /*lint !e26*/
return 0;
}
@@ -277,7 +277,7 @@
for (input_ind = 0; input_ind < srcLen; input_ind++) {
//kw
if (all_ind > destLen) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_web_pbm_utils_parseStr():invalid param."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->web_pbm_utils_parseStr():invalid param."); /*lint !e26*/
return 0;
}
@@ -330,7 +330,7 @@
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_web_pbm_contact_del_part(): invalid input.."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->web_pbm_contact_del_part(): invalid input.."); /*lint !e26*/
return;
}
@@ -344,7 +344,7 @@
memcpy(del_index, websGetVar(wp, T("delete_id"), T("")), sizeof(del_index));
sendto_data.zte_del_pbm_total = zte_web_pbm_utils_parseStr(del_index, (char *)split_index,
(int)ZTE_PB_INDEX_MAX, (int)ZTE_WEB_PBM_REC_LEN, (char)ZTE_WEB_PBM_INDEX_SPLIT_FLAG);
- slog(MISC_PRINT, SLOG_DEBUG,"liuyingnan sendto_data.zte_del_pbm_total:%d", sendto_data.zte_del_pbm_total); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"liuyingnan sendto_data.del_pbm_total:%d", sendto_data.zte_del_pbm_total); /*lint !e26*/
/*del one contact*/
if (ZTE_WEB_PBM_DEL_MULT_OR_ONE_FLAG == sendto_data.zte_del_pbm_total) {
@@ -352,15 +352,15 @@
#if 0
if (-1 == zte_mc_relay_pbm_del_one_record(&sendto_data)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_web_pbm_contact_del_part():delete one contact failed."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->web_pbm_contact_del_part():delete one contact failed."); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
#endif
- slog(MISC_PRINT, SLOG_NORMAL, "zte_web_pbm_contact_del_part:send messsage start"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "web_pbm_contact_del_part:send messsage start"); /*lint !e26*/
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL,ZTE_PBM_DEL_A_REC_MSG, sizeof(sendto_data), (char*)&sendto_data);
ret_code = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_PB, MSG_CMD_DEL_A_PB, sizeof(sendto_data), (char*)&sendto_data, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_web_pbm_contact_del_part:send messsage end"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "web_pbm_contact_del_part:send messsage end"); /*lint !e26*/
if (ret_code != 0) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay pbm send DEL A record fail"); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
@@ -370,13 +370,13 @@
/*handler*/
for (num_ind = 0; num_ind < sendto_data.zte_del_pbm_total; num_ind ++) {
sendto_data.zte_del_pbm_id[num_ind] = atoi(split_index[num_ind]);
- printf("zte_web_pbm->zte_web_pbm_contact_del_part():split_index=[%d]", sendto_data.zte_del_pbm_id[num_ind]); /*lint !e26*/
+ printf("web_pbm->web_pbm_contact_del_part():split_index=[%d]", sendto_data.zte_del_pbm_id[num_ind]); /*lint !e26*/
}
/*handler*/
#if 0
if (-1 == zte_mc_relay_pbm_del_multi_record(&sendto_data)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_web_pbm_contact_del_part():delete mult contact failed."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->web_pbm_contact_del_part():delete mult contact failed."); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
return;
}
@@ -414,7 +414,7 @@
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_web_pbm_contact_del_all(): invalid input.."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->web_pbm_contact_del_all(): invalid input.."); /*lint !e26*/
return;
}
@@ -423,14 +423,14 @@
/*set data struct*/
sendto_data.zte_del_pbm_location = atoi(websGetVar(wp, T("del_all_location"), T("")));
- slog(MISC_PRINT, SLOG_DEBUG, "liuyingnan sendto_data.zte_del_pbm_location:%d", sendto_data.zte_del_pbm_location); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "liuyingnan sendto_data.del_pbm_location:%d", sendto_data.zte_del_pbm_location); /*lint !e26*/
/*handler del all*/
//(void)zte_mc_relay_pbm_del_all_record(&sendto_data);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_web_pbm_contact_del_all:send messsage start"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "web_pbm_contact_del_all:send messsage start"); /*lint !e26*/
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL,ZTE_PBM_DEL_ALL_REC_MSG, sizeof(sendto_data), (char*)&sendto_data);
ret_code = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_PB, MSG_CMD_DEL_ALL_PB, sizeof(sendto_data), (char*)&sendto_data, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_web_pbm_contact_del_all:send messsage end"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "web_pbm_contact_del_all:send messsage end"); /*lint !e26*/
if (ret_code != 0) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay pbm send DEL ALL record fail"); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
@@ -461,7 +461,7 @@
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_web_pbm_contact_del_by_group(): invalid input.."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->web_pbm_contact_del_by_group(): invalid input.."); /*lint !e26*/
return;
}
@@ -478,7 +478,7 @@
/*set data struct*/
sendto_data.zte_del_pbm_location = atoi(websGetVar(wp, T("del_all_location"), T("0")));
- slog(MISC_PRINT, SLOG_DEBUG, "liuyingnan sendto_data.zte_del_pbm_location:%d", sendto_data.zte_del_pbm_location); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "liuyingnan sendto_data.del_pbm_location:%d", sendto_data.zte_del_pbm_location); /*lint !e26*/
if (ZTE_NVIO_DONE != zte_web_write("pbm_group", group)) {
slog(MISC_PRINT, SLOG_ERR, "write the nv [pbm_group] failure.\n"); /*lint !e26*/
@@ -490,16 +490,16 @@
#if 0
if (ZTE_MC_OK_S != zte_mc_relay_pbm_del_all_record(&sendto_data)) {
- slog(MISC_PRINT, SLOG_ERR, "call zte_mc_relay_pbm_del_all_record fail.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "call mc_relay_pbm_del_all_record fail.\n"); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
} else {
zte_write_result_to_web(wp, SUCCESS);
}
#endif
- slog(MISC_PRINT, SLOG_NORMAL, "zte_web_pbm_contact_del_by_group:send messsage start"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "web_pbm_contact_del_by_group:send messsage start"); /*lint !e26*/
//ret_code = zte_send_message(ZUFI_MODULE_ID_AT_LOCAL,ZTE_PBM_DEL_ALL_REC_MSG, sizeof(sendto_data), (char*)&sendto_data);
ret_code = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_PB, MSG_CMD_DEL_ALL_PB, sizeof(sendto_data), (char*)&sendto_data, 0);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_web_pbm_contact_del_by_group:send messsage end"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "web_pbm_contact_del_by_group:send messsage end"); /*lint !e26*/
if (ret_code != 0) {
slog(MISC_PRINT, SLOG_ERR, "mc lib relay pbm send DEL record by group fail"); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
@@ -528,7 +528,7 @@
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_goform_pbm_contact_add_process(): invalid input.."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->goform_pbm_contact_add_process(): invalid input.."); /*lint !e26*/
return;
}
@@ -539,22 +539,22 @@
/*get the saved mem*/
contact_location = atoi(websGetVar(wp, T("location"), T("")));
- slog(MISC_PRINT, SLOG_DEBUG,"[PB] zte_web_pbm_check_can_process contact_location=%d, can process.\n", contact_location);
+ slog(MISC_PRINT, SLOG_DEBUG,"[PB] web_pbm_check_can_process contact_location=%d, can process.\n", contact_location);
/*goto different mem handler*/
switch (contact_location) {
case ZTE_WEB_PBM_CONTACT_SIM: { /*goto sim mem handler*/
- slog(MISC_PRINT, SLOG_DEBUG,"[PB] zte_web_pbm_check_can_process sim=%d, can process.\n", ZTE_WEB_PBM_CONTACT_SIM);
+ slog(MISC_PRINT, SLOG_DEBUG,"[PB] web_pbm_check_can_process sim=%d, can process.\n", ZTE_WEB_PBM_CONTACT_SIM);
zte_web_pbm_contact_saveto_sim(wp, ZTE_WEB_PBM_CONTACT_SIM);
break;
}
case ZTE_WEB_PBM_CONTACT_PC: { /*goto pc mem handler*/
- slog(MISC_PRINT, SLOG_DEBUG,"[PB] zte_web_pbm_check_can_process pc=%d, can process.\n", ZTE_WEB_PBM_CONTACT_PC);
+ slog(MISC_PRINT, SLOG_DEBUG,"[PB] web_pbm_check_can_process pc=%d, can process.\n", ZTE_WEB_PBM_CONTACT_PC);
zte_web_pbm_contact_saveto_pc(wp, ZTE_WEB_PBM_CONTACT_PC);
break;
}
default: { /*unknown mem*/
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_goform_pbm_contact_add_process():unknown pbm mem."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->goform_pbm_contact_add_process():unknown pbm mem."); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
}
}
@@ -564,7 +564,7 @@
{
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_web_pbm_contact_del_all(): invalid input.."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->web_pbm_contact_del_all(): invalid input.."); /*lint !e26*/
return;
}
@@ -588,7 +588,7 @@
}
else {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_pbm->zte_goform_pbm_contact_del_process():unknown pbm del."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_pbm->goform_pbm_contact_del_process():unknown pbm del."); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
}
@@ -623,7 +623,7 @@
mem_store = websGetVar(wp, "mem_store", T(""));
if (('\0' == *page) || ('\0' == *data_per_page) || ('\0' == *mem_store)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_get_pbm_data: invalid web para.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "get_pbm_data: invalid web para.\n"); /*lint !e26*/
zte_web_pbm_feed_back_empty(wp);
return ;
}
@@ -633,7 +633,7 @@
if((tmp_page < 0 || tmp_page > 255)
||(tmp_num_per_page < 0 || tmp_num_per_page > 255)
||(location < PBM_LOCATION_SIM || location > PBM_LOCATION_MAX)){
- slog(MISC_PRINT, SLOG_ERR, "zte_get_pbm_data:err[%d,%d,%d]\n", tmp_page,tmp_num_per_page,location); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "get_pbm_data:err[%d,%d,%d]\n", tmp_page,tmp_num_per_page,location); /*lint !e26*/
zte_web_pbm_feed_back_empty(wp);
return ;
}
@@ -657,7 +657,7 @@
slog(MISC_PRINT, SLOG_DEBUG, "GET PBM DATA FROM DB END.\n"); /*lint !e26*/
if (-1 == result) {
- slog(MISC_PRINT, SLOG_ERR, "call zte_libpbm_get_rec_data fail.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "call libpbm_get_rec_data fail.\n"); /*lint !e26*/
zte_web_pbm_feed_back_empty(wp);
//free
// if (NULL != p_pbm_query_result) { // kw 3
@@ -744,7 +744,7 @@
pbm_group = websGetVar(wp, "pbm_group", T("")); //not to check whether is empty
if (('\0' == *page) || ('\0' == *data_per_page) || ('\0' == *mem_store)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_get_pbm_data: invalid web para.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "get_pbm_data: invalid web para.\n"); /*lint !e26*/
zte_web_pbm_feed_back_empty(wp);
return ;
}
@@ -918,7 +918,7 @@
result = zte_libpbm_get_capability(&pbm_para_query_info, &pbm_sim_capability_s, &pbm_device_capability_s);
slog(MISC_PRINT, SLOG_DEBUG, "GET PBM DATA FROM DB END.\n"); /*lint !e26*/
if (-1 == result) {
- slog(MISC_PRINT, SLOG_ERR, "call zte_libpbm_get_capability fail.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "call libpbm_get_capability fail.\n"); /*lint !e26*/
zte_web_pbm_feed_back_empty(wp);
return ;
}
diff --git a/ap/app/goahead/interface5.0/zte_web_rest.c b/ap/app/goahead/interface5.0/zte_web_rest.c
index 95b1f8f..44455c1 100644
--- a/ap/app/goahead/interface5.0/zte_web_rest.c
+++ b/ap/app/goahead/interface5.0/zte_web_rest.c
@@ -45,22 +45,22 @@
char_t *action = NULL;
char_t *zte_goform_id = NULL;
- slog(MISC_PRINT, SLOG_DEBUG, "[zte_xml_switch_handler>>wp->path]:%s\n", wp->query); /*lint !e26 !e1013*/
+ slog(MISC_PRINT, SLOG_DEBUG, "[xml_switch_handler>>wp->path]:%s\n", wp->query); /*lint !e26 !e1013*/
zte_goform_id = websGetVar(wp, T("goformId"), T(""));
action = websGetVar(wp, T("action_process"), T(""));
- slog(MISC_PRINT, SLOG_DEBUG, "[zte_xml_switch_handler>>test websGetVar]:%s\n", zte_goform_id); /*lint !e26*/
- slog(MISC_PRINT, SLOG_DEBUG, "[zte_xml_switch_handler>>action]:%s\n", action); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "[xml_switch_handler>>test websGetVar]:%s\n", zte_goform_id); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "[xml_switch_handler>>action]:%s\n", action); /*lint !e26*/
if (0 == strcmp(action, "get")) {
zte_goform_get_cmd_process(wp,T(""),T("")); /*lint !e1013*/
- slog(MISC_PRINT, SLOG_DEBUG, "[zte_xml_switch_handler]:get action end\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "[xml_switch_handler]:get action end\n"); /*lint !e26*/
return;
} else if (0 == strcmp(action, "set")) {
zte_goform_set_cmd_process(wp,T(""),T(""));/*lint !e1013*/
- slog(MISC_PRINT, SLOG_DEBUG, "[zte_xml_switch_handler]:set action end\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "[xml_switch_handler]:set action end\n"); /*lint !e26*/
return;
} else {
- slog(MISC_PRINT, SLOG_DEBUG, "[zte_xml_switch_handler]:Can not find action\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "[xml_switch_handler]:Can not find action\n"); /*lint !e26*/
return;
}
@@ -80,17 +80,17 @@
xml = & (root->xml);
if(xml == NULL)
return;
- //slog(MISC_PRINT,SLOG_DEBUG,"[zte_change_wp_query_new]:xml->name:%s",xml->name);/*lint !e26*/
+ //slog(MISC_PRINT,SLOG_DEBUG,"[change_wp_query_new]:xml->name:%s",xml->name);/*lint !e26*/
action_tag = xml->child;
if (! action_tag) {
- slog(MISC_PRINT, SLOG_DEBUG, "[zte_change_wp_query_new]:action_tag is NULL or the xml_str is not full!"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "[change_wp_query_new]:action_tag is NULL or the xml_str is not full!"); /*lint !e26*/
//zte_write_result_to_web(wp,"action_tag is NULL!");
return;
} else {
while (action_tag) {
- slog(MISC_PRINT, SLOG_DEBUG, "[zte_change_wp_query_new]:name:%s", action_tag->name); /*lint !e26*/
- slog(MISC_PRINT, SLOG_DEBUG, "[zte_change_wp_query_new]:text:%s", action_tag->txt); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "[change_wp_query_new]:name:%s", action_tag->name); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "[change_wp_query_new]:text:%s", action_tag->txt); /*lint !e26*/
websSetVar(wp, action_tag->name, action_tag->txt);
action_tag = action_tag->sibling;
}
@@ -341,7 +341,7 @@
void zte_rest_get_sms_data(webs_t wp, zte_sms_query_result *p_sms_query_result, int i, int tag)
{
if (wp->flags & WEBS_XML_CLIENT_REQUEST) {
- slog(MISC_PRINT, SLOG_DEBUG, "zte_rest_get_sms_data WEBS_XML_CLIENT_REQUEST");
+ slog(MISC_PRINT, SLOG_DEBUG, "rest_get_sms_data WEBS_XML_CLIENT_REQUEST");
char *tmp_num = NULL;
char pbm_name[100] = {0};
int len = 0;
diff --git a/ap/app/goahead/interface5.0/zte_web_sms.c b/ap/app/goahead/interface5.0/zte_web_sms.c
index 23b544e..d27e610 100755
--- a/ap/app/goahead/interface5.0/zte_web_sms.c
+++ b/ap/app/goahead/interface5.0/zte_web_sms.c
@@ -99,7 +99,7 @@
if ((0 != strcmp(buf1, "yes"))
|| (0 == strcmp(buf2, "no"))
|| (0 == strcmp(buf3, "0"))) {
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_sms_check_can_send_sms, no need to check!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] sms_check_can_send_sms, no need to check!\n");
return 0;
}
@@ -214,7 +214,7 @@
}
- slog(MISC_PRINT, SLOG_DEBUG,"zte_sms_send_msg_process:year is [%s];"\
+ slog(MISC_PRINT, SLOG_DEBUG,"sms_send_msg_process:year is [%s];"\
"month is [%s];day is [%s];hour is [%s];minute is [%s];second is [%s];timezone is [%s].\n", \
MSG_SEND_ST.date.year, MSG_SEND_ST.date.month, MSG_SEND_ST.date.day, \
MSG_SEND_ST.date.hour, MSG_SEND_ST.date.min, MSG_SEND_ST.date.sec, \
@@ -269,11 +269,11 @@
/* mc interface */
zte_sms_handle_DB_status_whenSend(WMS_CMD_PROCESSING);
if (ZTE_MC_OK_S == zte_mc_relay_sms_send_msg((T_zUfiSms_SendReq*)(&MSG_SEND_ST))) {
- slog(MISC_PRINT, SLOG_NORMAL, "zte_sms_send_msg_process:Send message to mc successful!\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "sms_send_msg_process:Send message to mc successful!\n"); /*lint !e26*/
zte_write_result_to_web(wp, SUCCESS);
} else {
zte_sms_handle_DB_status_whenSend(WMS_CMD_FAILED);
- slog(MISC_PRINT, SLOG_ERR, "zte_sms_send_msg_process:Send message to mc fail!\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "sms_send_msg_process:Send message to mc fail!\n"); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
}
@@ -366,7 +366,7 @@
}
- slog(MISC_PRINT, SLOG_DEBUG, "zte_sms_save_msg_process:year is [%s];"\
+ slog(MISC_PRINT, SLOG_DEBUG, "sms_save_msg_process:year is [%s];"\
"month is [%s];day is [%s];hour is [%s];minute is [%s];second is [%s];timezone is [%s].\n", \
MSG_SAVE_ST.date.year, MSG_SAVE_ST.date.month, MSG_SAVE_ST.date.day, \
MSG_SAVE_ST.date.hour, MSG_SAVE_ST.date.min, MSG_SAVE_ST.date.sec, \
@@ -468,16 +468,16 @@
}
for (j = 0; j < msg_id_count; j++) {
- slog(MISC_PRINT, SLOG_DEBUG,"zte_sms_delete_msg_process:delete msg number:[%lu]\n", del_sms_setting.id[j]);/*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"sms_delete_msg_process:delete msg number:[%lu]\n", del_sms_setting.id[j]);/*lint !e26*/
}
/* mc interface */
zte_sms_handle_DB_status(WMS_SMS_CMD_MSG_DELETE, WMS_CMD_PROCESSING);
if (ZTE_MC_OK_S == zte_mc_relay_sms_delete_msg((T_zUfiSms_DelReq*)(&del_sms_setting))) {
- slog(MISC_PRINT, SLOG_DEBUG,"zte_sms_delete_msg_process:send delete sms cmd to mc success.\n");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"sms_delete_msg_process:send delete sms cmd to mc success.\n");/*lint !e26*/
zte_write_result_to_web(wp, SUCCESS);
} else {
- slog(MISC_PRINT, SLOG_DEBUG,"zte_sms_delete_msg_process:send delete sms cmd to mc fail.\n");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG,"sms_delete_msg_process:send delete sms cmd to mc fail.\n");/*lint !e26*/
zte_sms_handle_DB_status(WMS_SMS_CMD_MSG_DELETE, WMS_CMD_FAILED);
zte_write_result_to_web(wp, FAILURE);
}
@@ -510,19 +510,19 @@
del_sms_setting.id[i] = atoi(msg_id_separate[i]);
}
- slog(MISC_PRINT, SLOG_DEBUG, "zte_sms_move_to_sim_msg_process:del_sms_setting.all_or_count is [%lu]\n", del_sms_setting.all_or_count);
+ slog(MISC_PRINT, SLOG_DEBUG, "sms_move_to_sim_msg_process:del_sms_setting.all_or_count is [%lu]\n", del_sms_setting.all_or_count);
for (j = 0; j < msg_id_count; j++) {
- slog(MISC_PRINT, SLOG_DEBUG, "zte_sms_move_to_sim_msg_process:move msg number:[%lu]\n", del_sms_setting.id[j]);
+ slog(MISC_PRINT, SLOG_DEBUG, "sms_move_to_sim_msg_process:move msg number:[%lu]\n", del_sms_setting.id[j]);
}
/* mc interface */
if (ZTE_MC_OK_S == zte_mc_relay_sms_move_to_sim_msg((T_zUfiSms_DelReq*)(&del_sms_setting))) {
- slog(MISC_PRINT, SLOG_NORMAL, "zte_sms_move_to_sim_msg_process:send move sms cmd to mc success.\n");
+ slog(MISC_PRINT, SLOG_NORMAL, "sms_move_to_sim_msg_process:send move sms cmd to mc success.\n");
zte_write_result_to_web(wp, SUCCESS);
} else {
- slog(MISC_PRINT, SLOG_ERR, "zte_sms_move_to_sim_msg_process:send move sms cmd to mc fail.\n");
+ slog(MISC_PRINT, SLOG_ERR, "sms_move_to_sim_msg_process:send move sms cmd to mc fail.\n");
zte_write_result_to_web(wp, FAILURE);
}
@@ -555,7 +555,7 @@
MSG_DEL_TYPE_ST.eLocation = SMS_LOCATION_ME;
MSG_DEL_TYPE_ST.eBoxName = SMS_DRAFTBOX;
}
- slog(MISC_PRINT, SLOG_NORMAL, "zte_goform_sms_alldel_msg_process send message: MODULE_ID_SMS, MSG_CMD_DEL_SMS_BY_TYPE");/*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "goform_sms_alldel_msg_process send message: MODULE_ID_SMS, MSG_CMD_DEL_SMS_BY_TYPE");/*lint !e26*/
//ret = zte_send_message(MODULE_ID_SMS, MSG_CMD_DEL_SMS_BY_TYPE,sizeof(WEB_DEL_SMS_BY_TYPE),(UCHAR *)&MSG_DEL_TYPE_ST); /*lint !e26 !e55*/
ret = ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_SMS, MSG_CMD_DEL_SMS_BY_TYPE, sizeof(WEB_DEL_SMS_BY_TYPE), (UCHAR *)&MSG_DEL_TYPE_ST, 0);
if (0 != ret) {
@@ -610,7 +610,7 @@
} else if (!strcmp(mem_store, "sim_card")) {
sms_setting_st.mem_store = 0;
} else {
- slog(MISC_PRINT, SLOG_ERR,"zte_sms_set_message_center: invalid mem_store.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR,"sms_set_message_center: invalid mem_store.\n"); /*lint !e26*/
sms_setting_st.mem_store = 1;
}
slog(MISC_PRINT, SLOG_DEBUG, "sms_setting_st.mem_store=%d", sms_setting_st.mem_store); /*lint !e26*/
@@ -626,19 +626,19 @@
} else if (0 == strcmp(validity_period, "cdma_largest")) {
sms_setting_st.tp_validity_period = 244;
} else {
- slog(MISC_PRINT, SLOG_ERR, "zte_sms_set_message_center: invalid validity_period.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "sms_set_message_center: invalid validity_period.\n"); /*lint !e26*/
sms_setting_st.tp_validity_period = 255;
}
slog(MISC_PRINT, SLOG_DEBUG, " sms_setting_st.tp_validity_period=%d", sms_setting_st.tp_validity_period); /*lint !e26*/
- slog(MISC_PRINT, SLOG_DEBUG, "zte_sms_set_message_center:The center number is:[%s].\n", sms_setting_st.sca); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "sms_set_message_center:The center number is:[%s].\n", sms_setting_st.sca); /*lint !e26*/
/* mc interface */
if (ZTE_MC_OK_S == zte_mc_relay_sms_set_parameter((T_zUfiSms_ParaInfo*)(&sms_setting_st))) {
- slog(MISC_PRINT, SLOG_NORMAL, "zte_sms_set_message_center: send msg to mc success.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "sms_set_message_center: send msg to mc success.\n"); /*lint !e26*/
zte_write_result_to_web(wp, SUCCESS);
} else {
- slog(MISC_PRINT, SLOG_ERR, "zte_sms_set_message_center: send msg to mc fail.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "sms_set_message_center: send msg to mc fail.\n"); /*lint !e26*/
zte_write_result_to_web(wp, FAILURE);
}
//zte_write_result_to_web(wp,SUCCESS);
@@ -764,7 +764,7 @@
order_by = websGetVar(wp, "order_by", T(""));
if (('\0' == *page) || ('\0' == *data_per_page) || ('\0' == *mem_store) || ('\0' == *tags) || ('\0' == *order_by)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_get_sms_data: invalid input.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "get_sms_data: invalid input.\n"); /*lint !e26*/
zte_web_feed_back_empty(wp);
return ;
}
@@ -815,7 +815,7 @@
slog(MISC_PRINT, SLOG_DEBUG, "SMS_DATA GET DATA FROM DB END.\n"); /*lint !e26*/
if (-1 == result) {
- slog(MISC_PRINT, SLOG_ERR, "call zte_wms_db_get_sms_data fail.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "call wms_db_get_sms_data fail.\n"); /*lint !e26*/
zte_web_feed_back_empty(wp);
//free
// if (NULL != p_sms_query_result) { // kw 3
@@ -928,7 +928,7 @@
order_by = websGetVar(wp, "order_by", T(""));
if (('\0' == *page) || ('\0' == *data_per_page) || ('\0' == *mem_store) || ('\0' == *tags) || ('\0' == *order_by)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_get_sms_data: invalid input.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "get_sms_data: invalid input.\n"); /*lint !e26*/
zte_web_feed_back_empty(wp);
return ;
}
@@ -1115,7 +1115,7 @@
result = zte_libwms_get_parameter(&sms_parameter_info);
slog(MISC_PRINT, SLOG_DEBUG, "SMS_PARAMETER_INFO GET DATA FROM DB END.\n"); /*lint !e26*/
if (-1 == result) {
- slog(MISC_PRINT, SLOG_ERR, "call zte_libwms_get_parameter fail.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "call libwms_get_parameter fail.\n"); /*lint !e26*/
zte_web_feed_back_empty(wp);
return ;
}
@@ -1172,7 +1172,7 @@
result = zte_libwms_get_cmd_status(&cmd_status_info);
slog(MISC_PRINT, SLOG_DEBUG, "sms_cmd_status_info GET DATA FROM DB END.\n"); /*lint !e26*/
if (-1 == result) {
- slog(MISC_PRINT, SLOG_ERR, "call zte_libwms_get_cmd_status fail.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "call libwms_get_cmd_status fail.\n"); /*lint !e26*/
zte_web_feed_back_empty(wp);
return ;
}
@@ -1205,7 +1205,7 @@
//¿¨²à¿Õ¼äÊÇ·ñ³ä×ãÄܽÓÊÕÁ÷Á¿Ð£×¼¶ÌÐŵÄÅжÏ
//½»ÓÉÐÒéÕ»Åжϴ¦Àí
sms_remain = 10;
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_get_sms_remain_capacity, default_store = %s, total = %d!\n", default_store, sms_sim_total);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] get_sms_remain_capacity, default_store = %s, total = %d!\n", default_store, sms_sim_total);
} else {
sms_nv_total = zte_libwms_get_sms_capability(1);//nv
sms_nv_rev_total = zte_libwms_get_sms_used(1, 0); //nv rev read
@@ -1219,9 +1219,9 @@
}
sms_remain = sms_nv_total - sms_nv_rev_total - sms_nv_send_total - sms_nv_draftbox_total;
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_get_sms_remain_capacity, default_store = %s, total = %d, rev= %d, send= %d, draft= %d!\n", default_store, sms_nv_total, sms_nv_rev_total, sms_nv_send_total, sms_nv_draftbox_total);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] get_sms_remain_capacity, default_store = %s, total = %d, rev= %d, send= %d, draft= %d!\n", default_store, sms_nv_total, sms_nv_rev_total, sms_nv_send_total, sms_nv_draftbox_total);
}
- slog(MISC_PRINT, SLOG_DEBUG,"[traffic] zte_get_sms_remain_capacity, default_store = %s, sms_remain = %d!\n", default_store, sms_remain);
+ slog(MISC_PRINT, SLOG_DEBUG,"[traffic] get_sms_remain_capacity, default_store = %s, sms_remain = %d!\n", default_store, sms_remain);
return sms_remain;
}
@@ -1322,7 +1322,7 @@
data_per_page = websGetVar(wp, "data_per_page", T(""));
if (('\0' == *page) || ('\0' == *data_per_page)) {
- slog(MISC_PRINT, SLOG_ERR, "zte_get_sms_data: invalid input.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "get_sms_data: invalid input.\n"); /*lint !e26*/
zte_web_feed_back_empty(wp);
return ;
}
@@ -1352,7 +1352,7 @@
result = zte_libwms_get_sms_report(&sms_query_req, p_sms_query_result);
slog(MISC_PRINT, SLOG_DEBUG, "sms_status_rpt_data GET DATA FROM DB END.\n"); /*lint !e26*/
if (-1 == result) {
- slog(MISC_PRINT, SLOG_ERR, "call zte_libwms_get_sms_report fail.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "call libwms_get_sms_report fail.\n"); /*lint !e26*/
zte_web_feed_back_empty(wp);
//free
// if (NULL != p_sms_query_result) { // kw 3
@@ -1668,14 +1668,14 @@
int result = 0;
- slog(MISC_PRINT, SLOG_NORMAL, "zte_get_boradcast_data GET DATA FROM DB START.\n");
+ slog(MISC_PRINT, SLOG_NORMAL, "get_boradcast_data GET DATA FROM DB START.\n");
p_bro_query_result = (zte_wms_cell_bro_s_type*)malloc(1 + sizeof(zte_wms_cell_bro_s_type));
if(p_bro_query_result == NULL) return;
result = zte_libwms_get_cell_bro(p_bro_query_result);
- slog(MISC_PRINT, SLOG_DEBUG, "zte_get_boradcast_data GET DATA FROM DB END.\n");
+ slog(MISC_PRINT, SLOG_DEBUG, "get_boradcast_data GET DATA FROM DB END.\n");
if (-1 == result) {
- slog(MISC_PRINT, SLOG_ERR, "call zte_libwms_get_cell_bro fail.\n");
+ slog(MISC_PRINT, SLOG_ERR, "call libwms_get_cell_bro fail.\n");
zte_web_feed_back_empty(wp);
//cov
free(p_bro_query_result);
diff --git a/ap/app/goahead/interface5.0/zte_web_ussd.c b/ap/app/goahead/interface5.0/zte_web_ussd.c
index e65ab24..215adc1 100644
--- a/ap/app/goahead/interface5.0/zte_web_ussd.c
+++ b/ap/app/goahead/interface5.0/zte_web_ussd.c
@@ -61,7 +61,7 @@
char_t *ussd_operator = NULL;
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_ussd-> invalid input..\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_ussd-> invalid input..\n"); /*lint !e26*/
return;
}
@@ -100,7 +100,7 @@
unsigned char *ussd_send_number = NULL;
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_ussd_send: invalid input..\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_ussd_send: invalid input..\n"); /*lint !e26*/
return;
}
@@ -123,9 +123,9 @@
/*handler to mc*/
if (0 == ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_AT_CTL, MSG_CMD_USSD_SET_REQ, 0, NULL, 0)) {
- slog(MISC_PRINT, SLOG_NORMAL, "zte_web_ussd_send: successful.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "web_ussd_send: successful.\n"); /*lint !e26*/
} else {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_ussd_send: failed.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_ussd_send: failed.\n"); /*lint !e26*/
}
zte_write_result_to_web(wp, SUCCESS);
@@ -145,7 +145,7 @@
{
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_ussd_cancel invalid input..\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_ussd_cancel invalid input..\n"); /*lint !e26*/
return;
}
@@ -155,9 +155,9 @@
/*handler to mc*/
if (0 == ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_AT_CTL, MSG_CMD_USSD_CANCEL_REQ, 0, NULL, 0)) {
- slog(MISC_PRINT, SLOG_NORMAL, "zte_web_ussd_cancel: zte_topsw_mc_ussd_send successful.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "web_ussd_cancel: topsw_mc_ussd_send successful.\n"); /*lint !e26*/
} else {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_ussd_cancel: zte_topsw_mc_ussd_send failed.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_ussd_cancel: topsw_mc_ussd_send failed.\n"); /*lint !e26*/
}
zte_write_result_to_web(wp, SUCCESS);
@@ -177,7 +177,7 @@
{
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_ussd_over invalid input..\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_ussd_over invalid input..\n"); /*lint !e26*/
return;
}
@@ -202,7 +202,7 @@
/*check input*/
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_ussd_reply: invalid input..\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_ussd_reply: invalid input..\n"); /*lint !e26*/
return;
}
@@ -216,9 +216,9 @@
(void)zte_web_write("ussd_operater", "send");
if (0 == ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_AT_CTL, MSG_CMD_USSD_SET_REQ, 0, NULL, 0)) {
- slog(MISC_PRINT, SLOG_NORMAL, "zte_web_ussd_reply: successful.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "web_ussd_reply: successful.\n"); /*lint !e26*/
} else {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_ussd_reply: failed.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_ussd_reply: failed.\n"); /*lint !e26*/
}
zte_write_result_to_web(wp, SUCCESS);
}
@@ -237,10 +237,10 @@
void zte_web_ussd(webs_t wp)
{
if (NULL == wp) {
- slog(MISC_PRINT, SLOG_ERR, "zte_web_ussd: invalid input..\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "web_ussd: invalid input..\n"); /*lint !e26*/
return;
}
- slog(MISC_PRINT, SLOG_DEBUG, "zte_web_ussd: ok\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "web_ussd: ok\n"); /*lint !e26*/
(void)zte_web_write(ZTE_USSD_NV, USSD_FIRST_CANCEL);
zte_write_result_to_web(wp, SUCCESS);
@@ -290,7 +290,7 @@
result = zte_ussd_get_to_web_data(&ussd_data_info);
#if 0 // kw 3 return -1 branch is unreachable
if (-1 == result) {
- slog(MISC_PRINT, SLOG_ERR, "call zte_ussd_get_to_web_data fail.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "call ussd_get_to_web_data fail.\n"); /*lint !e26*/
web_feedback_header(wp);
(void)websWrite(wp, T("[]"));
return ;
diff --git a/ap/app/goahead/interface5.0/zte_web_util.c b/ap/app/goahead/interface5.0/zte_web_util.c
index a4c0056..b696002 100755
--- a/ap/app/goahead/interface5.0/zte_web_util.c
+++ b/ap/app/goahead/interface5.0/zte_web_util.c
@@ -343,7 +343,7 @@
ip_address = websGetRequestIpaddr(wp);
#if 0 // kw 3 NVARIANT_CONDITION.UNREACH
if (NULL == ip_address) {
- slog(MISC_PRINT, SLOG_ERR, "zte_goform_whitelist_check: ip_address is null.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "goform_whitelist_check: ip_address is null.\n"); /*lint !e26*/
return FALSE;
}
#endif
@@ -353,7 +353,7 @@
}
if (result == TRUE) {
if (!zte_mgmt_login_timemark_set()) {
- slog(MISC_PRINT, SLOG_ERR, "[ERROR]zte_goform_whitelist_check -> timemark set error .\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "[ERROR]goform_whitelist_check -> timemark set error .\n"); /*lint !e26*/
}
}
@@ -378,7 +378,7 @@
zte_goform_id = websGetVar(wp, T("goformId"), T(""));
if (zte_goform_id == NULL) {
- slog(MISC_PRINT, SLOG_ERR, "zte_goform_whitelist_check: zte_goform_id is null.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "goform_whitelist_check: goform_id is null.\n"); /*lint !e26*/
return -1;
}
@@ -397,10 +397,10 @@
|| (0 == strncmp(GOFORM_MGMT_REBOOT, zte_goform_id, strlen(GOFORM_MGMT_REBOOT)))
#endif
) {
- slog(MISC_PRINT, SLOG_DEBUG, "zte_goform_whitelist_check: zte_goform_id:[%s] is OK.\n", zte_goform_id); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "goform_whitelist_check: goform_id:[%s] is OK.\n", zte_goform_id); /*lint !e26*/
return 1;
} else {
- slog(MISC_PRINT, SLOG_ERR, "zte_goform_whitelist_check: zte_goform_id:[%s] is black.\n", zte_goform_id); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "goform_whitelist_check: goform_id:[%s] is black.\n", zte_goform_id); /*lint !e26*/
return -1;
}
@@ -523,7 +523,7 @@
char language[64] = {0};
if (NULL == i_pageName) {
- slog(MISC_PRINT, SLOG_ERR, "zte_webs_feedback_top para null.\n"); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_ERR, "webs_feedback_top para null.\n"); /*lint !e26*/
return;
}
@@ -567,7 +567,7 @@
cmd = websGetVar(wp, T("cmd"), T(""));
multi_data = websGetVar(wp, T("multi_data"), T(""));
- slog(MISC_PRINT, SLOG_DEBUG, "[goahead] zte_goform_get_cmd_process multi_data = %s, cmd = %s\n", multi_data, cmd);
+ slog(MISC_PRINT, SLOG_DEBUG, "[goahead] goform_get_cmd_process multi_data = %s, cmd = %s\n", multi_data, cmd);
zte_mgmt_login_timeout_check();
@@ -683,7 +683,7 @@
zte_get_login_status_value(wp, login_info);
zte_goform_id = websGetVar(wp, T("goformId"), T(""));
- slog(MISC_PRINT, SLOG_DEBUG,"[goahead] zte_goform_set_cmd_process zte_goform_id = %s,login_info=%s!\n", zte_goform_id, login_info);
+ slog(MISC_PRINT, SLOG_DEBUG,"[goahead] goform_set_cmd_process goform_id = %s,login_info=%s!\n", zte_goform_id, login_info);
#ifdef WEBINSPECT_FIX
if (query && (strstr(query, ")(")
/* || strstr(query, "%26%26")
@@ -747,7 +747,7 @@
if (0 != strcmp("ok", login_info)) {
blacklist_result = zte_goform_blacklist_check(wp);
if (blacklist_result < 0) {
- slog(MISC_PRINT, SLOG_ERR,"[ERROR]zte_goform_blacklist_check -> black goform id:[%s].\n", zte_goform_id);
+ slog(MISC_PRINT, SLOG_ERR,"[ERROR]goform_blacklist_check -> black goform id:[%s].\n", zte_goform_id);
zte_write_result_to_web(wp, FAILURE);
websDone(wp, 200);
return;
@@ -765,7 +765,7 @@
}
if (goform_index == max_goform_index) {
- slog(MISC_PRINT, SLOG_ERR,"[ERROR]zte_goform_set_cmd_process -> unknown goform id:[%s].\n", zte_goform_id);
+ slog(MISC_PRINT, SLOG_ERR,"[ERROR]goform_set_cmd_process -> unknown goform id:[%s].\n", zte_goform_id);
zte_write_result_to_web(wp, FAILURE);
}
diff --git a/ap/app/goahead/interface5.0/zte_web_wan.c b/ap/app/goahead/interface5.0/zte_web_wan.c
index 4004b7f..9795296 100755
--- a/ap/app/goahead/interface5.0/zte_web_wan.c
+++ b/ap/app/goahead/interface5.0/zte_web_wan.c
@@ -168,13 +168,13 @@
return;
}
slog(MISC_PRINT, SLOG_NORMAL, T("UFIx User set network %s!\n"), pMccmnc);
- slog(MISC_PRINT, SLOG_DEBUG,"LPC: zte_wan_set_network, pSubType = %s \n", pSubType);
+ slog(MISC_PRINT, SLOG_DEBUG,"LPC: wan_set_network, pSubType = %s \n", pSubType);
(void)zte_web_read("current_rat", curNetType); //0:2G; 2:3G
(void)zte_web_read("str_num_rplmn", curMccmnc);
(void)zte_web_read("current_subrat", curSubType);
if ((0 == strcmp(pMccmnc, curMccmnc)) && (0 == strcmp(pNetType, curNetType)) && (0 == strcmp(pSubType, curSubType))) {
- slog(MISC_PRINT, SLOG_DEBUG, "zte_wan_set_network: to set network is equal to registered network."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_DEBUG, "wan_set_network: to set network is equal to registered network."); /*lint !e26*/
(void)zte_web_write("manual_netsel_flag", "1");
} else {
(void)zte_web_write("manual_netsel_flag", "");
@@ -183,7 +183,7 @@
(void)zte_web_write("current_rat_tmp", pNetType);
(void)zte_web_write("str_num_rplmn_tmp", pMccmnc);
(void)zte_web_write("current_subrat_tmp", pSubType);
- //slog(MISC_PRINT,SLOG_DEBUG, "zte_wan_set_network send message:ZUFI_MODULE_ID_AT_MAIN MSG_CMD_SET_NETWORK.");
+ //slog(MISC_PRINT,SLOG_DEBUG, "wan_set_network send message:ZUFI_MODULE_ID_AT_MAIN MSG_CMD_SET_NETWORK.");
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_AT_CTL, MSG_CMD_NETWORK_SET_REQ, 0, NULL, 0);
zte_write_result_to_web(wp, SUCCESS);
}
@@ -322,7 +322,7 @@
usleep(200000);
}
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wan_network_select: net_select_result = %s \n", select_result);
+ slog(MISC_PRINT, SLOG_DEBUG,"wan_network_select: net_select_result = %s \n", select_result);
if (strcmp("sucess", select_result) == 0) {
zte_write_result_to_web(wp, SUCCESS);
} else {
@@ -347,7 +347,7 @@
slog(MISC_PRINT, SLOG_NORMAL, T("UFIx User scan network!\n"));
(void)zte_web_write("net_select_mode", "manual_select");
- slog(MISC_PRINT, SLOG_NORMAL, "zte_wan_scan_network send message ZUFI_MODULE_ID_AT_MAIN,MSG_CMD_WEB_REQ_NET_SELECT");
+ slog(MISC_PRINT, SLOG_NORMAL, "wan_scan_network send message ZUFI_MODULE_ID_AT_MAIN,MSG_CMD_WEB_REQ_NET_SELECT");
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_AT_CTL, MSG_CMD_NET_SELECT_REQ, 0, NULL, 0);
(void)zte_web_write("m_netselect_status", "manual_selecting");
zte_write_result_to_web(wp, SUCCESS);
@@ -887,7 +887,7 @@
(void)zte_web_write("duraConTime_before_time_modify", "0");
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MMI, MSG_CMD_TRAFFIC_INFO_RESET, 0, NULL, 0);
- slog(MISC_PRINT, SLOG_NORMAL, "zte_wan_data_statistics_clear_process: send ZTE_CURR_TOTAL_WIFI_DATA to mc success."); /*lint !e26*/
+ slog(MISC_PRINT, SLOG_NORMAL, "wan_data_statistics_clear_process: send CURR_TOTAL_WIFI_DATA to mc success."); /*lint !e26*/
zte_write_result_to_web(wp, SUCCESS);
}
@@ -968,7 +968,7 @@
APN_PROFILE newProfile;
zte_web_write("apn_mode", ZTE_WEB_ACT_AUTO);
memset(&newProfile, 0, sizeof(newProfile));
- slog(MISC_PRINT, SLOG_NORMAL,"LPC: zte_wan_auto_apn_set enter! \n");
+ slog(MISC_PRINT, SLOG_NORMAL,"LPC: wan_auto_apn_set enter! \n");
get_autoapn_profile(&newProfile);
set_apn_to_cfg(&newProfile);
//send message to MainControl to infrom modify apn
@@ -1085,7 +1085,7 @@
p_data = websGetVar(wp, T("calibration_way"), NULL);
- slog(MISC_PRINT, SLOG_NORMAL,"zte_wan_data_flow_calibration_manual calibration_way = %s\n", p_data);
+ slog(MISC_PRINT, SLOG_NORMAL,"wan_data_flow_calibration_manual calibration_way = %s\n", p_data);
if (p_data == NULL) {
zte_write_result_to_web(wp, FAILURE);
return;
@@ -1097,7 +1097,7 @@
time = atof(p_data);
sprintf(buf, "%ld", (long)(time * 60 * 60));
sc_cfg_set("monthly_time", buf);
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wan_data_flow_calibration_manual time:value = %f, buf = %s\n", time, buf);
+ slog(MISC_PRINT, SLOG_DEBUG,"wan_data_flow_calibration_manual time:value = %f, buf = %s\n", time, buf);
zte_write_result_to_web(wp, SUCCESS);
ipc_send_message(MODULE_ID_WEB_CGI, MODULE_ID_MMI, MSG_CMD_TRAFFIC_INFO_RESET, 0, NULL, 0);
return;
@@ -1115,7 +1115,7 @@
{
slog(MISC_PRINT, SLOG_ERR,"strtoll errno %d: %s\n", errno, strerror(errno));
}
- slog(MISC_PRINT, SLOG_DEBUG,"zte_wan_data_flow_calibration_manual data:111 data = %lld, %lld\n", data, ret_strtoll);
+ slog(MISC_PRINT, SLOG_DEBUG,"wan_data_flow_calibration_manual data:111 data = %lld, %lld\n", data, ret_strtoll);
sprintf(buf, "%lld", data);
sc_cfg_set("monthly_tx_bytes", "0");
sc_cfg_set("monthly_rx_bytes", buf);
diff --git a/ap/app/goahead/server/cgi.c b/ap/app/goahead/server/cgi.c
index c9286c6..7742a7b 100755
--- a/ap/app/goahead/server/cgi.c
+++ b/ap/app/goahead/server/cgi.c
@@ -210,7 +210,7 @@
if (wp->flags & WEBS_CGI_HTTPSHARE_UPLOAD)
{
- printf("[httpshare]call zte_process_cgi_end.\n");
+ printf("[httpshare]call process_cgi_end.\n");
return zte_process_cgi_end(wp);
}else if(wp->flags & WEBS_CGI_UPLOAD)
{
diff --git a/ap/app/goahead/server/webs.c b/ap/app/goahead/server/webs.c
index b0238e1..00ba24c 100755
--- a/ap/app/goahead/server/webs.c
+++ b/ap/app/goahead/server/webs.c
@@ -433,7 +433,7 @@
//Add By liuyingnan for XML COMM API START
if(wp->flags & WEBS_XML_CLIENT_REQUEST)
{
- slog(MISC_PRINT,SLOG_DEBUG,"[websReadEvent]:zte_change_wp_query function:%s\n",websRecvHttpBuffer_XML);
+ slog(MISC_PRINT,SLOG_DEBUG,"[websReadEvent]:change_wp_query function:%s\n",websRecvHttpBuffer_XML);
//zte_change_wp_query(wp,websRecvHttpBuffer_Json);
zte_change_wp_query(wp,websRecvHttpBuffer_XML);
memset(websRecvHttpBuffer_XML,0,HTTP_BUFFER_SIZE);
@@ -2274,7 +2274,7 @@
(void)zte_web_write(NV_LOGINFO,"timeout");
(void)zte_web_write(NV_COOKIE_ID, "");
(void)zte_web_write(NV_USER_LOGIN_TIMEMARK,"0");
- slog(MISC_PRINT,SLOG_ERR,"zte_mgmt_login_timemark_check: the login is timeout .\n");
+ slog(MISC_PRINT,SLOG_ERR,"mgmt_login_timemark_check: the login is timeout .\n");
}
else
{
diff --git a/ap/app/include/at_pdp_api.h b/ap/app/include/at_pdp_api.h
index 1b8b2da..af83bfb 100755
--- a/ap/app/include/at_pdp_api.h
+++ b/ap/app/include/at_pdp_api.h
@@ -65,6 +65,7 @@
int volte_param3;
int ppp_cid;//½öÓÃÓÚppp²¦ºÅʱºòÖ¸¶¨cidʹÓã¬ÆäËûʱºò¾ùΪ0
char default_flag;
+ char is_ext;
};
/**
diff --git a/ap/app/include/atreg_msg.h b/ap/app/include/atreg_msg.h
new file mode 100755
index 0000000..a1a5077
--- /dev/null
+++ b/ap/app/include/atreg_msg.h
@@ -0,0 +1,74 @@
+/**
+ * @file atreg_msg.h
+ * @brief ÌṩlibatregÏà¹ØÏûÏ¢¡¢½á¹¹Ìå
+ *
+ * Copyright (C) 2022 Sanechips Technology Co., Ltd.
+ * @author
+ * @ingroup
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+
+#ifndef _ATREG_MSG_H
+#define _ATREG_MSG_H
+
+
+/*******************************************************************************
+ * Include header files *
+ *******************************************************************************/
+#include "message.h"
+
+
+/*******************************************************************************
+ * Macro definitions *
+ *******************************************************************************/
+
+
+/*******************************************************************************
+ * Type definitions *
+ *******************************************************************************/
+/** ÏûÏ¢id */
+enum MSG_CDM_RANGE_T
+{
+ MSG_CMD_AT_REG_BASE = MSG_CMD_EXTAT_BASE,
+
+ /* at×¢²áÏûÏ¢id¶¨Òå */
+ MSG_CMD_AT_REG_REQ,
+ MSG_CMD_AT_REG_RSP,
+
+ /* at×¢ÏúÏûÏ¢id¶¨Òå */
+ MSG_CMD_AT_UNREG_REQ,
+ MSG_CMD_AT_UNREG_RSP,
+};
+
+
+/** AT×¢²áÖÁat_ctl */
+struct atreg_msg_t {
+ char at_cmd_prefix[AT_CMD_PREFIX];
+
+ int req_msg_id;
+ int rsp_msg_id;
+
+ /* ATÀàÐÍ: 0-ser, 1-info */
+ int type;
+
+ int res;
+};
+
+
+/*******************************************************************************
+ * Global variable declarations *
+ *******************************************************************************/
+
+
+/*******************************************************************************
+ * Global function declarations *
+ *******************************************************************************/
+
+
+#endif
+
diff --git a/ap/app/include/mainctl_msg.h b/ap/app/include/mainctl_msg.h
index 8c66cc5..5867013 100755
--- a/ap/app/include/mainctl_msg.h
+++ b/ap/app/include/mainctl_msg.h
@@ -88,6 +88,12 @@
MSG_CMD_NET_DHCP_SETTING_REQ, /*ÍøÂçDHCP»ù´¡²ÎÊýÅäÖÃÇëÇó*/
MSG_CMD_NET_DHCP_SETTING_RSP, /*ÍøÂçDHCP»ù´¡²ÎÊýÅäÖûظ´*/
+#if (MODEM_TYPE == vehicle_dc)
+ MSG_CMD_NET_FIREWALL_ADD_REQ, /*ÅäÖ÷À»ðǽ£ºÖ¸¶¨IP²»ÔÊÐí·ÃÎÊÉ豸*/
+ MSG_CMD_NET_FIREWALL_DEL_REQ, /*ɾ³ý·À»ðǽ£ºÖ¸¶¨IP²»ÔÊÐí·ÃÎÊÉ豸*/
+ MSG_CMD_NET_FIREWALL_CLEANUP_REQ, /*Çå³þËùÓÐÒÑ·À»ðǽ£ºÖ¸¶¨IP²»ÔÊÐí·ÃÎÊÉ豸*/
+#endif
+
/* --------------------- ÒÔÏÂÊÇÄÚ²¿Ê¹ÓÃÏûÏ¢ ---------------- */
MSG_CMD_NET_WAN4_CHANGE, /*ipv4ÍâÍø¿Ú·¢Éú±ä»¯, ²ÎÊý:ÎÞ */
MSG_CMD_NET_WAN6_CHANGE, /*ipv6ÍâÍø¿Ú·¢Éú±ä»¯, ²ÎÊý:ÎÞ */
diff --git a/ap/app/include/rtc_timer.h b/ap/app/include/rtc_timer.h
index 3dbecf6..8069d93 100755
--- a/ap/app/include/rtc_timer.h
+++ b/ap/app/include/rtc_timer.h
@@ -34,7 +34,7 @@
* @note
*/
enum RTC_CPU {
- RTC_CPU_CP = 0, //rtcÓÉcp·¢Æð
+ RTC_CPU_CAP = 0, //rtcÓÉCAP·¢Æð
RTC_CPU_AP, //rtcÓÉAP·¢Æð
};
diff --git a/ap/app/zte_comm/at_ctl/inc/at_register.h b/ap/app/zte_comm/at_ctl/inc/at_register.h
index 0caf3bf..2dcbc91 100644
--- a/ap/app/zte_comm/at_ctl/inc/at_register.h
+++ b/ap/app/zte_comm/at_ctl/inc/at_register.h
@@ -129,6 +129,24 @@
parse_msg2at_func rsp_proc; //½«Æ½Ì¨µÄ ÏìÓ¦ÏûÏ¢½á¹¹Ìå×éװΪӦ´ðATÃüÁî·¢Ë͸øÍⲿMCU
};
+struct inform_ops_t0
+{
+ struct list_head list;
+ char at_cmd_prefix[AT_CMD_PREFIX];//Ö÷¶¯Éϱ¨µÄǰ׺
+ int module_id; //APP¶ÔÓ¦µÄÄ£¿éID£¬ÓÃÓÚÖ÷¶¯Éϱ¨µÄÏûÏ¢µÄÉϱ¨
+ int req_msg_id; //½«Ö÷¶¯Éϱ¨µÄ·µ»ØµÄÉϱ¨ÏûÏ¢ÌåÒÔ¸ÃÏûÏ¢ID·¢Ë͸ø¶ÔÓ¦µÄAPP·þÎñ¶Ë½ø³Ì
+};
+
+struct ser_ops_t0
+{
+ struct list_head list;
+ struct at_context *context; //´Ë´¦ÓÃÓÚ»º´æÉÏÏÂÎÄ£¬ÒÔ±ãÓ¦´ðʱÕÒµ½¶ÔÓ¦µÄfunc£¬²¢Ð´ÈëÎïÀíͨµÀ
+ char at_cmd_prefix[AT_CMD_PREFIX]; //ÓÃÓÚÆ¥ÅäµÄATÃüÁî¹Ø¼ü×Ö
+ int module_id; //·þÎñ¶ËAPP¶ÔÓ¦µÄÄ£¿éID£¬ÓÃÓÚÇëÇóÏûÏ¢µÄÉϱ¨£¬¿Í»§¶þ´Î¿ª·¢×¢²áµÄ·þÎñÆ÷£¬±ØÐëΪÍⲿģ¿éµÄID
+ int req_msg_id; //½«req_rcv_act·µ»ØµÄÉϱ¨ÏûÏ¢ÌåÒÔ¸ÃÏûÏ¢ID·¢Ë͸ø¶ÔÓ¦µÄAPP·þÎñ¶Ë½ø³Ì
+ int rsp_msg_id; //Ó¦ÓÃAPP·¢Ë͵ÄÓ¦´ðÏûÏ¢£¬ÓÉat_ctl¸ù¾ÝÏûÏ¢ÌåÄÚÈÝ×é×°Ó¦´ðATÃüÁî·¢Ë͸øÔ¶¶Ë¿Í»§¶Ë
+};
+
/*******************************************************************************
* Global variable definitions *
******************************************************************************/
@@ -154,6 +172,13 @@
/* À©Õ¹ATÃüÁîÁ´±í*/
extern struct list_head g_modem_extat_list;
+extern struct list_head g_inform_list0;
+extern struct list_head g_ser_list0;
+struct ser_ops_t0 *find_ser_by_msg_modid0(int rsp_msg_id, int module_id);
+int register_inform_func0(char *at_cmd_prefix,int module_id, int req_msg_id);
+int unregister_inform_func0(char *at_cmd_prefix, int req_msg_id);
+int register_serv_func0(char *at_cmd_prefix,int module_id,int req_msg_id,int rsp_msg_id);
+int unregister_serv_func0(char *at_cmd_prefix, int req_msg_id);
/*******************************************************************************
* Global function declarations *
******************************************************************************/
diff --git a/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c b/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c
index 85af01c..230fd8e 100755
--- a/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c
+++ b/ap/app/zte_comm/at_ctl/src/atconfig/ps_normal.c
@@ -2168,7 +2168,7 @@
apnpara.ppp_passwd, apnpara.pdp_type);
at_print(AT_DEBUG,"atBase_GetAutoApn apn_auto_config = %s!\n",apn_auto_config);
sc_cfg_set(NV_APN_AUTO_CONFIG, apn_auto_config);
-#ifdef MULTI_CPU
+#if 0//def MULTI_CPU
sync_default_apn(NULL);
#endif
return 0;
@@ -3337,7 +3337,8 @@
return AT_END;
}
memset(crsmrsp,0,256);
- sprintf(crsmrsp,at_paras);
+ //sprintf(crsmrsp,at_paras);
+ sprintf(crsmrsp,"%s",at_paras); //YOCTO_PRO ÁÙʱÐÞ¸Ä
return AT_END;
}
}
diff --git a/ap/app/zte_comm/at_ctl/src/atconfig/ps_pdp.c b/ap/app/zte_comm/at_ctl/src/atconfig/ps_pdp.c
index 9f6e93a..945d298 100755
--- a/ap/app/zte_comm/at_ctl/src/atconfig/ps_pdp.c
+++ b/ap/app/zte_comm/at_ctl/src/atconfig/ps_pdp.c
@@ -57,6 +57,7 @@
int auth_type; //¼Ç¼cid µ±Ç°µÄÈÏÖ¤ÀàÐÍ£¬ÓÃÓÚpdp¼¤»îǰÇå³ýÈÏÖ¤
char apn[APN_MAX_LEN];
char ip_type[IPTYPE_MAX_LEN];//IPÀàÐÍ£¬È¡ÖµÎª×Ö·û´®£¬"IP","IPV6","IPV4V6"£¬×¢ÒâÈ«²¿ÊÇ´óд
+ int pdp_type;
};
typedef struct
@@ -160,6 +161,7 @@
CID_ARRAY[i].reserved = (cid_reserved & (1<<i)); //reserved²»Îª0ʱ£¬±íʾΪרÓ㬲»²ÎÓ붯̬»ñÈ¡
#endif
//CID_ARRAY[i].ref = 0;
+ CID_ARRAY[i].pdp_type = -1;
}
syscall(__NR_set_cidstate,(unsigned char)cid_reserved);
}
@@ -173,13 +175,13 @@
if(reserved > 255 || reserved < 0)
return 0;
snprintf(reservecid, sizeof(reservecid), "%d", reserved);
- sc_cfg_set("cid_reserved",reservecid);
+ //sc_cfg_set("cid_reserved",reservecid);
cid_reserved = reserved;
for(i=0;i<CID_MAX_NUM;i++)
{
CID_ARRAY[i].reserved = (cid_reserved & (1<<i)); //reserved²»Îª0ʱ£¬±íʾΪרÓ㬲»²ÎÓ붯̬»ñÈ¡
}
- syscall(__NR_set_cidstate,(unsigned char)cid_reserved);
+ //syscall(__NR_set_cidstate,(unsigned char)cid_reserved);
return 1;
}
@@ -388,7 +390,7 @@
}
//ÓÃÓÚapn¹²Ïíʱ£¬Í¨¹ýapnºÍip type»ñÈ¡cid×ÊÔ´Êý×éϱê
-int get_idx_byapn(char *apn, char *ip_type, int *is_setapn, char flag)
+int get_idx_byapn(char *apn, char *ip_type, int *is_setapn, char flag, int pdp_type)
{
int i;
char versionmode[2] = {0};
@@ -402,7 +404,12 @@
continue;
}
//Ö»Óв»ÈÏÖ¤µÄcid£¬apn²ÅÄܱ»¹²Ïí
- if((0 == strcmp(apn, CID_ARRAY[i].apn)) && (0 == strcmp(ip_type, CID_ARRAY[i].ip_type)) && (NONE_AUTH == CID_ARRAY[i].auth_type))
+ if((0 == strcmp(apn, CID_ARRAY[i].apn))
+#ifdef USE_CAP_SUPPORT
+ && (CID_ARRAY[i].pdp_type == pdp_type)
+#endif
+ && (0 == strcmp(ip_type, CID_ARRAY[i].ip_type))
+ && (NONE_AUTH == CID_ARRAY[i].auth_type))
{
#if 0//ÐÒéÕ»ÒÑÖ§³Ö2-3GÏÂcidÓÃ5-8£¬Ö»Òª×ÜÊý²»³¬¹ý4
if(CID_ARRAY[i].state != CID_ACTIVE && i >= 4)
@@ -462,6 +469,7 @@
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.gateway);
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.pri_dns);
offset += sprintf(at_str+offset,"\"%s\"", info->act_info.sec_dns);
+ offset += sprintf(at_str+offset,",%d", info->pdp_type);
break;
case V6_VALID:
offset += sprintf(at_str+offset, "\"IPV6\",");
@@ -469,6 +477,7 @@
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.gateway6);
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.pri_dns6);
offset += sprintf(at_str+offset,"\"%s\"", info->act_info.sec_dns6);
+ offset += sprintf(at_str+offset,",%d", info->pdp_type);
break;
case V46_VALID:
{
@@ -488,6 +497,7 @@
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.gateway);
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.pri_dns);
offset += sprintf(at_str+offset,"\"%s\"", info->act_info.sec_dns);
+ offset += sprintf(at_str+offset,",%d", info->pdp_type);
}
else
{
@@ -496,6 +506,7 @@
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.gateway);
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.pri_dns);
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.sec_dns);
+ offset += sprintf(at_str+offset,"%d,", info->pdp_type);
offset += sprintf(at_str+offset,"\"%s\",", g_pdpinfo_mng[info->c_id-1].ip6addr);
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.gateway6);
offset += sprintf(at_str+offset,"\"%s\",", info->act_info.pri_dns6);
@@ -1014,6 +1025,7 @@
if(CID_ARRAY[idx].state == CID_ACTIVE)
{
CID_ARRAY[idx].state = CID_IDLE;
+ CID_ARRAY[idx].pdp_type = -1;
//CID_ARRAY[idx].ref = 0;
if(c_id == ppp_cid)
@@ -1050,6 +1062,7 @@
{
//µ±Ç°ÕýÔÚ¼¤»î£¬ÉèÖóÉIDLE״̬£¬ÓÃÓÚcgact ok´¦Àíº¯ÊýÖÐÅжϣ¬ÔڵȴýipdnsµÄ¹ý³ÌÖУ¬ÒѾÒѾ·¢Éú¹ýÈ¥¼¤»î
CID_ARRAY[idx].state = CID_IDLE;
+ CID_ARRAY[idx].pdp_type = -1;
}
CID_ARRAY[idx].ref = 0;//¼¤»î¹ý³ÌÖÐÊÕµ½È¥¼¤»îÖ÷¶¯Éϱ¨±£»¤
}
@@ -1072,6 +1085,7 @@
if(idx >= 0 && idx < CID_MAX_NUM)
{
CID_ARRAY[idx].state = CID_IDLE;
+ CID_ARRAY[idx].pdp_type = -1;
CID_ARRAY[idx].ref = 0;//¼¤»î¹ý³ÌÖÐÊÕµ½È¥¼¤»îÖ÷¶¯Éϱ¨±£»¤
}
}
@@ -1092,7 +1106,7 @@
}
//pdp¼¤»îʧ°Üºó£¬½«cid×ÊÔ´ÉèÖÃΪ¿ÕÏÐ״̬
CID_ARRAY[idx].state = CID_IDLE;
-
+ CID_ARRAY[idx].pdp_type = -1;
/*//Êͷű£´æµÄpdp¼¤»îÐÅÏ¢
if(private_info->pdpActInfo)
{
@@ -1138,7 +1152,7 @@
if(idx < 0)
return;
CID_ARRAY[idx].state = CID_ACTIVE;
-
+ CID_ARRAY[idx].pdp_type = pdp_type;
/*Ϊ¼Ó¿ìmodem¿ª»úÁªÍøÊ±¼ä£¬ÔÚpdp¼¤»î֮ǰ£¬²»³õʼ»¯smsºÍpbÓ¦Óã¬pdp¼¤»î³É¹¦ºóÖ±½Ó·¢ÏûÏ¢
¸øsmsºÍpbÓ¦ÓÃ֪ͨ½øÐгõʼ»¯£¬²¢ÇÒɾ³ý¶¨Ê±Æ÷*/
at_print(AT_NORMAL,"3.sms_pb init flag: %d\n", g_smspb_init);
@@ -1196,7 +1210,7 @@
if(idx < 0)
return;
CID_ARRAY[idx].state = CID_IDLE;
-
+ CID_ARRAY[idx].pdp_type = -1;
at_print(AT_ERR,"pdpdeact_success_proc:context->source = %x, cid is %d\n",context->source, cid);
//pdpÈ¥¼¤»îÖ®ºó£¬Çå¿Õpdp_normalÀàÐ͵Äcid
@@ -1510,6 +1524,13 @@
pdp_type = PDP_EXT;
}
#endif*/
+
+ if(p_setInfo->is_ext){
+ pdp_type = p_setInfo->is_ext;
+ if(pdp_type == PDP_NORMAL)
+ set_default_apn(p_setInfo->comm_info.apn);
+ }
+
return pdp_type;
}
@@ -1549,7 +1570,7 @@
//¶ÔÓÚ·ÇÈÏÖ¤µÄpdp¼¤»î£¬´Ëʱapn¿ÉÒÔ¹²Ïí£¬Òò´ËÊ×Ïȸù¾Ýapn¡¢ip_type²éÕÒÊÇ·ñÒѾ´æÔÚÏàͬapnºÍip_typeµÄcid×ÊÔ´
if(p_setInfo->comm_info.auth_type == NONE_AUTH)
{
- idx = get_idx_byapn(p_setInfo->comm_info.apn, p_setInfo->comm_info.ip_type, is_setapn, p_setInfo->default_flag);
+ idx = get_idx_byapn(p_setInfo->comm_info.apn, p_setInfo->comm_info.ip_type, is_setapn, p_setInfo->default_flag, p_setInfo->is_ext);
}
else
{
@@ -1687,6 +1708,7 @@
idx = g_defcid_mng.cid - 1;
is_setapn = 1;
CID_ARRAY[idx].state = CID_IDLE;
+ CID_ARRAY[idx].pdp_type = -1;
}
else
{//·Ç×Ô¶¯²¦ºÅÓ¦Óã¬ÓÃLOCAL²¦ºÅ
@@ -1699,6 +1721,7 @@
{
is_setapn = 1;
CID_ARRAY[idx].state = CID_IDLE;
+ CID_ARRAY[idx].pdp_type = -1;
}
if(CID_ARRAY[idx].state == CID_IDLE)
{//»º´ædefcid£¬½â¾ö×Ô¶¯²¦ºÅÁ÷³ÌÖÐºÍÆäËû²¦ºÅ²¢·¢ÎÊÌ⣬ÔÚ¼¤»îʧ°Ü¡¢È¥²¦ºÅ¡¢cgevʱÇåÁã
@@ -1742,7 +1765,7 @@
if(g_defcid_mng.set_info == NULL)
return NULL;
memcpy(g_defcid_mng.set_info, &pdpActReq, sizeof(struct pdp_act_req));
-#ifdef MULTI_CPU
+#if 0//def MULTI_CPU
sync_default_apn(context);
#endif
}
@@ -2058,7 +2081,7 @@
int get_pdp_set_info(char * at_paras, struct pdp_act_req *info)
{
int state = 0;
- void * p[12] = { &info->ext_cid,
+ void * p[] = { &info->ext_cid,
info->comm_info.ip_type,
info->comm_info.apn,
&(info->volte_param1),
@@ -2069,9 +2092,10 @@
info->comm_info.password,
info->comm_info.challenge,
&(info->ppp_cid),
- &(info->default_flag)
+ &(info->default_flag),
+ &(info->is_ext)
};
- parse_param2("%d,%s,%100s,%d,%d,%d,%d,%s,%s,%s,%d,%d",at_paras, p);
+ parse_param2("%d,%s,%100s,%d,%d,%d,%d,%s,%s,%s,%d,%d,%d",at_paras, p);
at_print(AT_DEBUG,"ext_cid is %d, ppp_cid is %d\n",info->ext_cid, info->ppp_cid);
return 1;
@@ -2388,6 +2412,7 @@
sc_cfg_set(NV_PDP_STATUS, "0");
CID_ARRAY[idx].state = CID_IDLE;
+ CID_ARRAY[idx].pdp_type = -1;
pdpinfo_reset(cur_cid);
return AT_END;
@@ -2736,6 +2761,7 @@
if(idx < 0)
return AT_END;
CID_ARRAY[idx].state = CID_IDLE;
+ CID_ARRAY[idx].pdp_type = -1;
}
}
return AT_END;
@@ -2770,6 +2796,7 @@
if(idx < 0)
return AT_END;
CID_ARRAY[idx].state = CID_IDLE;
+ CID_ARRAY[idx].pdp_type = -1;
}
else
{
diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_context.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_context.c
index e90dc57..87a9022 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_context.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_context.c
@@ -108,9 +108,9 @@
#ifdef USE_CAP_SUPPORT
static void cap_at_chn_init(void)
{
- #define CAP_FD_MAX 4
+ #define CAP_FD_MAX 6
int i;
- int CHL_CAP[CAP_FD_MAX] = {36,37,38,39};
+ int CHL_CAP[CAP_FD_MAX] = {34,35,36,37,38,39};
int fd = -1;
char ch_name[16] = {0};
@@ -235,6 +235,19 @@
int g_farps_fd0=-1;
int g_farps_fd1=-1;
int g_farps_fd2=-1;
+
+static void turnon_echo_by_fd(int fd)
+{
+ if(fd >=0 ){
+ struct termios termios_old;
+ bzero(&termios_old, sizeof(termios_old));
+ tcgetattr(fd, &termios_old); //get the serial port attributions
+ termios_old.c_lflag |= ECHO; //±¾µØÄ£Ê½ÉèÖûØÏÔ
+ tcflush(fd, TCIFLUSH); //Òç³öµÄÊý¾Ý¿ÉÒÔ½ÓÊÕ,µ«²»¶Á
+ tcsetattr(fd, TCSANOW, &termios_old); //ÉèÖÃÐÂÊôÐÔ, TCSANOW: ËùÓɸıäÁ¢¼´ÉúЧ
+ }
+}
+
/* ³õʼ»¯linux²àatͨµÀ*/
static void linux_at_channel_init()
{
@@ -306,6 +319,18 @@
g_farps_fd2=-1;
}
}
+ {
+ char echo_nv[20] = {0};
+ int echo;
+ sc_cfg_get("tty_echo",echo_nv,sizeof(echo_nv));
+ echo = atoi(echo_nv);
+ if((echo >> 0)&1)
+ turnon_echo_by_fd(g_farps_fd0);
+ if((echo >> 1)&1)
+ turnon_echo_by_fd(g_farps_fd1);
+ if((echo >> 2)&1)
+ turnon_echo_by_fd(g_farps_fd2);
+ }
#ifdef USE_CAP_SUPPORT
diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_ctl.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_ctl.c
index 8bcc386..5aa9194 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_ctl.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_ctl.c
@@ -24,6 +24,7 @@
#include "ref_nv_def.h"
#include "RONvParam_AMT.h"
#include "nv_api.h"
+#include "atreg_msg.h"
#ifndef HAVE_MODE_IN_CORE
#include "syncnv.h"
#endif
@@ -146,6 +147,16 @@
int rsp_len = 0;
int ret;
+ struct ser_ops_t0 * ser_nod0 = NULL;
+ ser_nod0 = find_ser_by_msg_modid0(msg_buf->usMsgCmd, msg_buf->src_id);
+ if(ser_nod0 != NULL)
+ {
+ at_context_write_data(ser_nod0->context->at_channel->at_fd, msg_buf->aucDataBuf, msg_buf->usDataLen);
+ at_context_free_ctx(ser_nod0->context);
+ ser_nod0->context = NULL;
+ return 1;
+ }
+
ser_nod = find_ser_by_msg(msg_buf->usMsgCmd);
if(ser_nod != NULL)
{
@@ -495,6 +506,56 @@
}
break;
}
+ case MSG_CMD_AT_REG_REQ:
+ {
+ struct atreg_msg_t rsp = {0};
+ if(msg_buf->usDataLen != sizeof(struct atreg_msg_t))
+ {
+ at_print(AT_ERR,"at rcv_msg_proc REG_REQ len=%d!=%d err\n", (int)msg_buf->usDataLen, (int)sizeof(struct atreg_msg_t));
+ }
+ memcpy(&rsp, msg_buf->aucDataBuf, sizeof(struct atreg_msg_t));
+ rsp.at_cmd_prefix[AT_CMD_PREFIX-1]='\0';
+ if(rsp.type)
+ {
+ rsp.res = register_inform_func0(rsp.at_cmd_prefix, msg_buf->src_id ,rsp.req_msg_id);
+ }
+ else
+ {
+ rsp.res = register_serv_func0(rsp.at_cmd_prefix, msg_buf->src_id, rsp.req_msg_id, rsp.rsp_msg_id);
+ }
+
+ if(0 != ipc_send_message2(MODULE_ID_AT_CTL, msg_buf->src_id, MSG_CMD_AT_REG_RSP, sizeof(struct atreg_msg_t), &rsp,0))
+ {
+ at_print(AT_ERR,"at rcv_msg_proc REG_REQ id=%d at=%s ipc err\n", msg_buf->src_id, rsp.at_cmd_prefix);
+ }
+ break;
+ }
+ case MSG_CMD_AT_UNREG_REQ:
+ {
+ struct atreg_msg_t rsp = {0};
+ if(msg_buf->usDataLen != sizeof(struct atreg_msg_t))
+ {
+ at_print(AT_ERR,"at rcv_msg_proc UNREG_REQ len=%d!=%d err\n", msg_buf->usDataLen, (int)sizeof(struct atreg_msg_t));
+ }
+ memcpy(&rsp, msg_buf->aucDataBuf, sizeof(struct atreg_msg_t));
+ rsp.at_cmd_prefix[AT_CMD_PREFIX-1]='\0';
+ if(rsp.type)
+ {
+ rsp.res = unregister_inform_func0(rsp.at_cmd_prefix, rsp.req_msg_id);
+ }
+ else
+ {
+ rsp.res = unregister_serv_func0(rsp.at_cmd_prefix, rsp.req_msg_id);
+ }
+
+ if(0 != ipc_send_message2(MODULE_ID_AT_CTL, msg_buf->src_id, MSG_CMD_AT_UNREG_RSP, sizeof(struct atreg_msg_t), &rsp,0))
+ {
+ at_print(AT_ERR,"at rcv_msg_proc UNREG_REQ id=%d at=%s ipc err\n", msg_buf->src_id, rsp.at_cmd_prefix);
+ }
+ break;
+ }
+
+
#ifdef _USE_BL
case MSG_CMD_MODESET_REQ:
{
@@ -689,6 +750,8 @@
INIT_LIST_HEAD(&g_appclt_list);
INIT_LIST_HEAD(&g_modem_extat_list);
INIT_LIST_HEAD(&g_formatinform_list);
+ INIT_LIST_HEAD(&g_inform_list0);
+ INIT_LIST_HEAD(&g_ser_list0);
/* ´´½¨ÏûÏ¢¶ÓÁÐ*/
iMsgHandle = msgget(MODULE_ID_AT_CTL, IPC_CREAT|0600);
@@ -706,7 +769,7 @@
ctl_recv_thread_create();
/* ×¢²áat´¦Àíº¯Êý*/
register_at_event_init();
-#ifdef MULTI_CPU
+#if 0//def MULTI_CPU
/* APºÍCP²àNVͬ²½*/
sync_nv();
diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c
index c4ce427..a87c8d5 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_portmng.c
@@ -119,7 +119,7 @@
{
node = add_new_channel(FD_FAR_PS[ilde_idx],FAR_PS);
//if(node != NULL &&(strstr(name, "/dev/ttyGS0") != NULL || strstr(name, "/dev/ttyGS1") != NULL))
- node->reserved = 1;//×÷ΪԤÁôͨµÀ£¬ÔÚÇëÇóÃüÁîÑ¡Ôñfarpsʱºò£¬»áÑ¡Ôñ·¢ËÍ
+ node->reserved = 0;//×÷ΪԤÁôͨµÀ£¬ÔÚÇëÇóÃüÁîÑ¡Ôñfarpsʱºò£¬»áÑ¡Ôñ·¢ËÍ
memcpy(g_farps_port_info[ilde_idx].name,name,strlen(name));
g_farps_port_info[ilde_idx].fd = FD_FAR_PS[ilde_idx];
g_farps_port_info[ilde_idx].state = 1;
diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_rcvmsg.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_rcvmsg.c
index b7a4fff..4d7317e 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_rcvmsg.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_rcvmsg.c
@@ -145,6 +145,71 @@
void * res_msg = NULL;
int res_msglen = 0;
+ struct ser_ops_t0* rcv_req_node0 = NULL;
+
+ list_for_each_entry(rcv_req_node0,&g_ser_list0,list)
+ {
+
+ //×¢²áµ½ser_ops_t2µ±ÖеÄǰ׺³¤¶È£¬ÓпÉÄܱȸø¶¨µÄatǰ׺³¤¶ÈÒª³¤
+ if(0 == at_strncmp(rcv_req_node0->at_cmd_prefix, (char*)at_cmd_prefix,MAXSTR(rcv_req_node0->at_cmd_prefix, prefix_len)))
+ {
+ if(at_context_find_ctx_by_fd_type(at_fd, AT_FWD_UP)||at_context_find_ctx_by_fd_type(at_fd, AT_SERVER))
+ {
+ //¹úµç¶¨ÖÆ£¬¹úµçMCU·¢ËÍMYNETACTÖ®ºó5ÃëÖÓûÓ줻î³É¹¦»áÔٴη¢ËÍ£¬·µ»ØERROR»á´¥·¢µ×°åÖØÆô
+ if(g_customer_type == CUSTOMER_GUODIAN || g_customer_type == CUSTOMER_NANDIAN)
+ {
+ return 1;
+ }
+ else
+ {
+ //»Ø¸´ATͨµÀæ
+ char* err_str = at_err_build(ATERR_CHANNEL_BUSY);
+ at_context_write_data(at_fd, err_str,strlen(err_str));
+ free(err_str);
+ return 1;
+ }
+ }
+ if(rcv_req_node0->context != NULL)
+ {
+ softap_assert("");
+ //ret = at_write(at_fd,"\r\nERROR\r\n",strlen("\r\nERROR\r\n"));
+ return 1;
+ }
+
+ //¶ÔÓÚÒì²½´¦Àí£¬ÔòÐèÒª·¢ËÍÏûÏ¢¸ø×¢²áµÄÄ£¿é£¬ÓɸÃÄ£¿é´¦Àí£¬´¦Àí½áÊøºó£¬·¢ËÍÏìÓ¦ÏûÏ¢¸øat_ctl
+ {
+ if(rcv_req_node0->module_id)
+ {
+ int send_ret = -1;
+ int store_len = 0;
+ //¶ÔÓÚ·þÎñ¶ËÕ¼ÓõÄatͨµÀ£¬¾ßÓжÀÕ¼ÐÔ£¬½öÔÚatͨµÀÒѾ¹Ø±Õʱ£¬ÉêÇëÉÏÏÂÎIJŻáʧ°Ü£¬Òò´ËÊÍ·ÅÄÚ´æºó£¬Ö±½Ó·µ»Ø¼´¿É£¬ÎÞÐèÔÙ·¢ËÍÏûÏ¢
+ context = at_context_alloc_ctx_by_fd(at_fd,AT_SERVER);
+ if(NULL == context)
+ {
+ return 1;
+ }
+ store_len = prefix_len<(AT_CMD_PREFIX)?prefix_len:(AT_CMD_PREFIX-1);
+ snprintf(context->at_cmd_prefix,store_len+1,"%s",(char *)at_cmd_prefix);
+ //strncpy(context->at_cmd_prefix, (char *)at_cmd_prefix, store_len);
+ context->at_proc = (void*)rcv_req_node0;
+ rcv_req_node0->context = context;
+ {
+ send_ret = ipc_send_message2(MODULE_ID_AT_CTL, rcv_req_node0->module_id, rcv_req_node0->req_msg_id, at_cmd_paras?strlen(at_cmd_paras)+1:0, at_cmd_paras,0);
+ }
+ //ÏûÏ¢·¢ËÍʧ°Ü£¬Ö±½Ó·µ»ØERROR²¢ÊÍ·ÅͨµÀÉÏÏÂÎÄ
+ if(0 != send_ret)
+ {
+ char* err_str = at_err_build(ATERR_PROC_FAILED);
+ at_context_write_data(at_fd, err_str,strlen(err_str));
+ free(err_str);
+ at_context_free_ctx(context);
+ }
+ }
+ }
+ return 1;
+ }
+ }
+
//¶Ô·ÇµçÐÅÀàÀ©Õ¹ATÇëÇóµÄÆ¥Åä´¦Àí
list_for_each_entry(rcv_req_node,&g_ser_list2,list)
{
@@ -981,6 +1046,22 @@
#endif
}
}
+ {
+ struct inform_ops_t0* entry0 = NULL;
+
+ list_for_each_entry(entry0,&g_inform_list0,list)
+ {
+ if((0 == at_strncmp(entry0->at_cmd_prefix,(char*)at_cmd_prefix, MAXSTR(entry0->at_cmd_prefix,prefix_len))))
+ {
+ at_print(AT_ERR,"inform_act at_cmd_prefix0 = %s \n", entry0->at_cmd_prefix);
+ //ÏûÏ¢·¢ËÍʧ°Ü£¬Ö±½Ó·µ»ØERROR²¢ÊÍ·ÅͨµÀÉÏÏÂÎÄ
+ if(at_cmd_paras && 0 != ipc_send_message2(MODULE_ID_AT_CTL, entry0->module_id, entry0->req_msg_id, strlen(at_cmd_paras)+1, at_cmd_paras,0))
+ {
+ at_print(AT_ERR,"inform_act at_cmd_prefix0 ipc err\n");
+ }
+ }
+ }
+ }
}
if(at_cmd_prefix)
rcv_at_inform_filter(at_fd, at_cmd_prefix, prefix_len);
diff --git a/ap/app/zte_comm/at_ctl/src/atctrl/at_register.c b/ap/app/zte_comm/at_ctl/src/atctrl/at_register.c
index 2b10ba5..9c64d06 100755
--- a/ap/app/zte_comm/at_ctl/src/atctrl/at_register.c
+++ b/ap/app/zte_comm/at_ctl/src/atctrl/at_register.c
@@ -65,6 +65,9 @@
/*ÓÃÓÚmodemÏà¹ØµÄƽ̨¼¶À©Õ¹ATÃüÁîµÄ×¢²á£¬Ä¿Ç°½öÔÊÐíPDP¼¤»î¡¢¿ª»úµÈÉÙÊýƽ̨¼¶¹¦ÄÜÌṩƽ̨¼¶À©Õ¹ATÃüÁîµÄ×¢²á*/
struct list_head g_modem_extat_list;
+struct list_head g_inform_list0;
+struct list_head g_ser_list0;
+
/*******************************************************************************
* Local function implementations *
******************************************************************************/
@@ -624,4 +627,121 @@
return 0;
}
+struct ser_ops_t0 *find_ser_by_msg_modid0(int rsp_msg_id, int module_id)
+{
+ struct ser_ops_t0 *entry;
+ list_for_each_entry(entry,&g_ser_list0,list)
+ {
+ if(entry->rsp_msg_id == rsp_msg_id && entry->context != NULL && entry->module_id == module_id)
+ return entry;
+ }
+ return NULL;
+}
+
+struct ser_ops_t0* find_ser_by_prefix0(void *at_cmd_prefix, int prefix_len)
+{
+ struct ser_ops_t0* entry;
+ list_for_each_entry(entry,&g_ser_list0,list)
+ {
+ //×¢²áµ½ser_ops_t2µ±ÖеÄǰ׺³¤¶È£¬ÓпÉÄܱȸø¶¨µÄatǰ׺³¤¶ÈÒª³¤
+ if(0 == at_strncmp(entry->at_cmd_prefix, (char*)at_cmd_prefix,MAXSTR(entry->at_cmd_prefix, prefix_len)))
+ return entry;
+ }
+ return NULL;
+}
+
+int register_inform_func0(char *at_cmd_prefix,int module_id, int req_msg_id)
+{
+ struct inform_ops_t0 *rcv_inform_node;
+ list_for_each_entry(rcv_inform_node,&g_inform_list0,list)
+ {
+ if(0 == at_strncmp(rcv_inform_node->at_cmd_prefix,(char*)at_cmd_prefix, strlen(at_cmd_prefix)))
+ {
+ if(rcv_inform_node->req_msg_id != req_msg_id || rcv_inform_node->module_id != module_id)
+ {
+ at_print(AT_ERR,"ERR: duplicate register_inform_func at_cmd_prefix: %s msg=%x\n",at_cmd_prefix,rcv_inform_node->req_msg_id);
+ continue;
+ }
+ else
+ {
+ return -1;
+ }
+ }
+ }
+
+ rcv_inform_node = (struct inform_ops_t0 *)malloc(sizeof(struct inform_ops_t0 ));
+ if(!rcv_inform_node){
+ softap_assert("malloc fail ");
+ return -1;
+ }
+ memset(rcv_inform_node,0,sizeof(struct inform_ops_t0 ));
+ strncpy(rcv_inform_node->at_cmd_prefix,at_cmd_prefix,AT_CMD_PREFIX-1);
+ rcv_inform_node->req_msg_id = req_msg_id;
+ rcv_inform_node->module_id = module_id;
+ list_add_tail((struct list_head *)rcv_inform_node,&g_inform_list0);
+ return 0;
+}
+
+int unregister_inform_func0(char *at_cmd_prefix, int req_msg_id)
+{
+ struct inform_ops_t0 *rcv_inform_node;
+ list_for_each_entry(rcv_inform_node,&g_inform_list0,list)
+ {
+ if(0 == at_strncmp(rcv_inform_node->at_cmd_prefix,(char*)at_cmd_prefix, strlen(at_cmd_prefix)))
+ {
+ if(rcv_inform_node->req_msg_id == req_msg_id)
+ {
+ list_del((struct list_head *)rcv_inform_node);
+ free(rcv_inform_node);
+ return 0;
+ }
+ }
+ }
+ return -1;
+}
+
+int register_serv_func0(char *at_cmd_prefix,int module_id,int req_msg_id,int rsp_msg_id)
+{
+ struct ser_ops_t0 *rcv_req_node;
+
+ if(find_ser_by_prefix0(at_cmd_prefix, strlen(at_cmd_prefix)))
+ {
+ at_print(AT_ERR,"ERR: duplicate register_serv_func0 prefix: %s\n",at_cmd_prefix);
+ return -1;
+ }
+ rcv_req_node =(struct ser_ops_t0 *)malloc(sizeof(struct ser_ops_t0));
+ if(!rcv_req_node)
+ {
+ softap_assert("malloc fail ");
+ return -1;
+ }
+ rcv_req_node->context = NULL;
+ memset(rcv_req_node,0,sizeof(struct ser_ops_t0));
+ strncpy(rcv_req_node->at_cmd_prefix,at_cmd_prefix,AT_CMD_PREFIX-1);
+ rcv_req_node->module_id = module_id;
+ rcv_req_node->req_msg_id = req_msg_id;
+ rcv_req_node->rsp_msg_id = rsp_msg_id;
+
+ list_add_tail((struct list_head *)rcv_req_node,&g_ser_list0);
+ return 0;
+}
+
+int unregister_serv_func0(char *at_cmd_prefix, int req_msg_id)
+{
+ struct ser_ops_t0 *rcv_req_node;
+ list_for_each_entry(rcv_req_node,&g_ser_list0,list)
+ {
+ if(0 == at_strncmp(rcv_req_node->at_cmd_prefix,(char*)at_cmd_prefix, strlen(at_cmd_prefix)))
+ {
+ if(rcv_req_node->req_msg_id == req_msg_id)
+ {
+ list_del((struct list_head *)rcv_req_node);
+ free(rcv_req_node);
+ return 0;
+ }
+ }
+ }
+ return -1;
+}
+
diff --git a/ap/app/zte_comm/nvserver/nvserver.c b/ap/app/zte_comm/nvserver/nvserver.c
index 6e1f654..b7a197d 100755
--- a/ap/app/zte_comm/nvserver/nvserver.c
+++ b/ap/app/zte_comm/nvserver/nvserver.c
@@ -30,143 +30,144 @@
file,char*key,char*value);static int nvunset(char*file,char*key);static int
nvclear(char*file);static int nvreset(char*file);static int nvcommit(char*file);
T_NV_NODE*nv_list;int nvserver_main(int argc,char*argv[]){int msgId=
-(0xaea+4144-0x1b1a);T_NV_MSG_INFO rcvBuf;T_NV_MSG_RESULT sndBuf;struct msqid_ds
-msgInfo;prctl(PR_SET_NAME,"\x6e\x76\x73\x65\x72\x76\x65\x72",
-(0x1611+1505-0x1bf2),(0x1c14+191-0x1cd3),(0x153+9135-0x2502));memset(&rcvBuf,
-(0x1f8+7402-0x1ee2),sizeof(rcvBuf));memset(&sndBuf,(0x96a+6783-0x23e9),sizeof(
-sndBuf));memset(&msgInfo,(0x27+2084-0x84b),sizeof(msgInfo));msgId=msgget(
-MODULE_ID_NV,IPC_CREAT|(0x1298+4145-0x2149));if(-(0x1c87+666-0x1f20)==msgId){
-printf(
+(0x21b7+228-0x229b);T_NV_MSG_INFO rcvBuf;T_NV_MSG_RESULT sndBuf;struct msqid_ds
+msgInfo;prctl(PR_SET_NAME,"\x6e\x76\x73\x65\x72\x76\x65\x72",(0x8ac+1107-0xcff),
+(0x325+7130-0x1eff),(0xac5+7170-0x26c7));memset(&rcvBuf,(0x1bd7+1186-0x2079),
+sizeof(rcvBuf));memset(&sndBuf,(0xc5f+4745-0x1ee8),sizeof(sndBuf));memset(&
+msgInfo,(0x12e2+609-0x1543),sizeof(msgInfo));msgId=msgget(MODULE_ID_NV,IPC_CREAT
+|(0x14e3+145-0x13f4));if(-(0x1096+3747-0x1f38)==msgId){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x6d\x73\x67\x67\x65\x74\x20\x6d\x73\x67\x49\x64\x20\x66\x61\x69\x6c\x2c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
-,errno);return-(0x84a+2941-0x13c6);}if(-(0x135+7698-0x1f46)!=msgctl(msgId,
-IPC_STAT,&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x18fd+2884-0x2440)==msgctl(
-msgId,IPC_SET,&msgInfo))printf(
+,errno);return-(0x39a+1709-0xa46);}if(-(0x59b+239-0x689)!=msgctl(msgId,IPC_STAT,
+&msgInfo)){msgInfo.msg_qbytes=262144;if(-(0x1594+3177-0x21fc)==msgctl(msgId,
+IPC_SET,&msgInfo))printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x6d\x73\x67\x63\x74\x6c\x20\x6d\x73\x67\x49\x64\x20\x66\x61\x69\x6c\x2c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
-,errno);}if(nvDirInit()!=(0x209f+1040-0x24af)){printf(
+,errno);}if(nvDirInit()!=(0xe14+3810-0x1cf6)){printf(
"\x6e\x76\x44\x69\x72\x49\x6e\x69\x74\x20\x66\x61\x69\x6c\x65\x21" "\n");return-
-(0x5e2+1420-0xb6d);}nvConfig();nvInit();while((0xa10+526-0xc1d)){if(-
-(0x17ea+2632-0x2231)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
-MSG_TYPE_NV,(0x1790+1510-0x1d76))){printf(
+(0x983+7212-0x25ae);}nvConfig();nvInit();while((0x4a8+5403-0x19c2)){if(-
+(0x7a0+694-0xa55)==msgrcv(msgId,&rcvBuf,sizeof(T_NV_MSG_INFO)-sizeof(long),
+MSG_TYPE_NV,(0x1555+856-0x18ad))){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6d\x73\x67\x72\x63\x76\x20\x66\x61\x69\x6c\x2c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
-,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0x481+1369-0x9d9)==msgsnd(msgId
-,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0xa0d+5724-0x2069))){printf(
+,errno);continue;}analyMsg(&rcvBuf,&sndBuf);if(-(0x93+7684-0x1e96)==msgsnd(msgId
+,&sndBuf,sizeof(T_NV_MSG_RESULT)-sizeof(long),(0x1429+1555-0x1a3c))){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6d\x73\x67\x73\x6e\x64\x20\x66\x61\x69\x6c\x2c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
-,errno);continue;}}return((0x12e7+4257-0x2388));}static void configdir(char*dir)
-{DIR*dp;int ret;struct dirent*entry;struct stat statbuf;if((dp=opendir(dir))==
+,errno);continue;}}return((0xb32+2857-0x165b));}static void configdir(char*dir){
+DIR*dp;int ret;struct dirent*entry;struct stat statbuf;if((dp=opendir(dir))==
NULL){fprintf(stderr,
"\x63\x61\x6e\x6e\x6f\x74\x20\x6f\x70\x65\x6e\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79\x3a\x20\x25\x73" "\n"
,dir);return;}chdir(dir);while((entry=readdir(dp))!=NULL){ret=lstat(entry->
-d_name,&statbuf);if(ret<(0x1c2+3334-0xec8)){fprintf(stderr,
+d_name,&statbuf);if(ret<(0xda4+2642-0x17f6)){fprintf(stderr,
"\x6c\x73\x74\x61\x74\x20\x65\x72\x72\x6f\x72\x3a\x20\x25\x73" "\n",strerror(
errno));chdir("\x2e\x2e");closedir(dp);return;}if(!S_ISDIR(statbuf.st_mode)){if(
-strcmp("\x2e",entry->d_name)==(0x1d74+1056-0x2194)||strcmp("\x2e\x2e",entry->
-d_name)==(0xd8a+532-0xf9e))continue;if(!isNvConfiged(entry->d_name)){if(
+strcmp("\x2e",entry->d_name)==(0x3a5+2764-0xe71)||strcmp("\x2e\x2e",entry->
+d_name)==(0x7cd+7314-0x245f))continue;if(!isNvConfiged(entry->d_name)){if(
addConfigFile(entry->d_name,NULL)!=RESULT_SUCCESS)printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x63\x6f\x6e\x66\x69\x67\x20\x25\x73\x20\x65\x72\x72\x6f\x72\x21" "\n"
,entry->d_name);}}}chdir("\x2e\x2e");closedir(dp);}static void nvConfig(){char*
-val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0x70c+4185-0x1765)};fp=fopen
-(NV_CONFIG_FILE,"\x72\x6f");if(!fp){printf(
+val=NULL;FILE*fp=NULL;char buf[NV_MAX_CONFIG_LEN]={(0x100c+1798-0x1712)};fp=
+fopen(NV_CONFIG_FILE,"\x72\x6f");if(!fp){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x6f\x70\x65\x6e\x20\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
,NV_CONFIG_FILE,errno);return;}while(fgets(buf,NV_MAX_CONFIG_LEN,fp)){if(buf[
-(0x894+93-0x8f1)]=='\n'||buf[(0x18ab+891-0x1c26)]==((char)(0x312+4389-0x1414)))
-continue;val=strchr(buf,((char)(0x5e0+3374-0x12d1)));if(!val){printf(
+(0xcf6+6519-0x266d)]=='\n'||buf[(0x12ec+869-0x1651)]==
+((char)(0x837+2206-0x10b2)))continue;val=strchr(buf,((char)(0xbd8+3563-0x1986)))
+;if(!val){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x6f\x72\x6d\x61\x74\x20\x65\x72\x72\x6f\x72\x3a\x20\x73\x74\x72\x20\x3d\x20\x25\x73\x21" "\n"
-,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0xcec+6363-0x25c6)]='\0';*val++=
+,NV_CONFIG_FILE,buf);continue;}buf[strlen(buf)-(0x394+4011-0x133e)]='\0';*val++=
'\0';if(!isCfgConfiged(buf)){if(addConfigFile(val,buf)!=RESULT_SUCCESS)printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x63\x6f\x6e\x66\x69\x67\x20\x25\x73\x20\x65\x72\x72\x6f\x72\x21" "\n"
,buf);}}fclose(fp);configdir(NV_FS_MAIN_PATH);}static int nvDirInit(){if(access(
-NV_FS_PATH,F_OK)!=(0x2fd+1808-0xa0d)){if(mkdir(NV_FS_PATH,(0x2df+3050-0xcdc))!=
-(0x7a7+3590-0x15ad)){printf(
+NV_FS_PATH,F_OK)!=(0x41a+6568-0x1dc2)){if(mkdir(NV_FS_PATH,(0x9fc+7306-0x2499))
+!=(0x2a5+5311-0x1764)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_PATH,errno);return-(0x532+691-0x7e4);}if(mkdir(NV_FS_MAIN_PATH,
-(0x459+3006-0xe2a))!=(0x217+5370-0x1711)){printf(
+,NV_FS_PATH,errno);return-(0x1034+4881-0x2344);}if(mkdir(NV_FS_MAIN_PATH,
+(0x588+2040-0xb93))!=(0x7bc+4919-0x1af3)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_MAIN_PATH,errno);return-(0x1463+3947-0x23cd);}if(mkdir(NV_FS_BACKUP_PATH,
-(0x4a5+5946-0x19f2))!=(0x12f2+2574-0x1d00)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0x1d8+243-0x2ca);}if(mkdir(NV_FS_BACKUP_PATH,
+(0xcaf+1773-0x11af))!=(0x7ad+7206-0x23d3)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_BACKUP_PATH,errno);return-(0x223+1253-0x707);}}else{if(access(
-NV_FS_MAIN_PATH,F_OK)!=(0xa5f+5243-0x1eda)){if(mkdir(NV_FS_MAIN_PATH,
-(0x259+217-0x145))!=(0xeea+4988-0x2266)){printf(
+,NV_FS_BACKUP_PATH,errno);return-(0x3ca+3435-0x1134);}}else{if(access(
+NV_FS_MAIN_PATH,F_OK)!=(0x605+6134-0x1dfb)){if(mkdir(NV_FS_MAIN_PATH,
+(0x7a3+436-0x76a))!=(0x1805+667-0x1aa0)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_MAIN_PATH,errno);return-(0x1567+686-0x1814);}}if(access(NV_FS_BACKUP_PATH
-,F_OK)!=(0xcb3+249-0xdac)){if(mkdir(NV_FS_BACKUP_PATH,(0x1825+114-0x16aa))!=
-(0x1574+4254-0x2612)){printf(
+,NV_FS_MAIN_PATH,errno);return-(0xdf7+1150-0x1274);}}if(access(NV_FS_BACKUP_PATH
+,F_OK)!=(0x1b69+1144-0x1fe1)){if(mkdir(NV_FS_BACKUP_PATH,(0x1721+808-0x185c))!=
+(0xcd+9272-0x2505)){printf(
"\x6e\x65\x72\x76\x65\x72\x20\x6d\x6b\x64\x69\x72\x20\x25\x73\x20\x66\x61\x6c\x69\x2c\x65\x72\x72\x6e\x6f\x3d\x25\x64" "\n"
-,NV_FS_BACKUP_PATH,errno);return-(0x1a5a+656-0x1ce9);}}}return(0x29+4739-0x12ac)
-;}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[NV_PATH_LEN]={
-(0x1a5+93-0x202)};char nvBackupFile[NV_PATH_LEN]={(0x1139+761-0x1432)};for(list=
-nv_list;list;list=list->next){snprintf(nvMainFile,NV_PATH_LEN,
-"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,list->nvFile);snprintf(nvBackupFile,
-NV_PATH_LEN,"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,list->nvFile);if(checkNvFs(
-nvMainFile)){if(!checkNvFs(nvBackupFile))restoreNvFs(nvBackupFile,nvMainFile);}
-else if(checkNvFs(nvBackupFile)){restoreNvFs(nvMainFile,nvBackupFile);}else{
-loadFactroyParam(list);nvcommit(list->nvFile);continue;}loadNvFs(list->nvFile);
-if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==(0x1124+2190-0x19b0)){
-reloadFactroyParam(list);delete_not_needed(list);nvcommit(list->nvFile);
+,NV_FS_BACKUP_PATH,errno);return-(0x1ad+9035-0x24f7);}}}return
+(0x148c+3042-0x206e);}static void nvInit(){T_NV_NODE*list=NULL;char nvMainFile[
+NV_PATH_LEN]={(0x2e8+5704-0x1930)};char nvBackupFile[NV_PATH_LEN]={
+(0x1c4c+977-0x201d)};for(list=nv_list;list;list=list->next){snprintf(nvMainFile,
+NV_PATH_LEN,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,list->nvFile);snprintf(
+nvBackupFile,NV_PATH_LEN,"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,list->nvFile);
+if(checkNvFs(nvMainFile)){if(!checkNvFs(nvBackupFile))restoreNvFs(nvBackupFile,
+nvMainFile);}else if(checkNvFs(nvBackupFile)){restoreNvFs(nvMainFile,
+nvBackupFile);}else{loadFactroyParam(list);nvcommit(list->nvFile);continue;}
+loadNvFs(list->nvFile);if(!strcmp(list->nvFile,NV_CFG)&&get_update_status()==
+(0x802+3439-0x156f)){reloadFactroyParam(list);delete_not_needed(list);nvcommit(
+list->nvFile);
#ifdef FOTA_AB
-dual_AB_set_fota_status_for_nv((0x16fc+1753-0x1dd5));
+dual_AB_set_fota_status_for_nv((0x230+1171-0x6c3));
#endif
-}}}uint hash(const char*s){uint hash=(0x749+6614-0x211f);while(*s){hash=
+}}}uint hash(const char*s){uint hash=(0x7d1+4436-0x1925);while(*s){hash=
NV_HASH_MUL*hash+*s++;}return hash;}static int loadFactroyParam(T_NV_NODE*list){
char*val=NULL;FILE*fp=NULL;T_NV_CONFIG*config=NULL;char buf[NV_MAX_ITEM_LEN]={
-(0x7a6+3997-0x1743)};for(config=list->fileList;config;config=config->next){fp=
+(0xb55+863-0xeb4)};for(config=list->fileList;config;config=config->next){fp=
fopen(config->configFile,"\x72\x6f");if(!fp){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x6f\x70\x65\x6e\x20\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
,config->configFile,errno);return RESULT_FILE_OPEN_FAIL;}while(fgets(buf,
-NV_MAX_ITEM_LEN,fp)){if(buf[(0x1ff+8264-0x2247)]=='\n'||buf[(0xbf7+2145-0x1458)]
-==((char)(0x1715+230-0x17d8)))continue;val=strchr(buf,
-((char)(0x1936+837-0x1c3e)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x11fb+960-0x15bb)]=='\n'||buf[(0x8dc+1148-0xd58)]
+==((char)(0x12d5+4039-0x2279)))continue;val=strchr(buf,((char)(0xe7+1722-0x764))
+);if(!val){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x6f\x72\x6d\x61\x74\x20\x65\x72\x72\x6f\x72\x3a\x73\x74\x72\x69\x6e\x67\x20\x3d\x20\x25\x73" "\n"
-,config->configFile,buf);continue;}if(buf[strlen(buf)-(0x1338+3956-0x22ab)]==
-'\n')buf[strlen(buf)-(0x484+6087-0x1c4a)]='\0';*val++='\0';nvset(list->nvFile,
-buf,val,(0x2b2+687-0x560));}printf(
+,config->configFile,buf);continue;}if(buf[strlen(buf)-(0xa3b+7323-0x26d5)]=='\n'
+)buf[strlen(buf)-(0x1654+2547-0x2046)]='\0';*val++='\0';nvset(list->nvFile,buf,
+val,(0x54c+3663-0x139a));}printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x25\x73\x21" "\n"
,config->configFile);fclose(fp);}return RESULT_SUCCESS;}static bool checkNvFs(
-char*file){int len=(0xec0+1923-0x1643);int cnt=(0x5a3+4403-0x16d6);FILE*fp=NULL;
-char*buf=NULL;struct stat statbuff={(0x113d+2028-0x1929)};if(stat(file,&statbuff
-)<(0x410+8528-0x2560))return false;len=statbuff.st_size;if(len<NV_CHECK_SIZE)
+char*file){int len=(0x425+8073-0x23ae);int cnt=(0x32f+3665-0x1180);FILE*fp=NULL;
+char*buf=NULL;struct stat statbuff={(0x68+901-0x3ed)};if(stat(file,&statbuff)<
+(0x1bc8+365-0x1d35))return false;len=statbuff.st_size;if(len<NV_CHECK_SIZE)
return false;fp=fopen(file,"\x72\x6f");if(!fp)return false;buf=(char*)malloc(len
-);if(!buf){fclose(fp);return false;}cnt=(0x99b+51-0x9ce);while(cnt<len){cnt=cnt+
-fread(buf+cnt,(0x51c+7608-0x22d3),len-cnt,fp);if(ferror(fp)){clearerr(fp);free(
-buf);fclose(fp);return false;}}if(len!=cnt){free(buf);fclose(fp);return false;}
-if(getSum(buf,len-NV_CHECK_SIZE)+NV_FILE_FLAG!=*(uint*)(buf+len-NV_CHECK_SIZE)){
-free(buf);fclose(fp);return false;}free(buf);fclose(fp);return true;}static int
-copyfile(const char*from,const char*to){int fd_to;int fd_from;char buf[
-(0x13d7+8497-0x2508)];ssize_t nread;int ret=-(0x16f0+2761-0x21b8);fd_from=open(
-from,O_RDONLY);if(fd_from<(0x2db+799-0x5fa))return-(0x253c+264-0x2642);fd_to=
-open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,(0x500+6714-0x1d9a));if(fd_to<
-(0x37d+6679-0x1d94)){ret=-(0x24a+2472-0xbef);goto out_error;}while(
-(0x13a6+1524-0x1999)){char*out_ptr;ssize_t nwritten;nread=read(fd_from,buf,
-sizeof(buf));if(nread==(0x37d+9025-0x26be)){break;}else{if(nread<
-(0x360+5930-0x1a8a)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
-(0x905+2791-0x13e8);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,
-out_ptr,nread);if(nwritten>(0x5c9+1236-0xa9d)){nread-=nwritten;out_ptr+=nwritten
-;}else{if(nwritten<(0xc04+2808-0x16fc)){if(errno==EINTR||errno==EAGAIN){continue
-;}else{ret=-(0x2cd+6917-0x1dcd);goto out_error;}}}}while(nread>
-(0x25a+7315-0x1eed));}ret=fsync(fd_to);if(ret<(0x11d3+1192-0x167b)){printf(
+);if(!buf){fclose(fp);return false;}cnt=(0x1362+2711-0x1df9);while(cnt<len){cnt=
+cnt+fread(buf+cnt,(0x109a+5013-0x242e),len-cnt,fp);if(ferror(fp)){clearerr(fp);
+free(buf);fclose(fp);return false;}}if(len!=cnt){free(buf);fclose(fp);return
+false;}if(getSum(buf,len-NV_CHECK_SIZE)+NV_FILE_FLAG!=*(uint*)(buf+len-
+NV_CHECK_SIZE)){free(buf);fclose(fp);return false;}free(buf);fclose(fp);return
+true;}static int copyfile(const char*from,const char*to){int fd_to;int fd_from;
+char buf[(0x136b+5791-0x1a0a)];ssize_t nread;int ret=-(0xf07+2228-0x17ba);
+fd_from=open(from,O_RDONLY);if(fd_from<(0x5c1+8279-0x2618))return-
+(0xa30+6645-0x2423);fd_to=open(to,O_RDWR|O_CREAT|O_TRUNC|O_SYNC,
+(0x1701+3253-0x2216));if(fd_to<(0x18c9+425-0x1a72)){ret=-(0x6f9+2022-0xedc);goto
+ out_error;}while((0xdb6+6155-0x25c0)){char*out_ptr;ssize_t nwritten;nread=read(
+fd_from,buf,sizeof(buf));if(nread==(0x160d+3003-0x21c8)){break;}else{if(nread<
+(0x158+5810-0x180a)){if(errno==EINTR||errno==EAGAIN){continue;}else{ret=-
+(0x147+3804-0x101f);goto out_error;}}}out_ptr=buf;do{nwritten=write(fd_to,
+out_ptr,nread);if(nwritten>(0x274+6785-0x1cf5)){nread-=nwritten;out_ptr+=
+nwritten;}else{if(nwritten<(0x1e6d+1603-0x24b0)){if(errno==EINTR||errno==EAGAIN)
+{continue;}else{ret=-(0x470+7125-0x2040);goto out_error;}}}}while(nread>
+(0x1466+4545-0x2627));}ret=fsync(fd_to);if(ret<(0x860+2703-0x12ef)){printf(
"\x53\x79\x6e\x63\x20\x46\x61\x69\x6c\x65\x64\x3a\x25\x73\x2c\x20\x66\x69\x6c\x65\x20\x70\x61\x74\x68\x3a\x25\x73"
-,strerror(errno),to);goto out_error;}if(close(fd_to)<(0xf1c+2978-0x1abe)){fd_to=
--(0x505+5923-0x1c27);ret=-(0xbd5+787-0xee2);goto out_error;}close(fd_from);
-return(0x1946+229-0x1a2b);out_error:printf(
+,strerror(errno),to);goto out_error;}if(close(fd_to)<(0x4f3+3686-0x1359)){fd_to=
+-(0xa63+6633-0x244b);ret=-(0x6c7+1636-0xd25);goto out_error;}close(fd_from);
+return(0x112a+739-0x140d);out_error:printf(
"\x63\x6f\x70\x79\x66\x69\x6c\x65\x20\x25\x73\x20\x74\x6f\x20\x25\x73\x20\x65\x72\x72\x6f\x72\x3a\x25\x64" "\n"
-,from,to,ret);close(fd_from);if(fd_to>=(0x394+464-0x564))close(fd_to);return ret
-;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,dstFile)
-!=(0x13d8+4786-0x268a))return RESULT_FAIL;return RESULT_SUCCESS;}static int
-loadNvFs(char*file){int len=(0xf5b+4836-0x223f);int cnt=(0x5d9+2332-0xef5);FILE*
-fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct stat
-statbuff={(0x509+5632-0x1b09)};char nvFile[NV_PATH_LEN]={(0x287+7854-0x2135)};
+,from,to,ret);close(fd_from);if(fd_to>=(0x668+3927-0x15bf))close(fd_to);return
+ret;}static int restoreNvFs(char*dstFile,char*srcFile){if(copyfile(srcFile,
+dstFile)!=(0xb6b+697-0xe24))return RESULT_FAIL;return RESULT_SUCCESS;}static int
+ loadNvFs(char*file){int len=(0xf85+835-0x12c8);int cnt=(0x3b1+4574-0x158f);FILE
+*fp=NULL;char*buf=NULL;char*name=NULL;char*value=NULL;char*eq=NULL;struct stat
+statbuff={(0x19e4+2563-0x23e7)};char nvFile[NV_PATH_LEN]={(0x89a+7054-0x2428)};
sprintf(nvFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);if(stat(nvFile,&
-statbuff)<(0x9e4+2048-0x11e4))return RESULT_FAIL;len=statbuff.st_size;if(
+statbuff)<(0xf39+3366-0x1c5f))return RESULT_FAIL;len=statbuff.st_size;if(
NV_CHECK_SIZE>len)return RESULT_FAIL;fp=fopen(nvFile,"\x72\x6f");if(!fp)return
RESULT_FILE_OPEN_FAIL;len=len-NV_CHECK_SIZE;buf=(char*)malloc(len+
-(0xf9f+833-0x12df));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
-(0x1184+1122-0x15e6),len+(0x1a68+1095-0x1eae));cnt=(0x5b7+1247-0xa96);while(cnt<
-len){cnt=cnt+fread(buf+cnt,(0x52c+2229-0xde0),len-cnt,fp);if(ferror(fp)){
+(0x16f2+2490-0x20ab));if(!buf){fclose(fp);return RESULT_MALLOC_FAIL;}memset(buf,
+(0x1787+1795-0x1e8a),len+(0x777+1771-0xe61));cnt=(0x36d+8250-0x23a7);while(cnt<
+len){cnt=cnt+fread(buf+cnt,(0x205d+1677-0x26e9),len-cnt,fp);if(ferror(fp)){
clearerr(fp);fclose(fp);free(buf);return RESULT_FILE_READ_FAIL;}}if(cnt!=len){
fclose(fp);free(buf);return RESULT_FILE_READ_FAIL;}buf[len]='\0';name=buf;while(
-*name){if(!(eq=strchr(name,((char)(0x11ea+1499-0x1788))))){break;}*eq='\0';value
-=eq+(0x1099+5334-0x256e);nvset(file,name,value,(0x1889+956-0x1c44));*eq=
-((char)(0x257a+412-0x26d9));name=value+strlen(value)+(0x13c9+1473-0x1989);}free(
+*name){if(!(eq=strchr(name,((char)(0xe94+4620-0x2063))))){break;}*eq='\0';value=
+eq+(0x218+4518-0x13bd);nvset(file,name,value,(0x1c68+107-0x1cd2));*eq=
+((char)(0xb08+4409-0x1c04));name=value+strlen(value)+(0x1a2d+3131-0x2667);}free(
buf);fclose(fp);return RESULT_SUCCESS;}static void analyMsg(T_NV_MSG_INFO*
msgrecv,T_NV_MSG_RESULT*msgsnd){switch(msgrecv->nvType){case MSG_GET:msgsnd->
result=nvget(msgrecv->file,msgrecv->key,msgsnd->value);break;case MSG_SET:msgsnd
@@ -182,104 +183,103 @@
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x70\x61\x72\x61\x6d\x20\x69\x6c\x6c\x65\x67\x61\x6c\x21" "\n"
);return RESULT_INVAL;}if(configFile){newConfig=(T_NV_CONFIG*)malloc(sizeof(
T_NV_CONFIG));if(!newConfig)return RESULT_MALLOC_FAIL;strncpy(newConfig->
-configFile,configFile,NV_PATH_LEN-(0x3a5+8399-0x2473));newConfig->configFile[
-NV_PATH_LEN-(0x9a6+2041-0x119e)]='\0';newConfig->next=NULL;}for(list=nv_list;
-list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0xf0+778-0x3fa))break;}if
-(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(newConfig)
-free(newConfig);return RESULT_MALLOC_FAIL;}newList->next=NULL;strncpy(newList->
-nvFile,nvFile,NV_PATH_LEN-(0x21fc+960-0x25bb));newList->nvFile[NV_PATH_LEN-
-(0xc26+1512-0x120d)]='\0';memset(newList->nvTable,(0xaf8+2366-0x1436),
-NV_HASH_LEN*(0x404+3503-0x11af));newList->fileList=newConfig;if(!nv_list)nv_list
-=newList;else{newList->next=nv_list->next;nv_list->next=newList;}}else if(!list
-->fileList)list->fileList=newConfig;else{if(newConfig==NULL)return RESULT_FAIL;
-newConfig->next=list->fileList->next;list->fileList->next=newConfig;}return
-RESULT_SUCCESS;}static bool isCfgConfiged(char*configFile){T_NV_NODE*list=NULL;
-T_NV_CONFIG*config=NULL;for(list=nv_list;list;list=list->next){for(config=list->
-fileList;config;config=config->next){if(!strcmp(config->configFile,configFile))
-return true;}}return false;}static bool isNvConfiged(char*nvFile){T_NV_NODE*list
-=NULL;for(list=nv_list;list;list=list->next){if(!strcmp(list->nvFile,nvFile))
-return true;}return false;}static uint getSum(const char*s,int len){uint sum=
-(0x1469+1721-0x1b22);char*data=(char*)s;while(len-- >(0xd0c+5271-0x21a3)){sum+=(
-*data++);}return sum;}static int saveNvFs(char*nvName,char*nvFile){int i=
-(0xae6+4407-0x1c1d);int sum=(0x6a7+4794-0x1961);int bufSize=(0xd4a+2813-0x1847);
-int itemSize=(0xe7c+205-0xf49);int ret=(0x8fa+2426-0x1274);int fp=
-(0x246+334-0x394);char*buf=NULL;T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list
-=nv_list;list;list=list->next){if(strcmp(list->nvFile,nvName))continue;fp=open(
-nvFile,O_SYNC|O_RDWR|O_CREAT|O_TRUNC,(0x270+6353-0x19a1));if(fp==-
-(0x11ed+4255-0x228b)){printf(
+configFile,configFile,NV_PATH_LEN-(0xdb7+785-0x10c7));newConfig->configFile[
+NV_PATH_LEN-(0x111a+2299-0x1a14)]='\0';newConfig->next=NULL;}for(list=nv_list;
+list;list=list->next){if(strcmp(list->nvFile,nvFile)==(0x1cc7+754-0x1fb9))break;
+}if(!list){newList=(T_NV_NODE*)malloc(sizeof(T_NV_NODE));if(!newList){if(
+newConfig)free(newConfig);return RESULT_MALLOC_FAIL;}newList->next=NULL;strncpy(
+newList->nvFile,nvFile,NV_PATH_LEN-(0x57a+1342-0xab7));newList->nvFile[
+NV_PATH_LEN-(0x158f+3870-0x24ac)]='\0';memset(newList->nvTable,(0x4a3+762-0x79d)
+,NV_HASH_LEN*(0x92a+7293-0x25a3));newList->fileList=newConfig;if(!nv_list)
+nv_list=newList;else{newList->next=nv_list->next;nv_list->next=newList;}}else if
+(!list->fileList)list->fileList=newConfig;else{if(newConfig==NULL)return
+RESULT_FAIL;newConfig->next=list->fileList->next;list->fileList->next=newConfig;
+}return RESULT_SUCCESS;}static bool isCfgConfiged(char*configFile){T_NV_NODE*
+list=NULL;T_NV_CONFIG*config=NULL;for(list=nv_list;list;list=list->next){for(
+config=list->fileList;config;config=config->next){if(!strcmp(config->configFile,
+configFile))return true;}}return false;}static bool isNvConfiged(char*nvFile){
+T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(!strcmp(list->
+nvFile,nvFile))return true;}return false;}static uint getSum(const char*s,int
+len){uint sum=(0x1d4a+1848-0x2482);char*data=(char*)s;while(len-- >
+(0x939+7536-0x26a9)){sum+=(*data++);}return sum;}static int saveNvFs(char*nvName
+,char*nvFile){int i=(0x8ad+7758-0x26fb);int sum=(0xb0d+6120-0x22f5);int bufSize=
+(0xd5+7480-0x1e0d);int itemSize=(0x3a5+878-0x713);int ret=(0x14e0+4574-0x26be);
+int fp=(0x371+7724-0x219d);char*buf=NULL;T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL
+;for(list=nv_list;list;list=list->next){if(strcmp(list->nvFile,nvName))continue;
+fp=open(nvFile,O_SYNC|O_RDWR|O_CREAT|O_TRUNC,(0xea3+1522-0x12f5));if(fp==-
+(0x20b+9077-0x257f)){printf(
"\x6f\x70\x65\x6e\x20\x25\x73\x20\x66\x61\x69\x6c\x2c\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
,nvFile,errno);return RESULT_FILE_OPEN_FAIL;}buf=(char*)malloc(NV_BLOCK_SIZE);if
-(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0x3c2+5458-0x1914);i<
+(!buf){close(fp);return RESULT_MALLOC_FAIL;}for(i=(0xbcd+3580-0x19c9);i<
NV_HASH_LEN;i++){for(item=list->nvTable[i];item;item=item->next){if(strcmp(
nvFile,NV_FS_SHOW)&&!item->saveFlag)continue;itemSize=strlen(item->key)+strlen(
-item->value)+(0x1a95+1451-0x203e);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp
-,buf,bufSize)<(0x100c+2506-0x19d6)){printf(
+item->value)+(0x1985+1354-0x1ecd);if(bufSize+itemSize>NV_BLOCK_SIZE){if(write(fp
+,buf,bufSize)<(0x77a+5645-0x1d87)){printf(
"\x65\x72\x72\x6f\x72\x20\x25\x73\x20\x25\x64\x3a\x20\x77\x72\x69\x74\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
,__FILE__,__LINE__,errno);close(fp);free(buf);return RESULT_FILE_WRITE_FAIL;}sum
-+=getSum(buf,bufSize);bufSize=(0xeb0+2591-0x18cf);}sprintf(buf+bufSize,
++=getSum(buf,bufSize);bufSize=(0x105d+5503-0x25dc);}sprintf(buf+bufSize,
"\x25\x73\x3d\x25\x73",item->key,item->value);bufSize+=itemSize;}}if(bufSize!=
-(0x1e77+809-0x21a0)){if(write(fp,buf,bufSize)<(0xfc7+1731-0x168a)){printf(
+(0x690+6537-0x2019)){if(write(fp,buf,bufSize)<(0x3a1+3191-0x1018)){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x77\x72\x69\x74\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
,errno);close(fp);free(buf);return RESULT_FILE_WRITE_FAIL;}sum+=getSum(buf,
-bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x82f+452-0x9f3)){
-printf(
+bufSize);}sum+=NV_FILE_FLAG;if(write(fp,&sum,NV_CHECK_SIZE)<(0x2f6+7424-0x1ff6))
+{printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x20\x77\x72\x69\x74\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64" "\n"
,errno);close(fp);free(buf);return RESULT_FILE_WRITE_FAIL;}ret=fsync(fp);free(
-buf);close(fp);if(ret<(0xf7a+1288-0x1482)){printf(
+buf);close(fp);if(ret<(0xc80+2216-0x1528)){printf(
"\x53\x79\x6e\x63\x20\x46\x61\x69\x6c\x65\x64\x3a\x25\x73\x2c\x20\x66\x69\x6c\x65\x20\x70\x61\x74\x68\x3a\x25\x73"
,strerror(errno),nvFile);return ret;}return RESULT_SUCCESS;}return
RESULT_NO_FILE;}static int nvget(char*file,char*key,char*value){int index=
-(0xb29+4408-0x1c61);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;
+(0x352+8306-0x23c4);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;
list;list=list->next){if(strcmp(list->nvFile,file))continue;index=hash(key)%
NV_HASH_LEN;for(item=list->nvTable[index];item;item=item->next){if(strcmp(item->
-key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0xe37+2952-0x19be));
-value[NV_MAX_VAL_LEN-(0xac0+4480-0x1c3f)]='\0';return RESULT_SUCCESS;}}return
+key,key))continue;strncpy(value,item->value,NV_MAX_VAL_LEN-(0xc33+382-0xdb0));
+value[NV_MAX_VAL_LEN-(0xb2+565-0x2e6)]='\0';return RESULT_SUCCESS;}}return
RESULT_NO_ITEM;}static int nvset(char*file,const char*key,const char*value,int
-saveFlag){int index=(0x17cb+641-0x1a4c);int ret=(0x131c+320-0x145c);int
-key_buf_len=(0x1afa+2437-0x247f);int value_buf_len=(0x162d+2323-0x1f40);
-T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;T_NV_ITEM*newItem=NULL;if(NULL==key||
-NULL==value)return RESULT_FAIL;key_buf_len=strlen(key)+(0xe3+879-0x451);
-value_buf_len=strlen(value)+(0xa48+4827-0x1d22);for(list=nv_list;list;list=list
-->next){if(strcmp(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(
-item=list->nvTable[index];item;item=item->next){if(strcmp(item->key,key))
-continue;if(saveFlag)item->saveFlag=saveFlag;if(!strcmp(item->value,value))
-return RESULT_SUCCESS;free(item->value);item->value=(char*)malloc(value_buf_len)
-;if(!item->value)return RESULT_MALLOC_FAIL;strncpy(item->value,value,
-value_buf_len-(0x114f+4319-0x222d));item->value[value_buf_len-
-(0x6d9+5401-0x1bf1)]='\0';return RESULT_SUCCESS;}newItem=(T_NV_ITEM*)malloc(
-sizeof(T_NV_ITEM));if(!newItem)return RESULT_MALLOC_FAIL;newItem->key=(char*)
-malloc(key_buf_len);if(!newItem->key){free(newItem);return RESULT_MALLOC_FAIL;}
-newItem->value=(char*)malloc(value_buf_len);if(!newItem->value){free(newItem->
-key);free(newItem);return RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,
-key_buf_len-(0x418+7161-0x2010));newItem->key[key_buf_len-(0x1218+5049-0x25d0)]=
-'\0';strncpy(newItem->value,value,value_buf_len-(0xa36+512-0xc35));newItem->
-value[value_buf_len-(0x711+2882-0x1252)]='\0';newItem->next=NULL;newItem->
-saveFlag=saveFlag;newItem->update_flag=(0x1320+3434-0x208a);if(!list->nvTable[
-index])list->nvTable[index]=newItem;else{newItem->next=list->nvTable[index]->
-next;list->nvTable[index]->next=newItem;}return RESULT_SUCCESS;}ret=
-addConfigFile(file,NULL);if(ret==RESULT_SUCCESS)return nvset(file,key,value,
-saveFlag);else return ret;}static int nvunset(char*file,char*key){int index=
-(0x2f2+6797-0x1d7f);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;T_NV_ITEM*prev=NULL;
-for(list=nv_list;list;list=list->next){if(strcmp(list->nvFile,file))continue;
-index=hash(key)%NV_HASH_LEN;for(item=list->nvTable[index];item;prev=item,item=
-item->next){if(strcmp(item->key,key))continue;if(!prev)list->nvTable[index]=item
-->next;else prev->next=item->next;free(item->key);free(item->value);free(item);
-return RESULT_SUCCESS;}}return RESULT_NO_ITEM;}static int nvreset(char*file){int
- ret=(0x120a+3246-0x1eb8);T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->
-next){if(strcmp(list->nvFile,file))continue;ret=nvclear(file);if(ret!=
-RESULT_SUCCESS)return ret;if(loadFactroyParam(list)!=RESULT_SUCCESS)return
-RESULT_FAIL;return nvcommit(file);}return RESULT_NO_FILE;}static int nvclear(
-char*file){int i=(0x15e8+2409-0x1f51);T_NV_NODE*list=NULL;T_NV_ITEM*cur=NULL;
-T_NV_ITEM*item=NULL;for(list=nv_list;list;list=list->next){if(strcmp(list->
-nvFile,file))continue;for(i=(0xebc+2335-0x17db);i<NV_HASH_LEN;i++){for(item=list
-->nvTable[i];item;){cur=item;item=item->next;free(cur->key);free(cur->value);
-free(cur);}list->nvTable[i]=NULL;}return RESULT_SUCCESS;}return RESULT_NO_FILE;}
-static int nvcommit(char*file){int ret=(0xca8+173-0xd55);char nvMainFile[
-NV_PATH_LEN]={(0x705+1086-0xb43)};char nvBackupFile[NV_PATH_LEN]={
-(0x1256+3203-0x1ed9)};sprintf(nvMainFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,
-file);sprintf(nvBackupFile,"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,file);ret=
-saveNvFs(file,nvMainFile);if(ret!=RESULT_SUCCESS)return ret;return restoreNvFs(
-nvBackupFile,nvMainFile);}
+saveFlag){int index=(0x1c7f+1589-0x22b4);int ret=(0x1a7+5591-0x177e);int
+key_buf_len=(0x179d+2165-0x2012);int value_buf_len=(0x435+4824-0x170d);T_NV_NODE
+*list=NULL;T_NV_ITEM*item=NULL;T_NV_ITEM*newItem=NULL;if(NULL==key||NULL==value)
+return RESULT_FAIL;key_buf_len=strlen(key)+(0x167d+3527-0x2443);value_buf_len=
+strlen(value)+(0x25d+3937-0x11bd);for(list=nv_list;list;list=list->next){if(
+strcmp(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(item=list->
+nvTable[index];item;item=item->next){if(strcmp(item->key,key))continue;if(
+saveFlag)item->saveFlag=saveFlag;if(!strcmp(item->value,value))return
+RESULT_SUCCESS;free(item->value);item->value=(char*)malloc(value_buf_len);if(!
+item->value)return RESULT_MALLOC_FAIL;strncpy(item->value,value,value_buf_len-
+(0xdf+3010-0xca0));item->value[value_buf_len-(0x14c0+1618-0x1b11)]='\0';return
+RESULT_SUCCESS;}newItem=(T_NV_ITEM*)malloc(sizeof(T_NV_ITEM));if(!newItem)return
+ RESULT_MALLOC_FAIL;newItem->key=(char*)malloc(key_buf_len);if(!newItem->key){
+free(newItem);return RESULT_MALLOC_FAIL;}newItem->value=(char*)malloc(
+value_buf_len);if(!newItem->value){free(newItem->key);free(newItem);return
+RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-(0x258b+13-0x2597));
+newItem->key[key_buf_len-(0x3ab+5388-0x18b6)]='\0';strncpy(newItem->value,value,
+value_buf_len-(0x130+917-0x4c4));newItem->value[value_buf_len-
+(0xe9c+2115-0x16de)]='\0';newItem->next=NULL;newItem->saveFlag=saveFlag;newItem
+->update_flag=(0x2530+259-0x2633);if(!list->nvTable[index])list->nvTable[index]=
+newItem;else{newItem->next=list->nvTable[index]->next;list->nvTable[index]->next
+=newItem;}return RESULT_SUCCESS;}ret=addConfigFile(file,NULL);if(ret==
+RESULT_SUCCESS)return nvset(file,key,value,saveFlag);else return ret;}static int
+ nvunset(char*file,char*key){int index=(0xe95+1128-0x12fd);T_NV_NODE*list=NULL;
+T_NV_ITEM*item=NULL;T_NV_ITEM*prev=NULL;for(list=nv_list;list;list=list->next){
+if(strcmp(list->nvFile,file))continue;index=hash(key)%NV_HASH_LEN;for(item=list
+->nvTable[index];item;prev=item,item=item->next){if(strcmp(item->key,key))
+continue;if(!prev)list->nvTable[index]=item->next;else prev->next=item->next;
+free(item->key);free(item->value);free(item);return RESULT_SUCCESS;}}return
+RESULT_NO_ITEM;}static int nvreset(char*file){int ret=(0x2db+5059-0x169e);
+T_NV_NODE*list=NULL;for(list=nv_list;list;list=list->next){if(strcmp(list->
+nvFile,file))continue;ret=nvclear(file);if(ret!=RESULT_SUCCESS)return ret;if(
+loadFactroyParam(list)!=RESULT_SUCCESS)return RESULT_FAIL;return nvcommit(file);
+}return RESULT_NO_FILE;}static int nvclear(char*file){int i=(0x33c+2603-0xd67);
+T_NV_NODE*list=NULL;T_NV_ITEM*cur=NULL;T_NV_ITEM*item=NULL;for(list=nv_list;list
+;list=list->next){if(strcmp(list->nvFile,file))continue;for(i=
+(0xdef+2131-0x1642);i<NV_HASH_LEN;i++){for(item=list->nvTable[i];item;){cur=item
+;item=item->next;free(cur->key);free(cur->value);free(cur);}list->nvTable[i]=
+NULL;}return RESULT_SUCCESS;}return RESULT_NO_FILE;}static int nvcommit(char*
+file){int ret=(0x585+2926-0x10f3);char nvMainFile[NV_PATH_LEN]={
+(0x827+4455-0x198e)};char nvBackupFile[NV_PATH_LEN]={(0xd3d+693-0xff2)};sprintf(
+nvMainFile,"\x25\x73\x2f\x25\x73",NV_FS_MAIN_PATH,file);sprintf(nvBackupFile,
+"\x25\x73\x2f\x25\x73",NV_FS_BACKUP_PATH,file);ret=saveNvFs(file,nvMainFile);if(
+ret!=RESULT_SUCCESS)return ret;return restoreNvFs(nvBackupFile,nvMainFile);}
#ifdef __cplusplus
}
#endif
diff --git a/ap/app/zte_comm/nvserver/nvserver_rpc.c b/ap/app/zte_comm/nvserver/nvserver_rpc.c
index 1ac51e6..f165cdc 100755
--- a/ap/app/zte_comm/nvserver/nvserver_rpc.c
+++ b/ap/app/zte_comm/nvserver/nvserver_rpc.c
@@ -77,24 +77,32 @@
* ·µ »Ø Öµ: 0±íʾ³É¹¦
* ÆäËü˵Ã÷: void
*******************************************************************************/
-static void analyMsg(T_NV_MSG_INFO *msgrecv, T_NV_MSG_RESULT *msgsnd)
+static void analyMsg(T_NV_MSG_INFO *msgrecv, T_NV_MSG_RESULT *msgsnd, T_sc_rpc_header *rpc_data, T_sc_rpc_header *rpc_data2)
{
- T_sc_rpc_header rpc_data = {0};
+ unsigned int timeout = 10;
+ int try_cnt = 0;
- rpc_data.msg_type = RPC_MSG_TYPE_REQUEST;
- rpc_data.func_id = RPC_FUNC_ID_NV;
- rpc_data.data_len = sizeof(T_NV_MSG_INFO);
- memcpy(rpc_data.data, msgrecv, sizeof(T_NV_MSG_INFO));
+ memset(rpc_data, 0, sizeof(T_sc_rpc_header));
+ memset(rpc_data2, 0, sizeof(T_sc_rpc_header));
- sc_rpc_send(g_rpc_fd, &rpc_data, 0);
+ rpc_data->msg_type = RPC_MSG_TYPE_REQUEST;
+ rpc_data->func_id = RPC_FUNC_ID_NV;
+ rpc_data->data_len = sizeof(T_NV_MSG_INFO);
+ memcpy(rpc_data->data, msgrecv, sizeof(T_NV_MSG_INFO));
- while (0 != sc_rpc_recv(g_rpc_fd, &rpc_data, 0)) // µÈ´ýCAPºË´´½¨Í¨µÀ
+ do
{
- sleep(1);
- continue;
- }
+ if (try_cnt > 0)
+ {
+ sc_rpc_clear(g_rpc_fd);
+ }
+ sc_rpc_send(g_rpc_fd, rpc_data, 0);
+ try_cnt++;
+ //sleep(1);
+ //continue;
+ } while (0 != sc_rpc_recv(g_rpc_fd, rpc_data2, timeout)); // µÈ´ýCAPºË´´½¨Í¨µÀ
- memcpy(msgsnd, rpc_data.data, sizeof(T_NV_MSG_RESULT));
+ memcpy(msgsnd, rpc_data2->data, sizeof(T_NV_MSG_RESULT));
}
/*******************************************************************************
@@ -115,6 +123,8 @@
T_NV_MSG_INFO rcvBuf;
T_NV_MSG_RESULT sndBuf;
struct msqid_ds msgInfo;
+ T_sc_rpc_header *rpc_data;
+ T_sc_rpc_header *rpc_data2;
prctl(PR_SET_NAME, "nvserver", 0, 0, 0);
@@ -138,6 +148,20 @@
}
}
+ rpc_data = malloc(sizeof(T_sc_rpc_header));
+ if (rpc_data == NULL)
+ {
+ perror("[error]nvrpc malloc error\n");
+ return -2;
+ }
+ rpc_data2 = malloc(sizeof(T_sc_rpc_header));
+ if (rpc_data2 == NULL)
+ {
+ perror("[error]nvrpc malloc2 error\n");
+ free(rpc_data);
+ return -3;
+ }
+
// ÏûÏ¢½»»¥
while (1)
{
@@ -149,7 +173,7 @@
continue;
}
- analyMsg(&rcvBuf, &sndBuf);
+ analyMsg(&rcvBuf, &sndBuf, rpc_data, rpc_data2);
if (-1 == msgsnd(msgId, &sndBuf, sizeof(T_NV_MSG_RESULT) - sizeof(long), 0))
{
@@ -158,6 +182,8 @@
}
}
+ free(rpc_data);
+ free(rpc_data2);
return (0);
}
diff --git a/ap/app/zte_comm/nvserver/nvupdate.c b/ap/app/zte_comm/nvserver/nvupdate.c
index b7e2041..1311b5f 100755
--- a/ap/app/zte_comm/nvserver/nvupdate.c
+++ b/ap/app/zte_comm/nvserver/nvupdate.c
@@ -23,81 +23,82 @@
extern T_NV_NODE*nv_list;
#ifdef FOTA_AB
int get_update_status(void){int ret=dual_AB_get_fota_status_for_nv();if(ret==
-(0xb96+3288-0x186d))return(0x1184+1640-0x17ea);else return(0xf4b+4962-0x22ad);}
+(0x1384+2398-0x1ce1))return(0x1f54+1972-0x2706);else return(0x12db+3847-0x21e2);
+}
#else
-int get_update_status(void){int update_status;FILE*fd=(0x764+3978-0x16ee);int
-ret;char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
-(0xd92+851-0x10e5)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
+int get_update_status(void){int update_status;FILE*fd=(0x5f+2264-0x937);int ret;
+char*filename=NULL;if(access(FOTA_UPDATE_STATUS_FILE_OLD,R_OK)==
+(0x145b+1369-0x19b4)){filename=FOTA_UPDATE_STATUS_FILE_OLD;}else{filename=
FOTA_UPDATE_STATUS_FILE;}printf(
"get_update_status, read_update_status from %s\n",filename);fd=fopen(filename,
"\x72\x62\x2b");if(fd==NULL){printf(
"\x5b\x6e\x76\x73\x65\x72\x76\x65\x72\x5d\x75\x70\x64\x61\x74\x65\x5f\x73\x74\x61\x74\x75\x73\x20\x6f\x70\x65\x6e\x20\x20\x65\x72\x72\x6f\x72\x3a\x25\x73" "\n"
,strerror(errno));goto error0;}ret=fscanf(fd,"\x25\x64",(int*)&update_status);if
-(ret<(0x1170+3583-0x1f6f)){printf(
+(ret<(0x689+3651-0x14cc)){printf(
"\x67\x65\x74\x20\x69\x6e\x66\x6f\x20\x66\x72\x6f\x6d\x20\x66\x69\x6c\x65\x20\x65\x72\x72\x6f\x72\x3a\x25\x73" "\n"
,strerror(errno));fclose(fd);goto error0;}printf(
"\x75\x70\x64\x61\x74\x65\x5f\x73\x74\x61\x74\x75\x73\x3d\x25\x64" "\n",
-update_status);fclose(fd);return update_status;error0:return-
-(0x11b4+2670-0x1c21);}
+update_status);fclose(fd);return update_status;error0:return-(0x8f0+3167-0x154e)
+;}
#endif
int nvupdate(char*nv_file,char*config_file,const char*key,const char*value,int
-saveFlag){int index=(0xef3+3673-0x1d4c);int key_buf_len=(0x5d5+7730-0x2407);int
-value_buf_len=(0xe7b+382-0xff9);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
+saveFlag){int index=(0xeb+3008-0xcab);int key_buf_len=(0x779+3965-0x16f6);int
+value_buf_len=(0x96d+6057-0x2116);T_NV_NODE*list=NULL;T_NV_ITEM*item=NULL;
T_NV_ITEM*newItem=NULL;if(NULL==key||NULL==value)return RESULT_FAIL;printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6e\x76\x75\x70\x64\x61\x74\x65\x20\x6e\x76\x5f\x66\x69\x6c\x65\x3a\x25\x73\x20\x6b\x65\x79\x3a\x25\x73\x20\x76\x61\x6c\x75\x65\x3a\x25\x73" "\n"
-,nv_file,key,value);key_buf_len=strlen(key)+(0x5af+3320-0x12a6);value_buf_len=
-strlen(value)+(0xe8b+891-0x1205);for(list=nv_list;list;list=list->next){if(
+,nv_file,key,value);key_buf_len=strlen(key)+(0xd92+6511-0x2700);value_buf_len=
+strlen(value)+(0x1a6c+1049-0x1e84);for(list=nv_list;list;list=list->next){if(
strcmp(list->nvFile,nv_file))continue;index=hash(key)%NV_HASH_LEN;for(item=list
->nvTable[index];item;item=item->next){if(strcmp(item->key,key))continue;if(
saveFlag)item->saveFlag=saveFlag;if(!strcmp(item->value,value)){item->
-update_flag=(0xb2+1752-0x789);printf(
+update_flag=(0x362+838-0x6a7);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6e\x76\x75\x70\x64\x61\x74\x65\x20\x73\x61\x6d\x65\x73\x6b\x69\x70\x3a\x69\x74\x65\x6d\x2d\x3e\x6b\x65\x79\x3a\x25\x73\x20\x69\x74\x65\x6d\x2d\x3e\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x63\x6f\x6e\x66\x69\x67\x5f\x66\x69\x6c\x65\x3a\x25\x73" "\n"
,item->key,item->value,value,config_file);return RESULT_SUCCESS;}if(strstr(
-config_file,"\x75\x73\x65\x72")){if((0xa39+6476-0x2384)==item->update_flag){
+config_file,"\x75\x73\x65\x72")){if((0x1adf+887-0x1e55)==item->update_flag){
printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6e\x76\x75\x70\x64\x61\x74\x65\x20\x73\x65\x63\x6f\x6e\x64\x20\x63\x68\x61\x6e\x67\x65\x3a\x69\x74\x65\x6d\x2d\x3e\x6b\x65\x79\x3a\x25\x73\x20\x69\x74\x65\x6d\x2d\x3e\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x63\x6f\x6e\x66\x69\x67\x5f\x66\x69\x6c\x65\x3a\x25\x73" "\n"
,item->key,item->value,value,config_file);}else{item->update_flag=
-(0xca9+4172-0x1cf4);printf(
+(0x1280+1768-0x1967);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6e\x76\x75\x70\x64\x61\x74\x65\x20\x75\x73\x65\x72\x73\x6b\x69\x70\x3a\x69\x74\x65\x6d\x2d\x3e\x6b\x65\x79\x3a\x25\x73\x20\x69\x74\x65\x6d\x2d\x3e\x76\x61\x6c\x75\x65\x31\x3a\x25\x73\x20\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x63\x6f\x6e\x66\x69\x67\x5f\x66\x69\x6c\x65\x3a\x25\x73" "\n"
,item->key,item->value,value,config_file);return RESULT_SUCCESS;}}printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x6b\x65\x79\x3d\x25\x73\x20\x63\x68\x61\x6e\x67\x65\x20\x76\x61\x6c\x75\x65\x3a\x25\x73\x20\x74\x6f\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
,item->key,item->value,value);free(item->value);item->value=(char*)malloc(
value_buf_len);if(!item->value)return RESULT_MALLOC_FAIL;strncpy(item->value,
-value,value_buf_len-(0xca2+2563-0x16a4));item->value[value_buf_len-
-(0x15e6+3203-0x2268)]='\0';item->update_flag=(0x1d1c+1516-0x2307);return
+value,value_buf_len-(0x50b+821-0x83f));item->value[value_buf_len-
+(0x15dd+3361-0x22fd)]='\0';item->update_flag=(0x465+7676-0x2260);return
RESULT_SUCCESS;}newItem=(T_NV_ITEM*)malloc(sizeof(T_NV_ITEM));if(!newItem){
printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x52\x45\x53\x55\x4c\x54\x5f\x4d\x41\x4c\x4c\x4f\x43\x5f\x46\x41\x49\x4c\x31\x20" "\n"
);return RESULT_MALLOC_FAIL;}newItem->key=(char*)malloc(strlen(key)+
-(0x689+6508-0x1ff4));if(!newItem->key){free(newItem);printf(
+(0x10c+8803-0x236e));if(!newItem->key){free(newItem);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x52\x45\x53\x55\x4c\x54\x5f\x4d\x41\x4c\x4c\x4f\x43\x5f\x46\x41\x49\x4c\x32" "\n"
);return RESULT_MALLOC_FAIL;}newItem->value=(char*)malloc(value_buf_len);if(!
newItem->value){free(newItem->key);free(newItem);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x52\x45\x53\x55\x4c\x54\x5f\x4d\x41\x4c\x4c\x4f\x43\x5f\x46\x41\x49\x4c\x33\x20" "\n"
);return RESULT_MALLOC_FAIL;}strncpy(newItem->key,key,key_buf_len-
-(0xc3+5582-0x1690));newItem->key[key_buf_len-(0x13a7+3162-0x2000)]='\0';strncpy(
-newItem->value,value,value_buf_len-(0x5e0+7088-0x218f));newItem->value[
-value_buf_len-(0x4f5+1876-0xc48)]='\0';newItem->next=NULL;newItem->saveFlag=
-saveFlag;newItem->update_flag=(0x332+6840-0x1de9);printf(
+(0xebf+1478-0x1484));newItem->key[key_buf_len-(0x1eb7+225-0x1f97)]='\0';strncpy(
+newItem->value,value,value_buf_len-(0x9ca+1274-0xec3));newItem->value[
+value_buf_len-(0x13d+4777-0x13e5)]='\0';newItem->next=NULL;newItem->saveFlag=
+saveFlag;newItem->update_flag=(0x1a25+2722-0x24c6);printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x61\x64\x64\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
,newItem->key,newItem->value);if(!list->nvTable[index])list->nvTable[index]=
newItem;else{newItem->next=list->nvTable[index]->next;list->nvTable[index]->next
=newItem;}return RESULT_SUCCESS;}return RESULT_FAIL;}int reloadFactroyParam(
T_NV_NODE*list){char*val=NULL;FILE*fp=NULL;T_NV_CONFIG*config=NULL;char buf[
-NV_MAX_ITEM_LEN]={(0x1d6b+785-0x207c)};printf(
+NV_MAX_ITEM_LEN]={(0xc30+6083-0x23f3)};printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x72\x65\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x6e\x76\x46\x69\x6c\x65\x3a\x25\x73" "\n"
,list->nvFile);for(config=list->fileList;config;config=config->next){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x72\x65\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65\x20\x73\x74\x61\x72\x74\x3a\x25\x73\x21" "\n"
,config->configFile);fp=fopen(config->configFile,"\x72\x6f");if(!fp){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x6f\x70\x65\x6e\x20\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x61\x69\x6c\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x21" "\n"
,config->configFile,errno);return RESULT_FILE_OPEN_FAIL;}while(fgets(buf,
-NV_MAX_ITEM_LEN,fp)){if(buf[(0x439+7208-0x2061)]=='\n'||buf[(0x10bf+2386-0x1a11)
-]==((char)(0x156d+1747-0x1c1d)))continue;val=strchr(buf,
-((char)(0x1172+2678-0x1bab)));if(!val){printf(
+NV_MAX_ITEM_LEN,fp)){if(buf[(0x8a1+6770-0x2313)]=='\n'||buf[(0x3ca+5804-0x1a76)]
+==((char)(0xd60+736-0x101d)))continue;val=strchr(buf,
+((char)(0x1979+1893-0x20a1)));if(!val){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x3a\x25\x73\x20\x66\x69\x6c\x65\x20\x66\x6f\x72\x6d\x61\x74\x20\x65\x72\x72\x6f\x72\x3a\x73\x74\x72\x69\x6e\x67\x20\x3d\x20\x25\x73" "\n"
-,config->configFile,buf);continue;}buf[strlen(buf)-(0xfff+1902-0x176c)]='\0';*
-val++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x1970+1137-0x1de0)
-);}printf(
+,config->configFile,buf);continue;}buf[strlen(buf)-(0x8ca+1543-0xed0)]='\0';*val
+++='\0';nvupdate(list->nvFile,config->configFile,buf,val,(0x9d4+653-0xc60));}
+printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x72\x65\x6c\x6f\x61\x64\x46\x61\x63\x74\x72\x6f\x79\x50\x61\x72\x61\x6d\x20\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65\x20\x65\x6e\x64\x3a\x25\x73\x21" "\n"
,config->configFile);fclose(fp);}return RESULT_SUCCESS;}void dump_list(T_NV_ITEM
*list){if(list==NULL){printf(
@@ -105,11 +106,11 @@
list->next;while(p!=NULL){printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x75\x6d\x70\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x2c\x20\x70\x3d\x30\x78\x25\x78" "\n"
,p->key,p->value,((unsigned int)p));p=p->next;}}int delete_not_needed(T_NV_NODE*
-list){int index=(0xa86+1817-0x119f);T_NV_ITEM*item=NULL;T_NV_ITEM head={
-(0x104d+1119-0x14ac)};T_NV_ITEM*prev=&head;printf(
+list){int index=(0x1051+2140-0x18ad);T_NV_ITEM*item=NULL;T_NV_ITEM head={
+(0x16f9+1283-0x1bfc)};T_NV_ITEM*prev=&head;printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x65\x6c\x65\x74\x65\x5f\x6e\x6f\x74\x5f\x6e\x65\x65\x64\x65\x64\x20\x65\x6e\x74\x65\x72\x20\x2a\x2a\x2a" "\n"
-);for(index=(0x3ea+5464-0x1942);index<NV_HASH_LEN;index++){head.next=list->
-nvTable[index];prev=&head;for(item=prev->next;item;){if((0x849+6882-0x232a)==
+);for(index=(0xc70+2727-0x1717);index<NV_HASH_LEN;index++){head.next=list->
+nvTable[index];prev=&head;for(item=prev->next;item;){if((0xda8+5426-0x22d9)==
item->update_flag){prev=item;item=item->next;}else{printf(
"\x6e\x76\x73\x65\x72\x76\x65\x72\x20\x64\x65\x6c\x65\x74\x65\x20\x6b\x65\x79\x3d\x25\x73\x2c\x20\x76\x61\x6c\x75\x65\x3d\x25\x73\x20" "\n"
,item->key,item->value);prev->next=item->next;free(item->key);free(item->value);
diff --git a/ap/app/zte_comm/nvserver/sc_rpc.c b/ap/app/zte_comm/nvserver/sc_rpc.c
index eddf7b5..c741601 100755
--- a/ap/app/zte_comm/nvserver/sc_rpc.c
+++ b/ap/app/zte_comm/nvserver/sc_rpc.c
@@ -144,8 +144,43 @@
return 0;
}
-int sc_rpc_recv(int fd, T_sc_rpc_header *data, unsigned int flag)
+int sc_rpc_recv(int fd, T_sc_rpc_header *data, unsigned int timeout)
{
+#if 1
+ fd_set readfds;
+ ssize_t len;
+ int ret;
+ struct timeval timeout_t = {timeout, 0};
+ int errNo = 0;
+
+ FD_ZERO(&readfds);
+ FD_SET(fd, &readfds);
+
+ //ret = select(fd + 1, &readfds, NULL, NULL, &timeout_t);
+ do {
+ ret = select(fd + 1, &readfds, NULL, NULL, &timeout_t);
+ } while (ret < 0 && errno == EINTR);
+
+ if (ret == 0)
+ {
+ printf("[error] nvrpc select timeout!\n");
+ return -1;
+ }
+ else if(ret < 0)
+ {
+ printf("[error] nvrpc ret:%d\n", ret);
+ return -2;
+ }
+
+ len = full_read(fd, data, sizeof(T_sc_rpc_header));
+ if (len != sizeof(T_sc_rpc_header))
+ {
+ printf("[nvrpc] read error, len=%d != %d!\n", len, (int)sizeof(T_sc_rpc_header));
+ return -3;
+ }
+
+ return 0;
+#else
ssize_t ret;
ret = full_read(fd, data, sizeof(T_sc_rpc_header));
@@ -156,6 +191,7 @@
}
return 0;
+#endif
}
int sc_rpc_close(int fd)
diff --git a/ap/app/zte_comm/nvserver/sc_rpc.h b/ap/app/zte_comm/nvserver/sc_rpc.h
index 904991e..58dc960 100755
--- a/ap/app/zte_comm/nvserver/sc_rpc.h
+++ b/ap/app/zte_comm/nvserver/sc_rpc.h
@@ -39,7 +39,7 @@
int sc_rpc_send(int fd, T_sc_rpc_header *data, unsigned int flag);
-int sc_rpc_recv(int fd, T_sc_rpc_header *data, unsigned int flag);
+int sc_rpc_recv(int fd, T_sc_rpc_header *data, unsigned int timeout);
int sc_rpc_close(int fd);
diff --git a/ap/app/zte_comm/phonebook/src/pb_db.c b/ap/app/zte_comm/phonebook/src/pb_db.c
index b0f86de..aa6d36f 100755
--- a/ap/app/zte_comm/phonebook/src/pb_db.c
+++ b/ap/app/zte_comm/phonebook/src/pb_db.c
@@ -1,35 +1,35 @@
#include "pb_com.h"
T_zPb_DbResult atPb_CreatDb(){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0xe0+8119-0x2097)};UINT32 count=(0x374+406-0x50a);result=
-atPb_ExecDbSql(ZPB_CREATE_PBM_TABLE,NULL,NULL);if(ZPB_DB_OK!=result){slog(
+ZPB_MAX_BYTES_DB]={(0x1269+2064-0x1a79)};UINT32 count=(0x24d+5100-0x1639);result
+=atPb_ExecDbSql(ZPB_CREATE_PBM_TABLE,NULL,NULL);if(ZPB_DB_OK!=result){slog(
PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
,result);return result;}result=atPb_ExecDbSql(
ZPB_CREATE_PBM_SIM_CAPABILITY_TABLE,NULL,NULL);if(ZPB_DB_OK!=result){slog(
PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x5f\x73\x69\x6d\x5f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x5f\x73\x69\x6d\x5f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
,result);return result;}result=atPb_ExecDbSql(
ZPB_CREATE_PBM_DEVICE_CAPABILITY_TABLE,NULL,NULL);if(ZPB_DB_OK!=result){slog(
PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x5f\x64\x65\x76\x69\x63\x65\x5f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x5f\x64\x65\x76\x69\x63\x65\x5f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
,result);return result;}snprintf(sql,sizeof(sql),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);result=atPb_ExecDbSql(sql,NULL,NULL);if(
ZPB_DB_OK!=result){slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x5f\x64\x65\x76\x69\x63\x65\x5f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
-,result);return result;}memset(sql,(0x74+7926-0x1f6a),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x17e4+467-0x19b6),
+"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x72\x65\x61\x74\x65\x20\x70\x62\x6d\x5f\x64\x65\x76\x69\x63\x65\x5f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
+,result);return result;}memset(sql,(0x1a9a+2148-0x22fe),sizeof(sql));snprintf(
+sql,sizeof(sql)-(0xbe1+6662-0x25e6),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73"
,ZPB_DB_SIM_CAPABILITY_TABLE);(VOID)atPb_ExecDbSql(sql,atPb_DbCountTableLineCb,&
-count);if((0x6e3+6912-0x21e3)<count){memset(sql,(0xd+15-0x1c),sizeof(sql));
-snprintf(sql,sizeof(sql)-(0x13e7+4568-0x25be),
+count);if((0x144+9195-0x252f)<count){memset(sql,(0xc4d+5225-0x20b6),sizeof(sql))
+;snprintf(sql,sizeof(sql)-(0x79a+4694-0x19ef),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x53\x69\x6d\x5f\x74\x79\x70\x65\x3e\x3d\x30"
,ZPB_DB_SIM_CAPABILITY_TABLE);result=atPb_ExecDbSql(sql,NULL,NULL);if(ZPB_DB_OK
!=result){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x65\x74\x53\x69\x6d\x43\x61\x70\x61\x63\x69\x74\x79\x54\x61\x62\x6c\x65\x3a\x66\x61\x69\x6c\x21" "\n"
);return result;}}return ZPB_DB_OK;}T_zPb_DbResult atPb_DropDb(){T_zPb_DbResult
-result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1576+1277-0x1a73)};result=
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xb7d+6309-0x2422)};result=
atPb_ExecDbSql(ZTE_DROP_PBM_SQL,NULL,NULL);if(ZPB_DB_OK!=result){slog(PB_PRINT,
SLOG_ERR,
"\x61\x74\x50\x62\x5f\x44\x72\x6f\x70\x44\x62\x3a\x64\x65\x6c\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
@@ -47,11 +47,11 @@
"\x61\x74\x50\x62\x5f\x44\x72\x6f\x70\x44\x62\x3a\x64\x65\x6c\x20\x70\x62\x6d\x5f\x64\x65\x76\x69\x63\x65\x5f\x63\x61\x70\x61\x62\x69\x6c\x69\x74\x79\x20\x74\x61\x62\x6c\x65\x20\x72\x65\x73\x75\x6c\x74\x20\x69\x73\x20\x25\x64" "\n"
,result);return result;}return ZPB_DB_OK;}T_zPb_DbResult atPb_DbOpen(sqlite3**
pDb){sqlite3*pTmpDb=NULL;if(NULL==pDb){slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x69\x6e\x76\x61\x6c\x69\x64\x65\x20\x69\x6e\x70\x75\x74\x73\x2e"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x69\x6e\x76\x61\x6c\x69\x64\x65\x20\x69\x6e\x70\x75\x74\x73\x2e"
);return ZPB_DB_ERROR_INVALIDPTR;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x73\x71\x6c\x69\x74\x65\x33\x5f\x6f\x70\x65\x6e\x20\x63\x61\x6c\x6c"
);
-#if (0x8d8+6041-0x2071)
+#if (0xa7+1802-0x7b1)
if(!fopen(ZPB_DB_PATH,"\x72")){file=fopen(ZPB_DB_PATH,"\x77");if(!file){printf(
"\x75\x6e\x61\x62\x6c\x65\x20\x74\x6f\x20\x6f\x70\x65\x6e\x20\x20\x66\x69\x6c\x65\x20\x65\x74\x63\x5f\x72\x77\x2f\x70\x62\x6d\x2e\x64\x62" "\n"
);}else{printf(
@@ -59,41 +59,41 @@
,file);fclose(file);}}
#endif
if(sqlite3_open(ZPB_DB_PATH,&pTmpDb)){slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x6f\x70\x65\x6e\x20\x64\x62\x2c\x73\x71\x6c\x69\x74\x65\x33\x5f\x65\x72\x72\x6d\x73\x67\x3a\x25\x73\x2e"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x6f\x70\x65\x6e\x20\x64\x62\x2c\x73\x71\x6c\x69\x74\x65\x33\x5f\x65\x72\x72\x6d\x73\x67\x3a\x25\x73\x2e"
,sqlite3_errmsg(pTmpDb));(VOID)sqlite3_close(pTmpDb);return
ZPB_DB_ERROR_NOTOPENDB;}*pDb=pTmpDb;return ZPB_DB_OK;}T_zPb_DbResult
atPb_DbClose(sqlite3*pDb){if(NULL==pDb){slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x69\x6e\x76\x61\x6c\x69\x64\x65\x20\x69\x6e\x70\x75\x74\x73\x2e"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x69\x6e\x76\x61\x6c\x69\x64\x65\x20\x69\x6e\x70\x75\x74\x73\x2e"
);return ZPB_DB_ERROR_INVALIDPTR;}if(sqlite3_close(pDb)){slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x63\x6c\x6f\x73\x65\x20\x64\x62"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x63\x6c\x6f\x73\x65\x20\x64\x62"
);return ZPB_DB_ERROR;}
#ifdef WEBS_SECURITY
-if(access(ZPB_TMP_PATH,F_OK)==(0x1496+4542-0x2654)){slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x74\x6d\x70\x20\x64\x62\x20\x73\x74\x61\x79"
-);if(remove(ZPB_TMP_PATH)!=(0xdda+496-0xfca)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZPB_TMP_PATH,F_OK)==(0x156a+3703-0x23e1)){slog(PB_PRINT,SLOG_ERR,
+"\x70\x62\x3a\x70\x62\x6d\x3a\x74\x6d\x70\x20\x64\x62\x20\x73\x74\x61\x79");if(
+remove(ZPB_TMP_PATH)!=(0x1077+4706-0x22d9)){slog(PB_PRINT,SLOG_ERR,
"\x72\x65\x6d\x6f\x76\x65\x20\x5a\x50\x42\x5f\x54\x4d\x50\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0xe5f+4020-0x1e13)){slog(PB_PRINT,
+);}}if(rename(ZPB_SEC_PATH,ZPB_TMP_PATH)!=(0x12ed+2542-0x1cdb)){slog(PB_PRINT,
SLOG_ERR,
"\x72\x65\x6e\x61\x6d\x65\x20\x5a\x50\x42\x5f\x53\x45\x43\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}{char rnum_buf[(0xf67+3787-0x1e1a)]={(0x63c+6853-0x2101)};char cmd[
-(0x861+1870-0xf2f)]={(0x9f7+5425-0x1f28)};sc_cfg_get(
+);}{char rnum_buf[(0x4f0+4858-0x17d2)]={(0x334+8814-0x25a2)};char cmd[
+(0x6b1+2297-0xf2a)]={(0xd59+1462-0x130f)};sc_cfg_get(
"\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(rnum_buf));snprintf(cmd,sizeof(
cmd),
"\x2f\x62\x69\x6e\x2f\x6f\x70\x65\x6e\x73\x73\x6c\x20\x65\x6e\x63\x20\x2d\x65\x20\x2d\x61\x65\x73\x32\x35\x36\x20\x2d\x73\x61\x6c\x74\x20\x2d\x69\x6e\x20\x25\x73\x20\x2d\x6f\x75\x74\x20\x25\x73\x20\x2d\x70\x61\x73\x73\x20\x70\x61\x73\x73\x3a\x25\x73"
,ZPB_DB_PATH,ZPB_SEC_PATH,rnum_buf);zxic_system(cmd);if(access(ZPB_SEC_PATH,F_OK
-)==(0x707+4066-0x16e9)){if(remove(ZPB_TMP_PATH)!=(0xb32+4268-0x1bde)){slog(
+)==(0xf8+8322-0x217a)){if(remove(ZPB_TMP_PATH)!=(0xd0b+1033-0x1114)){slog(
PB_PRINT,SLOG_ERR,
"\x72\x65\x6d\x6f\x76\x65\x20\x5a\x50\x42\x5f\x54\x4d\x50\x5f\x50\x41\x54\x48\x31\x20\x66\x61\x69\x6c"
);}}}
#endif
return ZPB_DB_OK;}static check_sql_cmd(const char*pSql){if(pSql!=NULL){if(strstr
-(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0xa8d+260-0xb91);}return
-(0x103+2529-0xae3);}return(0xcba+5180-0x20f6);}T_zPb_DbResult atPb_ExecDbSql(
+(pSql,"\x3b")||strstr(pSql,"\x2d\x2d")){return(0xb30+551-0xd57);}return
+(0x12+2186-0x89b);}return(0x1854+101-0x18b9);}T_zPb_DbResult atPb_ExecDbSql(
const char*pSql,sqlite3_callback callback,VOID*pFvarg){sqlite3*pDb=NULL;CHAR
-dbErrMsg[(0x1824+1831-0x1ecb)]={(0x743+5626-0x1d3d)};if(NULL==pSql){return
+dbErrMsg[(0x2c3+5000-0x15cb)]={(0x381+3350-0x1097)};if(NULL==pSql){return
ZPB_DB_ERROR_INVALIDPTR;}
#ifdef WEBS_SECURITY
-if(check_sql_cmd(pSql)==(0x1b21+2603-0x254c)){slog(PB_PRINT,SLOG_ERR,
+if(check_sql_cmd(pSql)==(0x434+807-0x75b)){slog(PB_PRINT,SLOG_ERR,
"\x21\x21\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x78\x73\x73\x20\x25\x73" "\n"
,pSql);return ZPB_DB_ERROR_INVALIDPTR;}
#endif
@@ -102,34 +102,34 @@
);return ZPB_DB_ERROR_NOTOPENDB;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x45\x78\x65\x63\x44\x62\x53\x71\x6c\x3a\x25\x73" "\n"
,pSql);if(sqlite3_exec(pDb,pSql,callback,pFvarg,NULL)){strncpy(dbErrMsg,
-sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x126f+1781-0x1963));slog(PB_PRINT,
+sqlite3_errmsg(pDb),sizeof(dbErrMsg)-(0x167c+3269-0x2340));slog(PB_PRINT,
SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65\x78\x65\x63\x20\x73\x71\x6c\x2c\x73\x71\x6c\x69\x74\x65\x33\x5f\x65\x72\x72\x6d\x73\x67\x3a\x25\x73\x2e"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65\x78\x65\x63\x20\x73\x71\x6c\x2c\x73\x71\x6c\x69\x74\x65\x33\x5f\x65\x72\x72\x6d\x73\x67\x3a\x25\x73\x2e"
,dbErrMsg);(VOID)sqlite3_close(pDb);return ZPB_DB_ERROR;}(VOID)atPb_DbClose(pDb)
;return ZPB_DB_OK;}SINT32 atPb_InitApIndexCb(VOID*fvarg,int line,char**zresult,
-char**lname){SINT32 index=(0x1d3d+2239-0x25fc);if((0x156b+3564-0x2356)>line){
-slog(PB_PRINT,SLOG_ERR,
+char**lname){SINT32 index=(0x98d+6714-0x23c7);if((0xcb+3831-0xfc1)>line){slog(
+PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x49\x6e\x69\x74\x41\x70\x49\x6e\x64\x65\x78\x43\x62\x3a\x72\x65\x63\x6f\x72\x64\x20\x6e\x6f\x20\x64\x61\x74\x61\x2e" "\n"
-);return-(0x1d8+250-0x2d1);}index=atoi(zresult[(0x32+1001-0x41b)]);if(index>
-ZPB_AP_MAX_RECORD){slog(PB_PRINT,SLOG_ERR,
+);return-(0x12b3+1416-0x183a);}index=atoi(zresult[(0x136c+514-0x156e)]);if(index
+>ZPB_AP_MAX_RECORD){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x49\x6e\x69\x74\x41\x70\x49\x6e\x64\x65\x78\x43\x62\x3a\x69\x6e\x64\x65\x78\x20\x6f\x76\x65\x72\x66\x6c\x6f\x77\x2e" "\n"
-);return-(0xc3b+3746-0x1adc);}slog(PB_PRINT,SLOG_DEBUG,
+);return-(0x12d6+2149-0x1b3a);}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x49\x6e\x69\x74\x41\x70\x49\x6e\x64\x65\x78\x43\x62\x3a\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3d\x25\x64" "\n"
-,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x24c9+195-0x258c);}
+,index);g_zPb_ApIndex[index]=PBM_SUCCESS;return(0x5f5+1143-0xa6c);}
T_zPb_DbResult atPb_InitApIndex(){CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x96d+6922-0x2477)};SINT32 i=(0x1b43+668-0x1dde);g_zPb_ApIndex[
-(0x1964+1119-0x1dc3)]=ZPB_AP_MAX_RECORD;for(i=(0x1f+3152-0xc6e);i<=g_zPb_ApIndex
-[(0x8b7+46-0x8e5)];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}snprintf(sql,
+(0x198+7417-0x1e91)};SINT32 i=(0x819+7440-0x2528);g_zPb_ApIndex[
+(0x116+1507-0x6f9)]=ZPB_AP_MAX_RECORD;for(i=(0x43+5399-0x1559);i<=g_zPb_ApIndex[
+(0x558+1098-0x9a2)];i++){g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}snprintf(sql,
sizeof(sql),
"\x73\x65\x6c\x65\x63\x74\x20\x50\x62\x6d\x5f\x69\x6e\x64\x65\x78\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP);return atPb_ExecDbSql(sql,atPb_InitApIndexCb,
-ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0x315+8546-0x2476)==
-access(path,(0x13a8+4638-0x25c6))){slog(PB_PRINT,SLOG_DEBUG,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x25\x73\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x2c\x73\x6f\x63\x72\x65\x61\x74\x65\x20\x69\x74\x2e" "\n"
-,ZPB_DB_DIR);if(-(0x15d2+3822-0x24bf)==mkdir(path,(0x2ed+2549-0xae3))){slog(
+ZUFI_NULL);}INT zte_pbm_check_and_creat_dir(char*path){if(-(0x167c+2657-0x20dc)
+==access(path,(0x20d6+1239-0x25ad))){slog(PB_PRINT,SLOG_DEBUG,
+"\x70\x62\x3a\x70\x62\x6d\x3a\x25\x73\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x2c\x73\x6f\x63\x72\x65\x61\x74\x65\x20\x69\x74\x2e" "\n"
+,ZPB_DB_DIR);if(-(0xfb8+3614-0x1dd5)==mkdir(path,(0x26b2+258-0x25b5))){slog(
PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x3a\x66\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x63\x72\x65\x61\x74\x65\x20\x64\x62\x20\x64\x69\x72\x2e" "\n"
-);return-(0x20fd+147-0x218f);}}return(0xbdb+6101-0x23b0);}UINT8
+);return-(0x11c2+3332-0x1ec5);}}return(0x75+3738-0xf0f);}UINT8
zte_pbm_check_web_pbm_dir(VOID){
#ifdef _MBB_OS_UCLINUX
(VOID)zte_pbm_check_and_creat_dir(
@@ -143,25 +143,25 @@
"\x2f\x65\x74\x63\x5f\x72\x77\x2f\x63\x6f\x6e\x66\x69\x67");
#endif
return ZUFI_SUCC;}T_zPb_DbResult atPb_DelSimRecFromPbTable(SINT32 index){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x23d+8428-0x2329)}
-;snprintf(sql,sizeof(sql),
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x18dc+1770-0x1fc6)
+};snprintf(sql,sizeof(sql),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x50\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM,index);result=atPb_ExecDbSql(sql,NULL,NULL);
if(ZPB_DB_OK==result){g_zPb_SimIndex[index]=PBM_ERROR_NOT_FOUND;}return result;}
T_zPb_DbResult atPb_LoadARecToPbmTable(T_zPb_WebContact*pbPara){T_zPb_DbResult
-result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0xf9+5796-0x179d)};if(NULL==
+result=ZPB_DB_ERROR;CHAR sql[ZPB_MAX_BYTES_DB]={(0xfe0+3102-0x1bfe)};if(NULL==
pbPara){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x4c\x6f\x61\x64\x41\x52\x65\x63\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql),"insert into %s (Pbm_index,Location,Number,Type,Name,Anr,Anr1,Email,Sne) \
values(\'%d\',\'%d\',\'%s\',\'%d\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\')",ZPB_DB_PBM_TABLE,pbPara->pbIndex,pbPara->pbLocation,pbPara->mobilNumber,pbPara
->pbType,pbPara->name,pbPara->homeNumber,pbPara->officeNumber,pbPara->email,
pbPara->sne);result=atPb_ExecDbSql(sql,NULL,NULL);if(ZPB_DB_OK==result){CHAR
-pbMax[(0x15c4+4165-0x25d7)]={(0x264+6426-0x1b7e)};sc_cfg_get(ZPB_NV_USIMINDEXMAX
-,pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x109c+2266-0x1975))&&(pbPara->
-pbIndex<=atoi(pbMax))){g_zPb_SimIndex[pbPara->pbIndex]=PBM_SUCCESS;}(VOID)
-sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(
-ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
+pbMax[(0xc92+6383-0x254f)]={(0x120d+105-0x1276)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
+pbMax,sizeof(pbMax));if((pbPara->pbIndex>=(0x3e1+8853-0x2675))&&(pbPara->pbIndex
+<=atoi(pbMax))){g_zPb_SimIndex[pbPara->pbIndex]=PBM_SUCCESS;}(VOID)sc_cfg_set(
+ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+ZPB_NEW_ERROR);}slog(PB_PRINT,SLOG_DEBUG,
+"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);return result;}VOID atPb_SqlModifyOneRec(
T_zPb_WebContact*pbmPara,char*sql,int len){printf(
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x71\x6c\x4d\x6f\x64\x69\x66\x79\x4f\x6e\x65\x52\x65\x63\x20\x65\x6e\x74\x65\x72"
@@ -174,17 +174,17 @@
pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
->email,pbmPara->sne,pbmPara->group,pbmPara->pbId);}}T_zPb_DbResult
atPb_DbGetParamCb(VOID*fvarg,int line,char**zresult,char**lname){T_zPb_Header
-para={(0xf2b+1564-0x1547)};if((0x1634+4191-0x2692)>line){slog(PB_PRINT,SLOG_ERR,
+para={(0xd48+176-0xdf8)};if((0x703+5753-0x1d7b)>line){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x62\x47\x65\x74\x50\x61\x72\x61\x6d\x43\x62\x3a\x72\x65\x63\x6f\x72\x64\x20\x6e\x6f\x20\x64\x61\x74\x61\x2e"
-);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0x14e4+1274-0x19de)]);para.
-pbLocation=atoi(zresult[(0x107f+4684-0x22ca)]);slog(PB_PRINT,SLOG_DEBUG,
+);return ZPB_DB_ERROR;}para.pbIndex=atoi(zresult[(0x438+5020-0x17d4)]);para.
+pbLocation=atoi(zresult[(0x2112+1113-0x256a)]);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x62\x47\x65\x74\x50\x61\x72\x61\x6d\x43\x62\x3a\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,para.pbIndex,para.pbLocation);memcpy(fvarg,¶,sizeof(para));return ZPB_DB_OK
;}T_zPb_DbResult atPb_GetIndexLocationById(T_zPb_Header*pbPara){CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x17d5+1691-0x1e70)};snprintf(sql,sizeof(sql)-
-(0x7d6+451-0x998),
+ZPB_MAX_BYTES_DB]={(0x1822+2103-0x2059)};snprintf(sql,sizeof(sql)-
+(0x1039+3121-0x1c69),
"\x73\x65\x6c\x65\x63\x74\x20\x50\x62\x6d\x5f\x69\x6e\x64\x65\x78\x2c\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x69\x64\x3d\x25\x64"
-,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0xf31+3978-0x1ebb),sizeof(
+,ZPB_DB_PBM_TABLE,pbPara->pbId);memset(pbPara,(0x289+6984-0x1dd1),sizeof(
T_zPb_Header));return atPb_ExecDbSql(sql,atPb_DbGetParamCb,pbPara);}VOID
atPb_SqlNewOneRec(T_zPb_WebContact*pbmPara,CHAR*sql,int len){if(
ZPB_LOCATION_USIM==pbmPara->pbLocation){snprintf(sql,len,"insert into %s (Pbm_index,Location,Number,Type,Name,Anr,Anr1,Email,Sne)\
@@ -196,8 +196,8 @@
pbmPara->pbType,pbmPara->name,pbmPara->homeNumber,pbmPara->officeNumber,pbmPara
->email,pbmPara->sne,pbmPara->group);}}T_zPb_DbResult
atPb_WriteContactToPbmTable(T_zPb_WebContact*pPbRecord,BOOL pbNewFlag){
-T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1046+2153-0x18af)
-};if(NULL==pPbRecord){slog(PB_PRINT,SLOG_ERR,
+T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0xdd4+3412-0x1b28)}
+;if(NULL==pPbRecord){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
);return ZPB_DB_ERROR_INVALIDPTR;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x70\x75\x74\x20\x69\x6e\x64\x65\x78\x20\x69\x73\x20\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64" "\n"
@@ -207,116 +207,117 @@
ZPB_LOCATION_USIM==pPbRecord->pbLocation){g_zPb_SimIndex[(pPbRecord->pbIndex)]=
PBM_SUCCESS;}else if(ZPB_LOCATION_AP==pPbRecord->pbLocation){g_zPb_ApIndex[(
pPbRecord->pbIndex)]=PBM_SUCCESS;}}return result;}SINT32 atPb_DbCountTableLineCb
-(VOID*fvarg,int line,char**zresult,char**lname){if((0x7fc+2357-0x1130)>line){
-slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x72\x65\x63\x6f\x72\x64\x20\x6e\x6f\x20\x64\x61\x74\x61\x2e"
-);return-(0xead+3602-0x1cbe);}*(int*)fvarg=atoi(zresult[(0x696+5098-0x1a80)]);
-return(0x4b9+2918-0x101f);}T_zPb_DbResult atPb_SetSimCapacityTable(
+(VOID*fvarg,int line,char**zresult,char**lname){if((0x34a+331-0x494)>line){slog(
+PB_PRINT,SLOG_ERR,
+"\x70\x62\x3a\x70\x62\x6d\x3a\x72\x65\x63\x6f\x72\x64\x20\x6e\x6f\x20\x64\x61\x74\x61\x2e"
+);return-(0x11a6+5130-0x25af);}*(int*)fvarg=atoi(zresult[(0x187+7729-0x1fb8)]);
+return(0x18e0+42-0x190a);}T_zPb_DbResult atPb_SetSimCapacityTable(
T_zPb_UsimCapacity pbPara){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[
-ZPB_MAX_BYTES_DB]={(0x6bd+6071-0x1e74)};UINT32 count=(0x1617+3844-0x251b);
-snprintf(sql,sizeof(sql)-(0x1412+4557-0x25de),
+ZPB_MAX_BYTES_DB]={(0x2398+68-0x23dc)};UINT32 count=(0x1199+4572-0x2375);
+snprintf(sql,sizeof(sql)-(0x1a88+3188-0x26fb),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73"
,ZPB_DB_SIM_CAPABILITY_TABLE);(VOID)atPb_ExecDbSql(sql,atPb_DbCountTableLineCb,&
-count);if((0x942+5079-0x1d19)<count){memset(sql,(0x887+1067-0xcb2),sizeof(sql));
-snprintf(sql,sizeof(sql)-(0x180+8258-0x21c1),
+count);if((0x845+2461-0x11e2)<count){memset(sql,(0x56+583-0x29d),sizeof(sql));
+snprintf(sql,sizeof(sql)-(0x7ab+347-0x905),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x53\x69\x6d\x5f\x74\x79\x70\x65\x3e\x3d\x30"
,ZPB_DB_SIM_CAPABILITY_TABLE);result=atPb_ExecDbSql(sql,NULL,NULL);if(ZPB_DB_OK
!=result){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x65\x74\x53\x69\x6d\x43\x61\x70\x61\x63\x69\x74\x79\x54\x61\x62\x6c\x65\x3a\x66\x61\x69\x6c\x21" "\n"
-);return result;}}memset(sql,(0x7b9+5661-0x1dd6),sizeof(sql));snprintf(sql,
-sizeof(sql)-(0x14cf+2965-0x2063),"insert into %s (Sim_type,Max_record_number,Used_record_number,Max_number_len,Max_name_len,Max_anr_len,Max_anr1_len, \
+);return result;}}memset(sql,(0x95f+1871-0x10ae),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x859+1735-0xf1f),"insert into %s (Sim_type,Max_record_number,Used_record_number,Max_number_len,Max_name_len,Max_anr_len,Max_anr1_len, \
Max_email_len,Max_sne_len) values(\'%d\',\'%d\',\'%d\',\'%d\',\'%d\',\'%d\',\'%d\',\'%d\',\'%d\')",ZPB_DB_SIM_CAPABILITY_TABLE,pbPara.simType,pbPara.maxRecordNum,pbPara.
usedRecordNum,pbPara.maxNumberLen,pbPara.maxNameLen,pbPara.maxAnrLen,pbPara.
maxAnr1Len,pbPara.maxEmailLen,pbPara.maxSneLen);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x65\x74\x53\x69\x6d\x43\x61\x70\x61\x63\x69\x74\x79\x54\x61\x62\x6c\x65\x3a\x6f\x6b\x21" "\n"
);return atPb_ExecDbSql(sql,NULL,NULL);}T_zPb_DbResult atPb_SetApCapacityTable()
-{T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x91c+6094-0x20ea)
-};SINT32 count=(0x8e8+2530-0x12ca);T_zPb_ApCapacity pbPara={(0xcd7+4440-0x1e2f)}
-;snprintf(sql,sizeof(sql)-(0xb0f+6043-0x22a9),
+{T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x1415+2057-0x1c1e)};SINT32 count=(0x18f6+2800-0x23e6);T_zPb_ApCapacity pbPara=
+{(0x1595+4212-0x2609)};snprintf(sql,sizeof(sql)-(0xfeb+5135-0x23f9),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73"
,ZPB_DB_DEVICE_CAPABILITY_TABLE);(VOID)atPb_ExecDbSql(sql,
-atPb_DbCountTableLineCb,&count);if((0x18aa+2963-0x243d)<count){memset(sql,
-(0xefd+1081-0x1336),sizeof(sql));snprintf(sql,sizeof(sql)-(0x377+2697-0xdff),
+atPb_DbCountTableLineCb,&count);if((0x17c+7400-0x1e64)<count){memset(sql,
+(0x7f+8817-0x22f0),sizeof(sql));snprintf(sql,sizeof(sql)-(0x105d+5204-0x24b0),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73",
ZPB_DB_DEVICE_CAPABILITY_TABLE);result=atPb_ExecDbSql(sql,NULL,NULL);if(
ZPB_DB_OK!=result){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x65\x74\x41\x70\x43\x61\x70\x61\x63\x69\x74\x79\x54\x61\x62\x6c\x65\x3a\x66\x61\x69\x6c\x21" "\n"
-);return result;}}memset(sql,(0x798+1968-0xf48),sizeof(sql));snprintf(sql,sizeof
-(sql)-(0x1478+2064-0x1c87),
+);return result;}}memset(sql,(0xdb3+2164-0x1627),sizeof(sql));snprintf(sql,
+sizeof(sql)-(0x1dfa+1226-0x22c3),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP);result=atPb_ExecDbSql(sql,
atPb_DbCountTableLineCb,&count);if(ZPB_DB_OK==result){pbPara.usedRecordNum=count
;pbPara.maxRecordNum=ZPB_AP_MAX_RECORD;}slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x6d\x61\x78\x5f\x72\x65\x63\x5f\x6e\x75\x6d\x3d\x25\x64\x2c\x75\x73\x65\x64\x3d\x25\x64"
-,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0xcc2+22-0xcd8),sizeof(
-sql));snprintf(sql,sizeof(sql)-(0xd4+5924-0x17f7),
+,pbPara.maxRecordNum,pbPara.usedRecordNum);memset(sql,(0x18e6+1949-0x2083),
+sizeof(sql));snprintf(sql,sizeof(sql)-(0xa92+4452-0x1bf5),
"\x69\x6e\x73\x65\x72\x74\x20\x69\x6e\x74\x6f\x20\x25\x73\x20\x28\x4d\x61\x78\x5f\x72\x65\x63\x6f\x72\x64\x5f\x6e\x75\x6d\x62\x65\x72\x2c\x55\x73\x65\x64\x5f\x72\x65\x63\x6f\x72\x64\x5f\x6e\x75\x6d\x62\x65\x72\x29\x20\x76\x61\x6c\x75\x65\x73\x28" "\'" "\x25\x64" "\'" "\x2c" "\'" "\x25\x64" "\'" "\x29"
,ZPB_DB_DEVICE_CAPABILITY_TABLE,pbPara.maxRecordNum,pbPara.usedRecordNum);return
atPb_ExecDbSql(sql,NULL,NULL);}T_zPb_DbResult atPb_DbGetIndexByGroupCb(VOID*
fvarg,int line,char**zresult,char**lname){T_zPb_ApIndex*pbIndex=NULL;int i=
-(0xe39+6130-0x262b);if((0x21ad+959-0x256b)>line){return ZPB_DB_ERROR;}pbIndex=(
+(0x16b6+2017-0x1e97);if((0x146+4296-0x120d)>line){return ZPB_DB_ERROR;}pbIndex=(
T_zPb_ApIndex*)fvarg;i=pbIndex->count;slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x62\x47\x65\x74\x49\x6e\x64\x65\x78\x42\x79\x47\x72\x6f\x75\x70\x43\x62\x20\x65\x6e\x74\x65\x72\x2c\x69\x3d\x25\x64" "\n"
-,i);pbIndex->apIndex[i+(0x597+5394-0x1aa8)]=atoi(zresult[(0x218c+537-0x23a5)]);
+,i);pbIndex->apIndex[i+(0x19ed+2439-0x2373)]=atoi(zresult[(0x7c8+3305-0x14b1)]);
slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x67\x65\x74\x5f\x69\x6e\x64\x65\x78\x5f\x62\x79\x5f\x67\x72\x6f\x75\x70\x5f\x63\x62\x3a\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3d\x25\x64"
-,pbIndex->apIndex[i+(0x1296+1992-0x1a5d)]);pbIndex->count=i+(0x1455+2060-0x1c60)
+,pbIndex->apIndex[i+(0x185a+3420-0x25b5)]);pbIndex->count=i+(0x17aa+1527-0x1da0)
;slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x67\x65\x74\x5f\x69\x6e\x64\x65\x78\x5f\x62\x79\x5f\x67\x72\x6f\x75\x70\x5f\x63\x62\x3a\x70\x62\x6d\x20\x63\x6f\x75\x6e\x74\x20\x69\x73\x20\x25\x64"
,pbIndex->count);return ZPB_DB_OK;}T_zPb_DbResult atPb_DelRecFromPbmTableByGroup
(T_zPb_ApIndex*index){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]
-={(0x1705+514-0x1907)};SINT32 countByGroup=(0x55c+1581-0xb89);CHAR pbGroup[
-ZPB_PARAM_SIZE20]={(0x17d6+637-0x1a53)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
-pbGroup));snprintf(sql,sizeof(sql)-(0x1400+806-0x1725),
+={(0x4fb+326-0x641)};SINT32 countByGroup=(0x1748+2440-0x20d0);CHAR pbGroup[
+ZPB_PARAM_SIZE20]={(0x414+8778-0x265e)};sc_cfg_get(ZPB_NV_GROUP,pbGroup,sizeof(
+pbGroup));snprintf(sql,sizeof(sql)-(0x1210+2872-0x1d47),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x28\x50\x62\x6d\x5f\x67\x72\x6f\x75\x70\x3d" "\"" "\x25\x73" "\"" "\x29"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP,pbGroup);(VOID)atPb_ExecDbSql(sql,
-atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0x344+584-0x58c),sizeof(sql))
-;snprintf(sql,sizeof(sql)-(0x1cd1+616-0x1f38),
+atPb_DbCountTableLineCb,&countByGroup);memset(sql,(0xfdf+1078-0x1415),sizeof(sql
+));snprintf(sql,sizeof(sql)-(0x540+380-0x6bb),
"\x73\x65\x6c\x65\x63\x74\x20\x50\x62\x6d\x5f\x69\x6e\x64\x65\x78\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x28\x50\x62\x6d\x5f\x67\x72\x6f\x75\x70\x3d" "\"" "\x25\x73" "\"" "\x29"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP,pbGroup);result=atPb_ExecDbSql(sql,
atPb_DbGetIndexByGroupCb,index);if(countByGroup==index->count){memset(sql,
-(0x17f3+1469-0x1db0),sizeof(sql));snprintf(sql,sizeof(sql)-(0x907+2395-0x1261),
+(0xc08+6189-0x2435),sizeof(sql));snprintf(sql,sizeof(sql)-(0xa70+648-0xcf7),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x20\x61\x6e\x64\x20\x28\x50\x62\x6d\x5f\x67\x72\x6f\x75\x70\x3d" "\"" "\x25\x73" "\"" "\x29"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_AP,pbGroup);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL
,NULL)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}slog(PB_PRINT,
SLOG_DEBUG,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x65\x78\x65\x63\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x72\x65\x73\x75\x6c\x74\x20\x25\x64" "\n"
,ZPB_DB_PBM_TABLE,result);}else{return ZPB_DB_ERROR;}(VOID)sc_cfg_set(
ZPB_NV_GROUP,"");return result;}VOID atPb_GetLocationIndexForDel(T_zPb_DelInfo*
-recData,SINT32 delTime){T_zPb_Header pbHeader={(0x1267+4123-0x2282)};if(NULL==
+recData,SINT32 delTime){T_zPb_Header pbHeader={(0x1812+2053-0x2017)};if(NULL==
recData){slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x47\x65\x74\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x49\x6e\x64\x65\x78\x46\x6f\x72\x44\x65\x6c\x2d\x2d\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74" "\n"
);return;}pbHeader.pbId=recData->delId[delTime];if(ZPB_DB_OK!=
atPb_GetIndexLocationById(&pbHeader)){slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x66\x69\x6e\x64\x20\x69\x6e\x64\x65\x78\x20\x61\x6e\x64\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x66\x61\x69\x6c\x65\x64"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x66\x69\x6e\x64\x20\x69\x6e\x64\x65\x78\x20\x61\x6e\x64\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x66\x61\x69\x6c\x65\x64"
);return;}recData->delIndex[delTime]=pbHeader.pbIndex;recData->delLocation=
pbHeader.pbLocation;slog(PB_PRINT,SLOG_DEBUG,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x74\x69\x6d\x65\x3d\x25\x64"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x74\x69\x6d\x65\x3d\x25\x64"
,recData->delIndex[delTime],recData->delLocation,delTime);}T_zPb_DbResult
atPb_DelARecFromPbmTable(T_zPb_DelInfo*pbPara,SINT32 delTime){T_zPb_DbResult
-result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x3d3+5759-0x1a52)};if(NULL==
+result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x1c1+7606-0x1f77)};if(NULL==
pbPara){slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74"
);return ZPB_DB_ERROR_INVALIDPTR;}atPb_GetLocationIndexForDel(pbPara,delTime);
slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x65\x6c\x41\x52\x65\x63\x46\x72\x6f\x6d\x50\x62\x6d\x54\x61\x62\x6c\x65\x20\x65\x6e\x74\x65\x72\x2c\x64\x65\x6c\x54\x69\x6d\x65\x3d\x25\x64\x2c\x69\x64\x3d\x25\x64" "\n"
-,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0x2251+182-0x2306),
+,delTime,pbPara->delId[delTime]);snprintf(sql,sizeof(sql)-(0x8a7+4250-0x1940),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x69\x64\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,pbPara->delId[delTime]);result=atPb_ExecDbSql(sql,NULL,NULL);
if(ZPB_DB_OK==result){if(ZPB_LOCATION_AP==pbPara->delLocation){g_zPb_ApIndex[(
pbPara->delIndex[delTime])]=PBM_ERROR_NOT_FOUND;}else if(ZPB_LOCATION_USIM==
pbPara->delLocation){g_zPb_SimIndex[(pbPara->delIndex[delTime])]=
PBM_ERROR_NOT_FOUND;}}return result;}VOID atPb_ClearSimPbmIndexArray(VOID){
-SINT32 i=(0x1fd9+1222-0x249e);for(i=(0x536+8588-0x26c1);(i<=g_zPb_SimIndex[
-(0x801+2692-0x1285)])&&(i<(ZPB_SIM_MAX_RECORD+(0x1f2b+1707-0x25d5)));i++){
+SINT32 i=(0xf75+4562-0x2146);for(i=(0x3f5+6315-0x1c9f);(i<=g_zPb_SimIndex[
+(0x6f1+6158-0x1eff)])&&(i<(ZPB_SIM_MAX_RECORD+(0x495+6172-0x1cb0)));i++){
g_zPb_SimIndex[i]=PBM_ERROR_NOT_FOUND;}}VOID atPb_ClearApPbmIndexArray(VOID){
-SINT32 i=(0x551+422-0x6f6);for(i=(0x158c+2220-0x1e37);(i<=g_zPb_ApIndex[
-(0x9ed+789-0xd02)])&&(i<(ZPB_AP_MAX_RECORD+(0x3d3+20-0x3e6)));i++){g_zPb_ApIndex
-[i]=PBM_ERROR_NOT_FOUND;}}T_zPb_DbResult atPb_DelAllRecsFromPbmTable(
-T_zPb_DelInfo*pbPara){T_zPb_DbResult result=ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]
-={(0xbc7+1781-0x12bc)};if(NULL==pbPara){slog(PB_PRINT,SLOG_ERR,
+SINT32 i=(0x42d+3849-0x1335);for(i=(0x899+148-0x92c);(i<=g_zPb_ApIndex[
+(0xd02+2983-0x18a9)])&&(i<(ZPB_AP_MAX_RECORD+(0x133+2506-0xafc)));i++){
+g_zPb_ApIndex[i]=PBM_ERROR_NOT_FOUND;}}T_zPb_DbResult
+atPb_DelAllRecsFromPbmTable(T_zPb_DelInfo*pbPara){T_zPb_DbResult result=
+ZPB_DB_OK;CHAR sql[ZPB_MAX_BYTES_DB]={(0x3e6+7705-0x21ff)};if(NULL==pbPara){slog
+(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x44\x65\x6c\x41\x6c\x6c\x52\x65\x63\x73\x46\x72\x6f\x6d\x50\x62\x6d\x54\x61\x62\x6c\x65\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74" "\n"
-);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0x525+1832-0xc4c),
+);return ZPB_DB_ERROR_INVALIDPTR;}snprintf(sql,sizeof(sql)-(0x18e9+3216-0x2578),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,pbPara->delLocation);result=atPb_ExecDbSql(sql,NULL,NULL);slog
(PB_PRINT,SLOG_DEBUG,
diff --git a/ap/app/zte_comm/phonebook/src/pb_main.c b/ap/app/zte_comm/phonebook/src/pb_main.c
index 260e800..b970a36 100755
--- a/ap/app/zte_comm/phonebook/src/pb_main.c
+++ b/ap/app/zte_comm/phonebook/src/pb_main.c
@@ -7,9 +7,9 @@
VOID(*func_ptr)(UINT8*pDatabuf);BOOL need_block;}T_zPbHandleTable;VOID
atWeb_AddOneContact(UINT8*pDatabuf);VOID atWeb_DelOneContact(UINT8*pDatabuf);
VOID atWeb_DelMultiContact(UINT8*pDatabuf);VOID atWeb_DelAllContact(UINT8*
-pDatabuf);T_zPb_optRsp g_PbOptRsp={(0xdd1+5619-0x23c4)};sem_t g_Pb_sem_id={
-(0x1861+2570-0x226b)};int g_zPb_MsqId=-(0xcc0+706-0xf81);int g_zPb_LocalMsqId=-
-(0x12ab+719-0x1579);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
+pDatabuf);T_zPb_optRsp g_PbOptRsp={(0xa3b+4621-0x1c48)};sem_t g_Pb_sem_id={
+(0x1a53+2034-0x2245)};int g_zPb_MsqId=-(0x527+4220-0x15a2);int g_zPb_LocalMsqId=
+-(0x2b4+163-0x356);VOID atWeb_AddOneContact(UINT8*pDatabuf){T_zPb_WebContact*
webPbContact=NULL;if(pDatabuf==NULL){printf(
"\x5b\x70\x62\x5d\x2c\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x43\x6f\x6e\x74\x61\x63\x74\x20\x70\x61\x72\x61\x20\x69\x73\x20\x6e\x75\x6c\x6c" "\n"
);return;}webPbContact=(T_zPb_WebContact*)pDatabuf;atWeb_AddOnePb(webPbContact,
@@ -35,21 +35,23 @@
zPb_RecvZpbicInd(UINT8*pDatabuf){T_zAt_ZpbicRes*ptPara=ZUFI_NULL;if(pDatabuf==
NULL){return;}ptPara=(T_zAt_ZpbicRes*)(pDatabuf);printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x5a\x70\x62\x69\x63\x49\x6e\x64\x20\x70\x61\x72\x61\x2c\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2c\x20\x74\x79\x70\x65\x3a\x25\x64" "\n"
-,ptPara->result,ptPara->opertype);if(((0x111+5410-0x1632)==ptPara->result)&&(
-(0x1edd+1709-0x2589)==ptPara->opertype)){CHAR needPb[(0xbd7+2743-0x165c)]={
-(0x504+2481-0xeb5)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
-(0x348+2457-0xce1)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x3b7+3479-0x114e),NULL,(0xc73+5563-0x222e)
-);}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*ptPara=ZUFI_NULL;if(
-pDatabuf==NULL){return;}ptPara=(T_zAt_ZuslotRes*)(pDatabuf);printf(
+,ptPara->result,ptPara->opertype);if(((0xc9f+5171-0x20d1)==ptPara->result)&&(
+(0x55b+930-0x8fc)==ptPara->opertype)){CHAR needPb[(0x135f+300-0x1459)]={
+(0x12f9+5110-0x26ef)};sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if(
+(0xdaf+4637-0x1fcc)!=strcmp(needPb,"\x6e\x6f")){ipc_send_message(MODULE_ID_PB,
+MODULE_ID_AT_CTL,MSG_CMD_PBINIT_REQ,(0x139d+2339-0x1cc0),NULL,
+(0x16b6+3354-0x23d0));}}}VOID zPb_RecvZuslotInd(UINT8*pDatabuf){T_zAt_ZuslotRes*
+ptPara=ZUFI_NULL;if(pDatabuf==NULL){return;}ptPara=(T_zAt_ZuslotRes*)(pDatabuf);
+printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x5a\x70\x62\x69\x63\x49\x6e\x64\x20\x70\x61\x72\x61\x2c\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2c\x20\x74\x79\x70\x65\x3a\x25\x64" "\n"
-,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0xf9f+3446-0x1d15)){
-CHAR needPb[(0x167d+3982-0x25d9)]={(0xd18+1757-0x13f5)};sc_cfg_get(
-NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x94+999-0x47b)!=strcmp(needPb,
-"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID zPb_RecvPbInitRst
-(UINT8*pDatabuf){int pbReadRet=-(0x19+8931-0x22fb);memcpy(&g_PbOptRsp,pDatabuf,
-sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-(0xc3b+3018-0x1804)){atPb_IintPbErr
-(NULL);return;}pbReadRet=atPb_SendScpbrSet_repeat(g_Pb_sem_id);printf(
+,ptPara->slot,ptPara->slot_state);if(ptPara->slot_state==(0x176d+1630-0x1dcb)){
+CHAR needPb[(0xc6d+3116-0x1867)]={(0xcf8+6016-0x2478)};sc_cfg_get(
+NV_NEED_SUPPORT_PB,needPb,sizeof(needPb));if((0x1952+2729-0x23fb)!=strcmp(needPb
+,"\x6e\x6f")){atPb_CfgPbNvInit();atPb_DelAllRecsSimDb();}}}VOID
+zPb_RecvPbInitRst(UINT8*pDatabuf){int pbReadRet=-(0xc62+2602-0x168b);memcpy(&
+g_PbOptRsp,pDatabuf,sizeof(T_zPb_optRsp));if(g_PbOptRsp.result==-
+(0x30d+89-0x365)){atPb_IintPbErr(NULL);return;}pbReadRet=
+atPb_SendScpbrSet_repeat(g_Pb_sem_id);printf(
"\x7a\x50\x62\x5f\x52\x65\x63\x76\x50\x62\x49\x6e\x69\x74\x52\x73\x74\x20\x72\x65\x73\x75\x6c\x74\x3a\x25\x64" "\n"
,pbReadRet);sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);}void zPbLocalHandleWebMsg(
MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
@@ -64,18 +66,18 @@
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_WRITE_PB:case
MSG_CMD_DEL_A_PB:case MSG_CMD_DEL_MUTI_PB:case MSG_CMD_DEL_ALL_PB:
ipc_send_message(MODULE_ID_PB,MODULE_ID_PB_LOCAL,ptMsgBuf->usMsgCmd,ptMsgBuf->
-usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x2003+553-0x222c));break;
+usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,(0x762+7976-0x268a));break;
default:break;}}UINT8 zPbMsgCreat(VOID){g_zPb_MsqId=msgget(MODULE_ID_PB,
-IPC_CREAT|(0x1152+1694-0x1670));if(g_zPb_MsqId==-(0x6+6013-0x1782)){return
+IPC_CREAT|(0xbb2+2779-0x150d));if(g_zPb_MsqId==-(0x1ac7+2195-0x2359)){return
ZUFI_FAIL;}g_zPb_LocalMsqId=msgget(MODULE_ID_PB_LOCAL,IPC_CREAT|
-(0x887+2522-0x10e1));if(g_zPb_LocalMsqId==-(0x16bb+3787-0x2585)){return
-ZUFI_FAIL;}sem_init(&g_Pb_sem_id,(0x398+6773-0x1e0d),(0xc13+2878-0x1751));return
- ZUFI_SUCC;}void detect_modem_state(void){CHAR state[(0x1d08+2370-0x2618)]={
-(0xd85+1928-0x150d)};sc_cfg_get(
+(0xbbf+2763-0x150a));if(g_zPb_LocalMsqId==-(0x39d+3310-0x108a)){return ZUFI_FAIL
+;}sem_init(&g_Pb_sem_id,(0xb8c+2286-0x147a),(0x1158+3918-0x20a6));return
+ZUFI_SUCC;}void detect_modem_state(void){CHAR state[(0x1072+135-0x10c7)]={
+(0xb2a+4293-0x1bef)};sc_cfg_get(
"\x6d\x6f\x64\x65\x6d\x5f\x6d\x61\x69\x6e\x5f\x73\x74\x61\x74\x65",state,sizeof(
-state));if((0x951+3418-0x16ab)==strcmp(state,
+state));if((0x678+7526-0x23de)==strcmp(state,
"\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x75\x6e\x64\x65\x74\x65\x63\x74\x65\x64"
-)||(0x1c7b+482-0x1e5d)==strcmp(state,
+)||(0xec5+4606-0x20c3)==strcmp(state,
"\x6d\x6f\x64\x65\x6d\x5f\x73\x69\x6d\x5f\x64\x65\x73\x74\x72\x6f\x79")){
sc_cfg_set("\x70\x62\x6d\x5f\x69\x6e\x69\x74\x5f\x66\x6c\x61\x67","\x30");}}void
zPbLocalHandleAtctlMsg(MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
@@ -94,28 +96,28 @@
MSG_CMD_ZUSLOT_IND:zPb_RecvZuslotInd(ptMsgBuf->aucDataBuf);break;case
MSG_CMD_PBINIT_RSP:ipc_send_message(MODULE_ID_PB,MODULE_ID_PB_LOCAL,ptMsgBuf->
usMsgCmd,ptMsgBuf->usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,
-(0x16b9+3468-0x2445));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
-clearPb[(0x301+5123-0x16d2)]={(0xa8+2061-0x8b5)};sc_cfg_get(
+(0x1298+313-0x13d1));break;default:break;}}VOID zPbHandleResetToFactory(){CHAR
+clearPb[(0x2e5+3873-0x11d4)]={(0x18ac+2638-0x22fa)};sc_cfg_get(
NV_CLEAR_PB_WHEN_RESTORE,clearPb,sizeof(clearPb));printf(
"\x61\x74\x57\x65\x62\x5f\x52\x65\x73\x74\x6f\x72\x65\x46\x61\x63\x74\x6f\x72\x79\x53\x65\x74\x74\x69\x6e\x67\x20\x65\x6e\x74\x65\x72\x65\x64\x21\x20" "\n"
);printf(
"\x63\x6c\x65\x61\x72\x5f\x70\x62\x5f\x77\x68\x65\x6e\x5f\x72\x65\x73\x74\x6f\x72\x65\x3d\x25\x73\x20" "\n"
-,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0x2f0+2687-0xd6f)){atPb_DropDb();}
-ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
-(0x17d4+3238-0x247a),NULL,(0x732+167-0x7d9));}void zPbHandleMainCtrlMsg(MSG_BUF*
-ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
+,clearPb);if(strcmp(clearPb,"\x79\x65\x73")==(0xdc9+3111-0x19f0)){atPb_DropDb();
+}ipc_send_message(MODULE_ID_PB,MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,
+(0x146f+3884-0x239b),NULL,(0x2105+140-0x2191));}void zPbHandleMainCtrlMsg(
+MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
"\x50\x62\x20\x72\x65\x63\x76\x20\x6d\x61\x69\x6e\x20\x63\x74\x72\x6c\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_RESET_NOTIFY:
zPbHandleResetToFactory(ptMsgBuf->aucDataBuf);break;default:break;}}void
-pb_msg_thread_proc(void*arg){int iRet=(0x15a+8468-0x226e);MSG_BUF stMsg={
-(0x7a4+1462-0xd5a)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
+pb_msg_thread_proc(void*arg){int iRet=(0x11d0+3479-0x1f67);MSG_BUF stMsg={
+(0x5f4+1689-0xc8d)};int msgSize=sizeof(MSG_BUF)-sizeof(SINT32);int queueId=*((
int*)arg);prctl(PR_SET_NAME,"\x70\x62\x5f\x6c\x6f\x63\x61\x6c",
-(0x11aa+2183-0x1a31),(0xa86+6850-0x2548),(0x923+3129-0x155c));while(
-(0x594+7881-0x245c)){iRet=(0x547+7240-0x218f);memset(&stMsg,(0x50d+5508-0x1a91),
-sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x11f8+1258-0x16e2),
-(0x4cb+4415-0x160a));printf(
+(0x974+1531-0xf6f),(0xd5c+3594-0x1b66),(0x888+6522-0x2202));while(
+(0x66+2978-0xc07)){iRet=(0x9a0+5963-0x20eb);memset(&stMsg,(0xe6+8143-0x20b5),
+sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x19d7+1789-0x20d4),
+(0x911+3997-0x18ae));printf(
"\x70\x62\x5f\x6d\x73\x67\x5f\x74\x68\x72\x65\x61\x64\x5f\x70\x72\x6f\x63\x3a\x25\x78\x2c\x25\x78\x20\x4d\x4f\x44\x55\x4c\x45\x5f\x49\x44\x5f\x41\x54\x5f\x43\x54\x4c\x3d\x25\x78" "\n"
-,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x98b+1963-0x1136)){
+,stMsg.src_id,stMsg.usMsgCmd,MODULE_ID_AT_CTL);if(iRet>=(0x322+9048-0x267a)){
switch(stMsg.src_id){case MODULE_ID_WEB_CGI:{zPbHandleWebMsg(&stMsg);break;}case
MODULE_ID_AT_CTL:{zPbHandleAtctlMsg(&stMsg);break;}case MODULE_ID_PB:{
zPbLocalHandleWebMsg(&stMsg);zPbLocalHandleAtctlMsg(&stMsg);break;}case
@@ -123,29 +125,29 @@
printf(
"\x5b\x70\x62\x5d\x20\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x2c\x20\x65\x72\x72\x6d\x73\x67\x20\x3d\x20\x25\x73" "\n"
,errno,strerror(errno));}}}int phonebook_main(int argc,char*argv[]){pthread_t
-recv_thread_tid=(0xe12+1517-0x13ff);MSG_BUF msgBuf={(0x1b84+639-0x1e03)};CHAR
-needPb[(0x82a+7273-0x2461)]={(0x1777+3968-0x26f7)};prctl(PR_SET_NAME,
-"\x70\x62\x5f\x6d\x61\x69\x6e",(0x2ab+1095-0x6f2),(0xc06+3498-0x19b0),
-(0x13c+209-0x20d));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof(
-needPb));if((0x223+9369-0x26bc)!=strcmp(needPb,"\x6e\x6f")){
+recv_thread_tid=(0x16b7+2973-0x2254);MSG_BUF msgBuf={(0x1463+3871-0x2382)};CHAR
+needPb[(0x438+1752-0xade)]={(0x95b+4829-0x1c38)};prctl(PR_SET_NAME,
+"\x70\x62\x5f\x6d\x61\x69\x6e",(0xb9f+2765-0x166c),(0x519+5578-0x1ae3),
+(0x90a+4470-0x1a80));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_PB,needPb,sizeof
+(needPb));if((0xfcd+2432-0x194d)!=strcmp(needPb,"\x6e\x6f")){
#ifdef WEBS_SECURITY
-if(access(ZPB_DB_PATH,F_OK)!=(0x1679+2184-0x1f01)){if(access(ZPB_TMP_PATH,F_OK)
-==(0x8cc+422-0xa72)){if(remove(ZPB_SEC_PATH)!=(0x19b1+2318-0x22bf)){slog(
+if(access(ZPB_DB_PATH,F_OK)!=(0x1e79+1951-0x2618)){if(access(ZPB_TMP_PATH,F_OK)
+==(0x1460+4437-0x25b5)){if(remove(ZPB_SEC_PATH)!=(0xaf7+1735-0x11be)){slog(
PB_PRINT,SLOG_ERR,
"\x72\x65\x6d\x6f\x76\x65\x20\x5a\x50\x42\x5f\x53\x45\x43\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0x1f42+367-0x20b1)){slog(PB_PRINT,
+);}if(rename(ZPB_TMP_PATH,ZPB_SEC_PATH)!=(0xa81+2339-0x13a4)){slog(PB_PRINT,
SLOG_ERR,
"\x72\x65\x6e\x61\x6d\x65\x20\x5a\x50\x42\x5f\x54\x4d\x50\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}}if(access(ZPB_SEC_PATH,F_OK)==(0xdcf+5959-0x2516)){char rnum_buf[
-(0x32d+5928-0x1a3d)]={(0x176+1440-0x716)};char cmd[(0xe63+616-0x104b)]={
-(0x1cc8+71-0x1d0f)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+);}}if(access(ZPB_SEC_PATH,F_OK)==(0xb1f+3347-0x1832)){char rnum_buf[
+(0x2363+489-0x2534)]={(0xf73+5353-0x245c)};char cmd[(0x17c8+3190-0x23be)]={
+(0x175c+709-0x1a21)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
rnum_buf));snprintf(cmd,sizeof(cmd),
"\x2f\x62\x69\x6e\x2f\x6f\x70\x65\x6e\x73\x73\x6c\x20\x65\x6e\x63\x20\x2d\x64\x20\x2d\x61\x65\x73\x32\x35\x36\x20\x2d\x73\x61\x6c\x74\x20\x2d\x69\x6e\x20\x25\x73\x20\x2d\x6f\x75\x74\x20\x25\x73\x20\x2d\x70\x61\x73\x73\x20\x70\x61\x73\x73\x3a\x25\x73"
,ZPB_SEC_PATH,ZPB_DB_PATH,rnum_buf);zxic_system(cmd);}}
#endif
-zPbMsgCreat();atPb_Init();}else{return-(0x1fcf+419-0x2171);}printf(
+zPbMsgCreat();atPb_Init();}else{return-(0x433+4871-0x1739);}printf(
"\x50\x62\x20\x61\x70\x70\x20\x69\x6e\x69\x74\x20\x66\x69\x6e\x69\x73\x68\x65\x64\x2c\x20\x77\x69\x6c\x6c\x20\x74\x6f\x20\x72\x65\x63\x65\x69\x76\x65\x20\x6d\x73\x67\x2c\x20\x6d\x73\x67\x69\x64\x3a\x25\x64" "\n"
,g_zPb_MsqId);if(pthread_create(&recv_thread_tid,NULL,pb_msg_thread_proc,(void*)
-(&g_zPb_LocalMsqId))==-(0x1ee2+1650-0x2553)){assert((0x6dc+2582-0x10f2));}
-detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0xf94+4802-0x2256);
-}
+(&g_zPb_LocalMsqId))==-(0xa90+2823-0x1596)){assert((0x359+8030-0x22b7));}
+detect_modem_state();pb_msg_thread_proc(&g_zPb_MsqId);return(0x13b8+3333-0x20bd)
+;}
diff --git a/ap/app/zte_comm/phonebook/src/pb_proc.c b/ap/app/zte_comm/phonebook/src/pb_proc.c
index ea3afc1..7b2942b 100755
--- a/ap/app/zte_comm/phonebook/src/pb_proc.c
+++ b/ap/app/zte_comm/phonebook/src/pb_proc.c
@@ -3,82 +3,82 @@
#include <semaphore.h>
#include <limits.h>
#include "pb_com.h"
-#define ZPB_UCS2 (0x1feb+1491-0x25bd)
-#define ZPB_UCS2_PREFIX (0x940+7747-0x2703)
-#define ZPB_UCS2_PREFIX_LEN (0x111a+4809-0x23e1)
-#define ZPB_NON_GSM (0x341+2187-0xbac)
-#define ZPB_GSM_CHARACTER_SET_SIZE (0x1497+3312-0x2107)
-#define ZPB_INIT_LOAD_RECORD_NUM (0x510+2046-0xcdc)
+#define ZPB_UCS2 (0x1556+615-0x17bc)
+#define ZPB_UCS2_PREFIX (0x2196+769-0x2417)
+#define ZPB_UCS2_PREFIX_LEN (0x61+564-0x293)
+#define ZPB_NON_GSM (0x18a9+2569-0x2292)
+#define ZPB_GSM_CHARACTER_SET_SIZE (0x1b43+2252-0x238f)
+#define ZPB_INIT_LOAD_RECORD_NUM (0x257+5593-0x17fe)
VOID atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb);
BOOL atPb_CvtU82ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32
destLen);BOOL atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,
UINT32 destLen);extern VOID atPb_ClearSimPbmIndexArray(VOID);extern sem_t
g_Pb_sem_id;extern T_zPb_optRsp g_PbOptRsp;UINT32 g_zPb_DelIndex=
-(0x14c7+4457-0x2630);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0x781+850-0xad2)]
-={(0x2dc+323-0x41f)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+(0x153a+2063-0x1d48)
-]={(0x1c9+4182-0x121f)};T_zPb_DelStatusMultiOrAll g_zPb_DelStatusUsim={
-(0x840+7576-0x25d8)};const unsigned char G_ZPB_NEWUCS2TOGSM[
-ZPB_GSM_CHARACTER_SET_SIZE*(0xf+384-0x18d)]={ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM
+(0x1313+1262-0x1801);SINT32 g_zPb_SimIndex[ZPB_SIM_MAX_RECORD+(0xaf2+735-0xdd0)]
+={(0x1bc4+1773-0x22b1)};SINT32 g_zPb_ApIndex[ZPB_AP_MAX_RECORD+
+(0x1989+3040-0x2568)]={(0x1248+2023-0x1a2f)};T_zPb_DelStatusMultiOrAll
+g_zPb_DelStatusUsim={(0x13e6+2215-0x1c8d)};const unsigned char
+G_ZPB_NEWUCS2TOGSM[ZPB_GSM_CHARACTER_SET_SIZE*(0x1307+3411-0x2058)]={ZPB_NON_GSM
,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,(0xbe5+6074-0x2395),ZPB_NON_GSM,ZPB_NON_GSM,(0x861+1617-0xea5),
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x44a+7764-0x2294),ZPB_NON_GSM,ZPB_NON_GSM,
+(0x3e9+4446-0x153a),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-(0x95f+633-0xbb8),(0x13fa+326-0x151f),(0x4d6+7743-0x22f3),(0x42a+1423-0x996),
-(0xf96+1810-0x16a6),(0x10f0+2311-0x19d2),(0x990+5659-0x1f85),(0x1a56+829-0x1d6c)
-,(0x1c78+1864-0x2398),(0x531+7787-0x2373),(0x595+5540-0x1b0f),(0xa4a+653-0xcac),
-(0x23f+8463-0x2322),(0x311+5418-0x180e),(0x425+5589-0x19cc),(0x1828+344-0x1951),
-(0x2a9+334-0x3c7),(0xfd0+5180-0x23db),(0xf24+541-0x110f),(0x696+4992-0x19e3),
-(0xa9+9708-0x2661),(0x18fb+39-0x18ed),(0x3ed+7114-0x1f81),(0x5b1+3056-0x116a),
-(0x14d4+963-0x185f),(0xbd3+898-0xf1c),(0x1d5+8901-0x2460),(0xe88+5212-0x22a9),
-(0x3fb+3435-0x112a),(0x12cf+3723-0x211d),(0x748+1520-0xcfa),(0x1c8+7076-0x1d2d),
-(0xbb6+6712-0x25ee),(0x1852+3832-0x2709),(0x7a+4689-0x1289),(0x1fa+8539-0x2312),
-(0x871+125-0x8aa),(0x16e7+2517-0x2077),(0x1f94+1969-0x26ff),(0x22a+3631-0x1012),
-(0x12aa+1355-0x17ad),(0x257+9040-0x255e),(0xc7a+4529-0x1de1),(0xe16+3696-0x1c3b)
-,(0xfe2+4559-0x2165),(0x1456+4436-0x255d),(0x140b+1353-0x1906),
-(0x1577+4165-0x256d),(0x2359+818-0x263b),(0xb74+6515-0x2496),(0xaa4+6449-0x2383)
-,(0xc19+611-0xe29),(0x4b9+3900-0x13a1),(0xc64+2205-0x14ac),(0xedc+6058-0x2630),
-(0x95+8750-0x226c),(0x565+6103-0x1ce4),(0x1441+318-0x1526),(0x1578+2025-0x1d07),
-(0x1771+2121-0x1f5f),ZPB_NON_GSM,(0x1f41+1229-0x23b1),ZPB_NON_GSM,
-(0xdd5+1136-0x1234),ZPB_NON_GSM,(0x1550+1490-0x1ac1),(0x4ec+5866-0x1b74),
-(0x7d3+5218-0x1bd2),(0x3e4+8285-0x23dd),(0x2169+908-0x2490),(0x4b2+200-0x514),
-(0x108+6605-0x1a6e),(0x9d5+7491-0x26b0),(0x536+699-0x788),(0x1b09+1011-0x1e92),
-(0xe5+9798-0x26c0),(0x112c+1995-0x188b),(0x1f6+4500-0x131d),(0x198+8304-0x219a),
-(0x2468+64-0x2439),(0x1536+1275-0x19c1),(0x5cf+6766-0x1fcc),(0x909+4961-0x1bf8),
-(0x1be8+776-0x1e7d),(0xb72+740-0xde2),(0x1153+1573-0x1703),(0xdcf+3268-0x1a1d),
-(0x991+7267-0x257d),(0xebd+1297-0x1356),(0x5ac+2612-0xf67),(0x4fc+5317-0x1947),
+ZPB_NON_GSM,(0x5dc+2903-0x1113),(0x466+3624-0x126d),(0x23b5+111-0x2402),
+(0x3ec+8878-0x2677),(0xbfc+2168-0x1472),(0x240+8204-0x2227),(0xfd5+3270-0x1c75),
+(0x152+6454-0x1a61),(0x8a+1424-0x5f2),(0x16cc+2317-0x1fb0),(0x437+4334-0x14fb),
+(0x12f+1066-0x52e),(0x175+4871-0x1450),(0xfb1+1371-0x14df),(0x19b5+3306-0x2671),
+(0x2a8+9365-0x270e),(0x1d63+1638-0x2399),(0xb8a+3504-0x1909),(0x6ef+7415-0x23b4)
+,(0x6f6+6936-0x21db),(0x1ac7+2583-0x24aa),(0x602+2027-0xdb8),(0xd5c+2672-0x1796)
+,(0x128b+2122-0x1a9e),(0xf0+8300-0x2124),(0xe55+3108-0x1a40),(0x7e9+2446-0x113d)
+,(0x632+786-0x909),(0x188d+1899-0x1fbc),(0xd4c+3840-0x1c0f),(0x1eaa+49-0x1e9d),
+(0xa09+2272-0x12aa),(0x78+1521-0x669),(0x386+3562-0x112f),(0x9cd+5053-0x1d48),
+(0x17d6+1713-0x1e44),(0x1bc+3084-0xd84),(0x56a+3224-0x11bd),(0x785+3165-0x139c),
+(0xe3f+5968-0x2548),(0xcdf+5406-0x21b5),(0x402+1251-0x89c),(0xb0f+2505-0x148e),
+(0xe88+5186-0x227f),(0xf5b+6024-0x2697),(0x1393+3122-0x1f78),(0x23f+2104-0xa29),
+(0x11dc+1020-0x1589),(0x914+4912-0x1bf4),(0x1c2+239-0x260),(0x630+2826-0x10e8),
+(0xca6+5004-0x1fdf),(0x1893+1648-0x1eaf),(0x3ea+4529-0x1546),(0x8c+2463-0x9d5),
+(0xf9d+3079-0x1b4d),(0xf20+6078-0x2686),(0xaf8+6113-0x2280),(0xf9c+2508-0x190e),
+(0x4da+125-0x4fc),ZPB_NON_GSM,(0x1422+1341-0x1902),ZPB_NON_GSM,
+(0x24cc+476-0x2697),ZPB_NON_GSM,(0x1df2+1913-0x250a),(0x50f+7089-0x205e),
+(0x1d15+1043-0x20c5),(0x1721+3896-0x25f5),(0x582+2309-0xe22),(0x72c+21-0x6db),
+(0x7b4+2722-0x11ef),(0x2195+9-0x2136),(0x19d8+2672-0x23df),(0xc7d+4558-0x1de1),
+(0x9e7+5580-0x1f48),(0xba8+6892-0x2628),(0x894+6578-0x21d9),(0x150d+1775-0x1b8e)
+,(0xce4+3838-0x1b73),(0x130+4686-0x130e),(0xb74+6993-0x2654),
+(0x1c05+2695-0x261a),(0xb6+1285-0x548),(0x1579+168-0x15ad),(0x187+7158-0x1d08),
+(0x129+2434-0xa35),(0x1059+2061-0x17ef),(0xf8+830-0x3be),(0x613+5174-0x19d0),
+(0x73a+4636-0x18dc),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,(0x1da5+16-0x1d75),ZPB_NON_GSM,(0x1390+2575-0x1d9e),
-(0x258f+261-0x2670),(0x472+4816-0x173f),ZPB_NON_GSM,(0xf23+3211-0x1b4f),
+ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x1db5+1596-0x23b1),ZPB_NON_GSM,
+(0x16f3+1711-0x1da1),(0x770+1687-0xde3),(0x193b+183-0x19ef),ZPB_NON_GSM,
+(0x162f+159-0x166f),ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,
-ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,ZPB_NON_GSM,(0x42f+112-0x43f),
-(0xbe2+5338-0x207b),(0x1721+914-0x1a72),(0x44b+8658-0x25dc),(0xb83+2753-0x1603),
-(0x177+3413-0xe71),(0x876+6338-0x212a),(0xaa4+3159-0x16df),(0x1a1c+1528-0x200b),
-(0x20c+4081-0x11b8),(0x456+5432-0x196f),(0xebb+2474-0x1820),(0xc2d+2469-0x158d),
-(0x9a9+6370-0x2242),(0x531+3234-0x118a),(0x807+1582-0xdec),(0x15e5+456-0x1764),
-ZPB_NON_GSM,(0x6bf+2120-0xeaa),(0xbc8+5756-0x21f5),(0xb72+155-0xbbe),
-(0xd8b+1268-0x1230),(0x30f+2176-0xb40),(0x81f+1471-0xd82),ZPB_NON_GSM,
-(0xd65+3723-0x1be5),(0x2a5+5915-0x196b),(0x450+149-0x490),(0x1fa6+1499-0x252c),
-(0x1203+840-0x14ed),(0x99d+1209-0xdfd),ZPB_NON_GSM,(0x208b+1160-0x24f5),
-(0xf78+3903-0x1e38),(0x966+2558-0x1303),(0x35b+3411-0x104d),(0x9b0+3273-0x1618),
-(0xc59+2731-0x1689),(0x1a49+2039-0x2231),(0x5e9+5143-0x19e3),
-(0x1afc+1403-0x206e),(0x1917+3068-0x250f),(0x952+6281-0x21d6),
-(0x185c+3606-0x260d),(0x1c1+754-0x44e),(0xf34+3185-0x1b9e),(0x989+2770-0x13f2),
-(0x13bd+457-0x151d),(0xe10+2389-0x16fc),ZPB_NON_GSM,(0xed5+5901-0x2565),
-(0x1928+1263-0x1e0f),(0x2316+923-0x2642),(0x19f9+937-0x1d33),(0x1b51+60-0x1b1e),
-(0x605+2854-0x10af),ZPB_NON_GSM,(0x943+7296-0x25b7),(0x3f5+3591-0x11f6),
-(0x1456+1381-0x1946),(0x1bf2+1022-0x1f7b),(0xa2f+3337-0x16ba),
-(0x1931+3255-0x256f),ZPB_NON_GSM,(0x456+4468-0x1551)};VOID atPb_Init(VOID){
-UINT32 pbCount=(0x28+5891-0x172b);g_zPb_SimIndex[(0x39d+1563-0x9b8)]=
-(0x1f8b+1636-0x25ef);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID)sc_cfg_set(
-ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=(0xe2+7405-0x1dce);pbCount<=
+(0x1fb0+354-0x20b2),(0x150f+1799-0x1bd5),(0x709+5530-0x1c62),(0xf31+1176-0x1388)
+,(0x1b8c+2631-0x2592),(0x1a4b+1237-0x1ec5),(0x206c+60-0x209a),
+(0xd44+2347-0x1653),(0x4a+4309-0x1116),(0x119a+3151-0x1da4),(0xb39+734-0xdf8),
+(0xe44+1697-0x14a0),(0x542+2339-0xe20),(0xc1+2555-0xa73),(0x74+6406-0x1931),
+(0x9ad+2528-0x1344),(0x4c7+8432-0x256e),ZPB_NON_GSM,(0x82b+4086-0x17c4),
+(0x947+1404-0xe74),(0xf22+1550-0x14e1),(0x63b+1426-0xb7e),(0xd04+4140-0x1ce1),
+(0xdd6+5395-0x228d),ZPB_NON_GSM,(0x23c+5764-0x18b5),(0x3c4+8457-0x2478),
+(0x448+7335-0x209a),(0x2c6+7276-0x1edd),(0x259+5615-0x17ea),(0xdec+6212-0x25d7),
+ZPB_NON_GSM,(0x15f8+1105-0x1a2b),(0x6c6+36-0x66b),(0xb7a+6609-0x24ea),
+(0x722+1057-0xae2),(0xed+9671-0x2653),(0x1c00+664-0x1e1d),(0x10d3+2412-0x1a30),
+(0x958+2710-0x13d1),(0x1408+1393-0x1970),(0xf1d+4921-0x2252),(0x291+2198-0xb22),
+(0x1478+1386-0x197d),(0xe50+1097-0x1234),(0xf6a+1949-0x1700),(0x356+4227-0x1370)
+,(0xcba+3328-0x1951),(0x4b6+2164-0xcc1),ZPB_NON_GSM,(0x634+3304-0x129f),
+(0x3a4+9041-0x26ed),(0xa2c+2694-0x1443),(0x17aa+2569-0x2144),
+(0x17bf+3160-0x23a8),(0x1273+1026-0x15f9),ZPB_NON_GSM,(0x23ca+746-0x26a8),
+(0xcbc+502-0xeac),(0x185c+695-0x1a9e),(0x2f4+9262-0x26ad),(0x80+8902-0x22c8),
+(0x1d99+2185-0x25a9),ZPB_NON_GSM,(0x10c+3121-0xcc4)};VOID atPb_Init(VOID){UINT32
+ pbCount=(0xd6+9507-0x25f9);g_zPb_SimIndex[(0x21c0+753-0x24b1)]=
+(0x495+7009-0x1ff6);sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);(VOID)sc_cfg_set(
+ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(pbCount=(0x1e7c+1690-0x2515);pbCount<=
ZPB_SIM_MAX_RECORD;pbCount++){g_zPb_SimIndex[pbCount]=PBM_ERROR_NOT_FOUND;}if(
ZPB_DB_OK!=atPb_CreatDb()){slog(PB_PRINT,SLOG_ERR,
"pb:atPb_Init:create pbm table failed\n");return;}if(ZPB_DB_OK!=atPb_InitApIndex
@@ -87,100 +87,100 @@
);return;}(VOID)atPb_SetApCapacityTable();}VOID atPb_CfgPbNvInit(VOID){(VOID)
sc_cfg_set(ZPB_NV_USIMINDEXMIN,"\x30");(VOID)sc_cfg_set(ZPB_NV_USIMINDEXMAX,
"\x30");(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}int
-atpb_CvtUcs2ToAlphaField(char*src,int srcLen,char*dest){int i=
-(0x75a+7527-0x24c1);int min=32767;int max=(0x158d+4387-0x26b0);int temp=
-(0xb98+655-0xe27);int outOff=(0x893+32-0x8b3);printf(
+atpb_CvtUcs2ToAlphaField(char*src,int srcLen,char*dest){int i=(0x176+3464-0xefe)
+;int min=32767;int max=(0x8e1+7265-0x2542);int temp=(0x9c6+1011-0xdb9);int
+outOff=(0xe7+2541-0xad4);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x73\x72\x63\x4c\x65\x6e\x3d\x25\x64" "\n"
-,srcLen);if(srcLen<=(0x236+6996-0x1d8a)||src==NULL||dest==NULL){return-
-(0x2c7+233-0x3af);}if(srcLen<=(0x86c+394-0x9f4)){dest[(0x275+4433-0x13c6)]=
-(0x54b+4432-0x161b);memcpy(dest+(0x4ea+2371-0xe2c),src,srcLen);printf(
+,srcLen);if(srcLen<=(0x16+3013-0xbdb)||src==NULL||dest==NULL){return-
+(0xb48+6371-0x242a);}if(srcLen<=(0x15f3+2721-0x2092)){dest[(0x5fd+8184-0x25f5)]=
+(0x2079+319-0x2138);memcpy(dest+(0x851+7263-0x24af),src,srcLen);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x75\x73\x65\x20\x38\x30\x20\x63\x6f\x64\x65\x2c\x20\x6c\x65\x6e\x20\x3d\x25\x64" "\n"
-,srcLen+(0x933+1161-0xdbb));return srcLen+(0x166+7057-0x1cf6);}for(i=
-(0x1719+766-0x1a17);i<srcLen;i+=(0x2415+615-0x267a)){if(src[i]!=
-(0x18f9+2887-0x2440)){temp=(int)(((src[i]<<(0x96b+7104-0x2523))&65280)|(src[i+
-(0x11f3+4236-0x227e)]&(0xf39+4991-0x21b9)));
-#if (0x2346+19-0x2359)
-if(temp<(0x146f+152-0x1507)){max=min+(0x410+1563-0x9a9);break;}
+,srcLen+(0xf9+9719-0x26ef));return srcLen+(0x160c+3098-0x2225);}for(i=
+(0xb63+6977-0x26a4);i<srcLen;i+=(0x29d+1527-0x892)){if(src[i]!=
+(0x60c+1469-0xbc9)){temp=(int)(((src[i]<<(0x790+227-0x86b))&65280)|(src[i+
+(0x14f9+1947-0x1c93)]&(0xe6a+876-0x10d7)));
+#if (0xcdb+6316-0x2587)
+if(temp<(0x42c+3556-0x1210)){max=min+(0x4e7+2235-0xd20);break;}
#endif
if(min>temp){min=temp;}if(max<temp){max=temp;}}}printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x6d\x61\x78\x3d\x25\x64" "\n"
-,min,max);if((max-min)<(0x713+8313-0x270b)){if((unsigned char)(min&
-(0x111+7086-0x1c3f))==(unsigned char)(max&(0xe10+4362-0x1e9a))){dest[
-(0x10f8+2577-0x1b08)]=(unsigned char)(srcLen/(0x5e8+1798-0xcec));dest[
-(0x44+2898-0xb96)]=(unsigned char)(0x1350+2167-0x1b46);min=(int)(min&32640);dest
-[(0x1018+687-0x12c5)]=(unsigned char)((min>>(0x1581+3873-0x249b))&
-(0x1db8+1769-0x23a2));outOff=(0x1603+2280-0x1ee8);printf(
+,min,max);if((max-min)<(0x9e4+5063-0x1d2a)){if((unsigned char)(min&
+(0x1d85+1287-0x220c))==(unsigned char)(max&(0xae2+3816-0x194a))){dest[
+(0x7c2+7552-0x2541)]=(unsigned char)(srcLen/(0x6a1+6819-0x2142));dest[
+(0x7b9+7463-0x24e0)]=(unsigned char)(0xc36+4814-0x1e83);min=(int)(min&32640);
+dest[(0x1aa0+885-0x1e13)]=(unsigned char)((min>>(0x990+2665-0x13f2))&
+(0x1c26+2021-0x230c));outOff=(0xd2b+5908-0x243c);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x75\x73\x65\x20\x38\x31\x20\x63\x6f\x64\x65" "\n"
-);}else{dest[(0x4f7+1860-0xc3a)]=(unsigned char)(srcLen/(0x1655+50-0x1685));dest
-[(0xc26+3163-0x1881)]=(unsigned char)(0x16d9+2930-0x21c9);dest[
-(0x1355+2758-0x1e19)]=(unsigned char)((min>>(0x1863+3753-0x2704))&
-(0x13cb+2463-0x1c6b));dest[(0x573+3739-0x140b)]=(unsigned char)(min&
-(0x2e6+8776-0x242f));outOff=(0x782+6608-0x214e);printf(
+);}else{dest[(0x450+3520-0x120f)]=(unsigned char)(srcLen/(0xa37+3007-0x15f4));
+dest[(0xdaa+5273-0x2243)]=(unsigned char)(0x941+3000-0x1477);dest[
+(0x1429+4080-0x2417)]=(unsigned char)((min>>(0x2369+258-0x2463))&
+(0x1b69+3230-0x2708));dest[(0x32+611-0x292)]=(unsigned char)(min&
+(0x1159+5778-0x26ec));outOff=(0x8a4+2954-0x142a);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x75\x73\x65\x20\x38\x32\x20\x63\x6f\x64\x65" "\n"
-);}for(i=(0x16+6060-0x17c2);i<srcLen;i+=(0x94+13-0x9f)){if(src[i]==
-(0x311+8827-0x258c)){dest[outOff]=(unsigned char)(src[i+(0x18bc+966-0x1c81)]&
-(0x225f+1050-0x25fa));}else{temp=(int)((((src[i]<<(0x18dc+1418-0x1e5e))&65280)|(
-src[i+(0x8d8+2861-0x1404)]&(0x95b+56-0x894)))-min);dest[outOff]=(unsigned char)(
-temp|(0x332+3022-0xe80));}outOff++;}printf(
+);}for(i=(0x16c5+1467-0x1c80);i<srcLen;i+=(0x846+823-0xb7b)){if(src[i]==
+(0x103a+829-0x1377)){dest[outOff]=(unsigned char)(src[i+(0x11d1+4892-0x24ec)]&
+(0x70a+4271-0x173a));}else{temp=(int)((((src[i]<<(0xb4a+7021-0x26af))&65280)|(
+src[i+(0x801+7007-0x235f)]&(0x200+1348-0x645)))-min);dest[outOff]=(unsigned char
+)(temp|(0x1ae3+2444-0x23ef));}outOff++;}printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x20\x6f\x75\x74\x4f\x66\x66\x3d\x25\x64\x2c\x64\x65\x73\x74\x5b\x25\x64\x5d\x3d\x25\x78" "\n"
-,outOff,outOff,dest[outOff]);return outOff;}dest[(0x4a8+8481-0x25c9)]=
-(0xd53+2162-0x1545);memcpy(dest+(0x2014+649-0x229c),src,srcLen);printf(
+,outOff,outOff,dest[outOff]);return outOff;}dest[(0x2e6+7173-0x1eeb)]=
+(0x76c+1115-0xb47);memcpy(dest+(0x16a8+3125-0x22dc),src,srcLen);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x70\x62\x5f\x43\x76\x74\x55\x63\x73\x32\x54\x6f\x41\x6c\x70\x68\x61\x46\x69\x65\x6c\x64\x2c\x20\x75\x73\x65\x20\x38\x30\x20\x63\x6f\x64\x65\x2c\x20\x6c\x65\x6e\x20\x3d\x25\x64" "\n"
-,srcLen+(0x356+8628-0x2509));return srcLen+(0xee4+166-0xf89);}int
+,srcLen+(0x1b19+778-0x1e22));return srcLen+(0x11eb+2639-0x1c39);}int
atPb_GetU80Code(const UINT8*srcCode,UINT32 srcCodeLen,UINT8*destCode,UINT32
destCodeLen){assert(destCode!=NULL&&srcCode!=NULL);if(srcCodeLen==
-(0x19f4+717-0x1cc1)||destCodeLen==(0xc4f+1621-0x12a4)||destCodeLen<srcCodeLen){
-return-(0xbd+6127-0x18ab);}memset(destCode,(0x1708+475-0x18e3),destCodeLen);
-destCode[(0x15d+456-0x325)]=(0x1641+3302-0x22a7);printf(
+(0x71f+2065-0xf30)||destCodeLen==(0x175+6962-0x1ca7)||destCodeLen<srcCodeLen){
+return-(0x72c+6313-0x1fd4);}memset(destCode,(0x187d+804-0x1ba1),destCodeLen);
+destCode[(0x23ad+195-0x2470)]=(0xc37+5603-0x219a);printf(
"\x63\x68\x65\x6e\x6a\x69\x65\x20\x2d\x2d\x2d\x2d\x2d\x61\x74\x50\x62\x5f\x47\x65\x74\x55\x38\x30\x43\x6f\x64\x65\x2d\x2d\x2d\x2d\x2d\x73\x72\x63\x43\x6f\x64\x65\x5b\x30\x5d\x20\x3d\x20\x25\x64" "\n"
-,srcCode[(0x2139+149-0x21ce)]);switch(srcCode[(0xf9c+592-0x11ec)]){case
-(0x105+5632-0x1685):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
-(0x1141+900-0x1444):{atPb_CvtU81ToU80(srcCode+(0x22df+237-0x23cb),srcCodeLen-
-(0xf86+3897-0x1ebe),destCode+(0x245+4277-0x12f9),destCodeLen-(0x7ef+1392-0xd5e))
-;return srcCode[(0x165c+3767-0x2512)]*(0x261c+137-0x26a3)+(0x55+4513-0x11f5);}
-case(0xd29+2505-0x1670):{atPb_CvtU82ToU80(srcCode+(0x59d+5254-0x1a22),srcCodeLen
--(0x18e0+16-0x18ef),destCode+(0x7ea+3826-0x16db),destCodeLen-(0x293+5797-0x1937)
-);return srcCode[(0x17cc+598-0x1a21)]*(0x161c+2238-0x1ed8)+(0xa01+302-0xb2e);}
-default:{return-(0x485+2166-0xcfa);}}}BOOL atPb_CvtU82ToU80(const UINT8*srcData,
-UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=(0x967+5583-0x1f36);
-UINT16 basePointer=(0x48+2518-0xa1e);UINT8 iCurChar=(0xc9b+2986-0x1845);UINT32
-iCurSrc=(0x12c4+1004-0x16b0);chNum=(UINT32)srcData[(0x757+5667-0x1d7a)];
-basePointer=(UINT16)srcData[(0x1e35+1677-0x24c1)];basePointer=basePointer<<
-(0x11ba+3344-0x1ec2);basePointer=basePointer+srcData[(0x216a+1281-0x2669)];if(
-chNum*(0x1a4+3152-0xdf2)>destLen){return FALSE;}for(iCurSrc=(0x862+5046-0x1c15);
-iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){UINT8*curDest=destData+
-(0xdb2+3626-0x1bda)*iCurChar;atPb_CvtChCode(basePointer,srcData[iCurSrc],curDest
-,curDest+(0xf37+419-0x10d9));}return TRUE;}BOOL atPb_CvtU81ToU80(const UINT8*
-srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=
-(0x252+4577-0x1433);UINT16 basePointer=(0x1795+11-0x17a0);UINT8 iCurChar=
-(0xd07+2266-0x15e1);UINT32 iCurSrc=(0x82+7898-0x1f5c);chNum=srcData[
-(0x118+4782-0x13c6)];basePointer=((UINT16)srcData[(0x217f+492-0x236a)])<<
-(0xa67+1208-0xf18);if(chNum*(0x339+8139-0x2302)>destLen){return FALSE;}for(
-iCurSrc=(0x11c9+2964-0x1d5b);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++
-){UINT8*curDest=destData+(0x295+4133-0x12b8)*iCurChar;atPb_CvtChCode(basePointer
-,srcData[iCurSrc],curDest,curDest+(0xa18+810-0xd41));}return TRUE;}VOID
+,srcCode[(0x6a1+6676-0x20b5)]);switch(srcCode[(0x8c1+5172-0x1cf5)]){case
+(0x8d1+3512-0x1609):{memcpy(destCode,srcCode,srcCodeLen);return srcCodeLen;}case
+(0xef+3825-0xf5f):{atPb_CvtU81ToU80(srcCode+(0x13a1+2836-0x1eb4),srcCodeLen-
+(0x1ff8+582-0x223d),destCode+(0x62c+4276-0x16df),destCodeLen-(0x427+7589-0x21cb)
+);return srcCode[(0xd61+2381-0x16ad)]*(0x1300+2127-0x1b4d)+(0x4c3+3685-0x1327);}
+case(0xa7+8688-0x2215):{atPb_CvtU82ToU80(srcCode+(0x1dea+184-0x1ea1),srcCodeLen-
+(0x1eb8+1525-0x24ac),destCode+(0x1029+1750-0x16fe),destCodeLen-
+(0x760+1287-0xc66));return srcCode[(0x104c+141-0x10d8)]*(0x5ac+7563-0x2335)+
+(0x285+2138-0xade);}default:{return-(0x8c1+4010-0x186a);}}}BOOL atPb_CvtU82ToU80
+(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen){UINT8 chNum=
+(0xd0+703-0x38f);UINT16 basePointer=(0xbec+4535-0x1da3);UINT8 iCurChar=
+(0x1985+1584-0x1fb5);UINT32 iCurSrc=(0xd7d+3458-0x1aff);chNum=(UINT32)srcData[
+(0x403+7649-0x21e4)];basePointer=(UINT16)srcData[(0xcf0+1976-0x14a7)];
+basePointer=basePointer<<(0xa52+3382-0x1780);basePointer=basePointer+srcData[
+(0x153+2304-0xa51)];if(chNum*(0x1e48+1119-0x22a5)>destLen){return FALSE;}for(
+iCurSrc=(0x6a3+5882-0x1d9a);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++)
+{UINT8*curDest=destData+(0x658+1247-0xb35)*iCurChar;atPb_CvtChCode(basePointer,
+srcData[iCurSrc],curDest,curDest+(0x1123+3318-0x1e18));}return TRUE;}BOOL
+atPb_CvtU81ToU80(const UINT8*srcData,UINT32 srcLen,UINT8*destData,UINT32 destLen
+){UINT8 chNum=(0x1dad+1711-0x245c);UINT16 basePointer=(0x1d6+8729-0x23ef);UINT8
+iCurChar=(0x1d2+4466-0x1344);UINT32 iCurSrc=(0x737+6240-0x1f97);chNum=srcData[
+(0xbef+5064-0x1fb7)];basePointer=((UINT16)srcData[(0x1724+2247-0x1fea)])<<
+(0xa25+7047-0x25a5);if(chNum*(0x251d+279-0x2632)>destLen){return FALSE;}for(
+iCurSrc=(0x3e4+1702-0xa88);iCurSrc<srcLen&&iCurChar<chNum;iCurSrc++,iCurChar++){
+UINT8*curDest=destData+(0xb9a+5123-0x1f9b)*iCurChar;atPb_CvtChCode(basePointer,
+srcData[iCurSrc],curDest,curDest+(0xf15+2251-0x17df));}return TRUE;}VOID
atPb_CvtChCode(UINT16 basePointer,UINT8 srcData,UINT8*chMsb,UINT8*chLsb){UINT16
-curChar=(0xa3d+7141-0x2622);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
-(0x170f+249-0x1788))==(0x3d+8847-0x22cc)){curChar=srcData;}else{curChar=
-basePointer+(srcData&(0xe3+1821-0x781));}*chMsb=(UINT8)(curChar>>
-(0x1fff+1693-0x2694));*chLsb=(UINT8)((curChar<<(0x87f+6358-0x214d))>>
-(0x996+71-0x9d5));return;}int atPb_String2Bytes(const char*pSrc,unsigned char*
-pDst,int nSrcLength){int i=(0xbd8+3208-0x1860);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0x471+4727-0x16e8)){return-(0x1ed8+554-0x2101);}for(i=
-(0x230+2785-0xd11);i<nSrcLength;i+=(0x167c+2357-0x1faf)){if(*pSrc>=
-((char)(0xe0c+2412-0x1748))&&*pSrc<=((char)(0x31f+7070-0x1e84))){*pDst=(*pSrc-
-((char)(0xb68+763-0xe33)))<<(0x109a+3690-0x1f00);}else{*pDst=((toupper(*pSrc)-
-((char)(0xe8a+5232-0x22b9)))+(0x1984+40-0x19a2))<<(0x1466+759-0x1759);}pSrc++;if
-(*pSrc>=((char)(0xa61+4695-0x1c88))&&*pSrc<=((char)(0x7ad+3551-0x1553))){*pDst|=
-*pSrc-((char)(0xb6b+3415-0x1892));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x3db+2-0x39c)))+(0xf75+5923-0x268e);}pSrc++;pDst++;}return nSrcLength/
-(0xf2c+4001-0x1ecb);}int atPb_Bytes2String(const unsigned char*pSrc,char*pDst,
-int nSrcLength){const char tab[]=
+curChar=(0x11a5+721-0x1476);assert(chMsb!=NULL&&chLsb!=NULL);if((srcData&
+(0xb0a+4691-0x1cdd))==(0x583+712-0x84b)){curChar=srcData;}else{curChar=
+basePointer+(srcData&(0x450+7019-0x1f3c));}*chMsb=(UINT8)(curChar>>
+(0x4a2+4722-0x170c));*chLsb=(UINT8)((curChar<<(0xb0a+4333-0x1bef))>>
+(0x697+1289-0xb98));return;}int atPb_String2Bytes(const char*pSrc,unsigned char*
+pDst,int nSrcLength){int i=(0xd58+299-0xe83);if(pSrc==NULL||pDst==NULL||
+nSrcLength<(0x1a11+3178-0x267b)){return-(0x1508+1155-0x198a);}for(i=
+(0x1b9+7470-0x1ee7);i<nSrcLength;i+=(0xdb2+354-0xf12)){if(*pSrc>=
+((char)(0xe2f+2368-0x173f))&&*pSrc<=((char)(0xeda+3783-0x1d68))){*pDst=(*pSrc-
+((char)(0x17d9+72-0x17f1)))<<(0x779+4991-0x1af4);}else{*pDst=((toupper(*pSrc)-
+((char)(0x1b1b+2666-0x2544)))+(0x49c+5856-0x1b72))<<(0x9b2+2906-0x1508);}pSrc++;
+if(*pSrc>=((char)(0xee0+124-0xf2c))&&*pSrc<=((char)(0x483+6076-0x1c06))){*pDst|=
+*pSrc-((char)(0x9c+5961-0x17b5));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x8a9+5018-0x1c02)))+(0xe0d+5447-0x234a);}pSrc++;pDst++;}return
+nSrcLength/(0x12da+4001-0x2279);}int atPb_Bytes2String(const unsigned char*pSrc,
+char*pDst,int nSrcLength){const char tab[]=
"\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x41\x42\x43\x44\x45\x46";int i=
-(0x1c35+2634-0x267f);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x4d7+834-0x819)){
-return-(0x1e22+1200-0x22d1);}for(i=(0x17e1+2715-0x227c);i<nSrcLength;i++){*pDst
-++=tab[*pSrc>>(0x1eab+804-0x21cb)];*pDst++=tab[*pSrc&(0x18af+3347-0x25b3)];pSrc
-++;}*pDst='\0';return nSrcLength*(0x11ab+2508-0x1b75);}static VOID
+(0x7a0+3472-0x1530);if(pSrc==NULL||pDst==NULL||nSrcLength<(0xac1+6803-0x2554)){
+return-(0x1d+3545-0xdf5);}for(i=(0x447+5938-0x1b79);i<nSrcLength;i++){*pDst++=
+tab[*pSrc>>(0x12f4+1781-0x19e5)];*pDst++=tab[*pSrc&(0x1f30+1240-0x23f9)];pSrc++;
+}*pDst='\0';return nSrcLength*(0x665+5024-0x1a03);}static VOID
atPb_WebRecodeShow(T_zPb_WebContact const*pFromweb){slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x66\x72\x6f\x6d\x77\x65\x62\x2e\x49\x6e\x64\x65\x78\x3d\x25\x64" "\n"
,pFromweb->pbIndex);slog(PB_PRINT,SLOG_DEBUG,
@@ -200,20 +200,21 @@
){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x61\x74\x42\x61\x73\x65\x5f\x49\x69\x6e\x74\x50\x62\x4f\x6b\x20" "\n"
);}VOID atPb_RecvCpbsReadRsp(T_zPb_AtCpbsReadRes*cpbsInd){CHAR resInfo[
-(0x2209+691-0x24a8)]={(0x1f3+4280-0x12ab)};if(strncmp(cpbsInd->locType,
-"\x53\x4d",(0xc73+1611-0x12bc))==(0xb5a+4859-0x1e55)){(VOID)snprintf(resInfo,
-(0xf0+8381-0x2199),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
-NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x4c3+8598-0x2659),(0x1494+66-0x14c2)
-);(VOID)snprintf(resInfo,(0x650+5885-0x1d39),"\x25\x64",cpbsInd->totalEntries);(
-VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);g_zPb_SimIndex[(0x112f+1357-0x167c)]
-=(UINT32)(cpbsInd->totalEntries);}else{printf(
+(0x288+5374-0x1772)]={(0x49b+4140-0x14c7)};if(strncmp(cpbsInd->locType,
+"\x53\x4d",(0x85f+1562-0xe77))==(0x152+5104-0x1542)){(VOID)snprintf(resInfo,
+(0x1166+2589-0x1b6f),"\x25\x64",cpbsInd->usedEntries);(VOID)sc_cfg_set(
+NV_PB_USEDENTRIES,resInfo);memset(resInfo,(0x661+5264-0x1af1),
+(0x2016+1162-0x248c));(VOID)snprintf(resInfo,(0xd7f+6464-0x26ab),"\x25\x64",
+cpbsInd->totalEntries);(VOID)sc_cfg_set(NV_PB_TOTALENTRIES,resInfo);
+g_zPb_SimIndex[(0x128+5559-0x16df)]=(UINT32)(cpbsInd->totalEntries);}else{printf
+(
"\x61\x74\x50\x62\x5f\x52\x65\x63\x76\x43\x70\x62\x73\x52\x65\x61\x64\x52\x73\x70\x20\x6e\x6f\x74\x20\x53\x4d\x3a\x25\x73" "\n"
,cpbsInd->locType);}}static VOID atPb_SetScpbrResToNv(CHAR const*pbNvKeyWord,
-UINT32 len){char converted[(0x5cc+2539-0xfad)]={(0x10b2+4074-0x209c)};assert(
-pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x1a01+2281-0x22e0),"\x25\x64"
+UINT32 len){char converted[(0x1ba8+2093-0x23cb)]={(0x153b+3887-0x246a)};assert(
+pbNvKeyWord!=ZUFI_NULL);(VOID)snprintf(converted,(0x1718+2351-0x203d),"\x25\x64"
,len);(VOID)sc_cfg_set(pbNvKeyWord,converted);}VOID atPb_ScpbrTestRsp(
-T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0x1730+1976-0x1ee8)};
-CHAR pbUsed[(0x1730+93-0x175b)]={(0x1ef5+567-0x212c)};sc_cfg_get(
+T_zPb_AtScpbrTestRes*scpbsInd){T_zPb_UsimCapacity pbPara={(0xb3a+3275-0x1805)};
+CHAR pbUsed[(0x381+5768-0x19d7)]={(0x1517+2703-0x1fa6)};sc_cfg_get(
NV_PB_USEDENTRIES,pbUsed,sizeof(pbUsed));g_zPb_DelIndex=(UINT32)scpbsInd->
minIndex;pbPara.simType=ZPB_USIM;pbPara.maxRecordNum=scpbsInd->maxIndex;pbPara.
usedRecordNum=atoi(pbUsed);pbPara.maxNumberLen=scpbsInd->maxNumberLen;pbPara.
@@ -222,22 +223,22 @@
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMIN,(UINT32)scpbsInd->minIndex);
atPb_SetScpbrResToNv(ZPB_NV_USIMINDEXMAX,(UINT32)scpbsInd->maxIndex);(VOID)
atPb_SetSimCapacityTable(pbPara);}int atPb_SendScpbrSet_repeat(sem_t tSemId){int
- min=(0x39+1694-0x6d7);int max=(0x1bc4+2735-0x2673);int res=(0x405+8706-0x2607);
-int index=(0xbeb+1358-0x1139);CHAR pbMin[(0x1180+2304-0x1a4e)]={
-(0x21d+1058-0x63f)};CHAR pbMax[(0x5e6+331-0x6ff)]={(0x991+286-0xaaf)};int
-indexmin=(0x537+1955-0xcda);int indexmax=(0xa8d+5986-0x21ef);T_zPb_ScpbrReadRes
-scpbrReadInfo={(0xa4f+1299-0xf62)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(
-pbMin));sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));(VOID)sc_cfg_set(
-ZPB_NV_INIT,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x649+4929-0x198a)||strcmp(
-pbMax,"\x30")==(0x452+3310-0x1140)){sc_cfg_set(ZPB_NV_INIT,ZPB_OPERATE_SUC);
-printf(
+ min=(0xae2+5312-0x1fa2);int max=(0xeb4+4417-0x1ff5);int res=
+(0x11b4+4462-0x2322);int index=(0xab5+688-0xd65);CHAR pbMin[(0x13bd+4720-0x25fb)
+]={(0x6d9+2492-0x1095)};CHAR pbMax[(0x1187+2901-0x1caa)]={(0x752+1364-0xca6)};
+int indexmin=(0x1565+1377-0x1ac6);int indexmax=(0x74a+1651-0xdbd);
+T_zPb_ScpbrReadRes scpbrReadInfo={(0x746+5890-0x1e48)};sc_cfg_get(
+ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
+sizeof(pbMax));(VOID)sc_cfg_set(ZPB_NV_INIT,ZPB_LOADING);if(strcmp(pbMin,"\x30")
+==(0x1f9+2050-0x9fb)||strcmp(pbMax,"\x30")==(0x64+1505-0x645)){sc_cfg_set(
+ZPB_NV_INIT,ZPB_OPERATE_SUC);printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x63\x61\x72\x64\x20\x75\x6e\x73\x75\x70\x70\x6f\x72\x74\x20\x70\x62" "\n"
-);return-(0x1fd+552-0x424);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
-"\x25\x64",&max);if((min<(0x12c5+1129-0x172e)||min>INT_MAX-(0x985+4982-0x1cfa))
-||(max<(0x92+1253-0x577)||max>INT_MAX-(0x1007+150-0x109c))){printf(
+);return-(0x7b3+6791-0x2239);}sscanf(pbMin,"\x25\x64",&min);sscanf(pbMax,
+"\x25\x64",&max);if((min<(0xf67+2085-0x178c)||min>INT_MAX-(0x336+5393-0x1846))||
+(max<(0x100a+5888-0x270a)||max>INT_MAX-(0x1740+591-0x198e))){printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x70\x62\x20\x6e\x75\x6d\x20\x65\x72\x72\x20\x6d\x69\x6e\x3a\x25\x64\x2c\x20\x6d\x61\x78\x3a\x25\x64" "\n"
-,min,max);return-(0xec8+510-0x10c5);}while((0x1674+2990-0x2221)){if(indexmin<min
-){indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0xd36+5533-0x22d2);if(
+,min,max);return-(0x147+884-0x4ba);}while((0x170f+795-0x1a29)){if(indexmin<min){
+indexmin=min;indexmax=min+ZPB_INIT_LOAD_RECORD_NUM-(0x5b7+4440-0x170e);if(
indexmax>max){indexmax=max;break;}printf(
"\x5b\x50\x42\x5d\x20\x31\x31\x31\x20\x69\x6e\x64\x65\x78\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x69\x6e\x64\x65\x78\x6d\x61\x78\x3d\x25\x64\x2c\x28\x25\x64\x2d\x25\x64\x29" "\n"
,indexmin,indexmax,min,max);}else{indexmin=indexmin+ZPB_INIT_LOAD_RECORD_NUM;if(
@@ -248,18 +249,18 @@
"\x5b\x50\x42\x5d\x20\x32\x32\x32\x20\x69\x6e\x64\x65\x78\x6d\x69\x6e\x3d\x25\x64\x2c\x20\x69\x6e\x64\x65\x78\x6d\x61\x78\x3d\x25\x64\x2c\x28\x25\x64\x2d\x25\x64\x29" "\n"
,indexmin,indexmax,min,max);}scpbrReadInfo.minIndex=indexmin;scpbrReadInfo.
maxIndex=indexmax;res=ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,
-MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,
-(0x1426+2531-0x1e09));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-
-(0x1c0f+455-0x1dd5)){break;}}return g_PbOptRsp.result;}
-#if (0x569+2179-0xdec)
+MSG_CMD_READ_PB_REQ,sizeof(T_zPb_ScpbrReadRes),&scpbrReadInfo,(0x857+57-0x890));
+sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result==-(0x573+126-0x5f0)){break;}}return
+g_PbOptRsp.result;}
+#if (0x24fc+383-0x267b)
int atPb_SendScpbrSet(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){UINT32
-indexmin=(0x131c+4157-0x2359);UINT32 indexmax=(0x609+4389-0x172e);CHAR atcmdMsg[
-(0xa4d+6002-0x2179)]={(0x52d+5458-0x1a7f)};int res=(0x584+2691-0x1007);CHAR
-pbMin[(0x380+2394-0xca8)]={(0x13c8+2841-0x1ee1)};CHAR pbMax[(0x927+4726-0x1b6b)]
-={(0xa42+6306-0x22e4)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+indexmin=(0x16c7+2663-0x212e);UINT32 indexmax=(0x264+2777-0xd3d);CHAR atcmdMsg[
+(0xe0f+2140-0x1625)]={(0x6e8+1848-0xe20)};int res=(0xf39+5905-0x264a);CHAR pbMin
+[(0x97a+6464-0x2288)]={(0x55f+1400-0xad7)};CHAR pbMax[(0x5ef+4684-0x1809)]={
+(0x1fa8+491-0x2193)};sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));(VOID)sc_cfg_set(ZPB_NV_INIT
-,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0xcb5+1554-0x12c7)||strcmp(pbMax,"\x30")
-==(0xe3d+2730-0x18e7)){printf(
+,ZPB_LOADING);if(strcmp(pbMin,"\x30")==(0x5c9+5511-0x1b50)||strcmp(pbMax,"\x30")
+==(0xdb1+5863-0x2498)){printf(
"\x61\x74\x50\x62\x5f\x53\x65\x6e\x64\x53\x63\x70\x62\x72\x53\x65\x74\x20\x63\x61\x72\x64\x20\x75\x6e\x73\x75\x70\x70\x6f\x72\x74\x20\x70\x62" "\n"
);return ZAT_RESULT_OK;}sscanf(pbMin,"\x25\x64",&indexmin);sscanf(pbMax,
"\x25\x64",&indexmax);(VOID)snprintf(atcmdMsg,sizeof(atcmdMsg),
@@ -268,45 +269,46 @@
atcmdMsg,cid,pAtRst,atRstSize);pthread_mutex_unlock(&smsdb_mutex);return res;}
#endif
UINT8 atPb_EncodeText(CHAR*pbDst,CHAR const*pbTextSrc,UINT32 dstLen){UINT8 i=
-(0xac0+2290-0x13b2);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x341+4405-0x1476)};if
-(pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x7ac+2926-0x1316)+
-ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x87f+1673-0xf08)],
-sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0xe1f+5912-0x2537);
-(i<strlen(pbTextSrc))&&(i*(0x1d3+5693-0x180c)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
-snprintf(strTarget+i*(0x181+1258-0x667)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i*
-(0x2039+7-0x203c)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]);}
-strncpy(pbDst,strTarget,dstLen-(0x874+4930-0x1bb5));return ZUFI_SUCC;}}return
-ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){T_zPb_WebContact
-pbRecord={(0xba2+3534-0x1970)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]={
-(0x803+5611-0x1dee)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x1f36+1463-0x24ed)};int
-text_len=(0x1310+2332-0x1c2c);int tmp_len=(0xcc9+1147-0x1144);CHAR tmp[
-ZPB_TEXT_SIZE_BYTES]={(0x2277+299-0x23a2)};if(atRes->coding!=ZPB_UCS2){if(
+(0x2f5+1932-0xa81);CHAR strTarget[ZPB_TEXT_SIZE_BYTES]={(0x8b+4818-0x135d)};if(
+pbTextSrc!=ZUFI_NULL){if(strlen(pbTextSrc)*(0x691+6418-0x1f9f)+
+ZPB_UCS2_PREFIX_LEN<dstLen){snprintf((CHAR*)&strTarget[(0x9d4+3286-0x16aa)],
+sizeof(strTarget),"\x25\x30\x32\x58",ZPB_UCS2_PREFIX);for(i=(0xcf9+6609-0x26ca);
+(i<strlen(pbTextSrc))&&(i*(0x132f+2681-0x1da4)+ZPB_UCS2_PREFIX_LEN<dstLen);i++){
+snprintf(strTarget+i*(0xb02+4690-0x1d50)+ZPB_UCS2_PREFIX_LEN,sizeof(strTarget)-i
+*(0x695+2495-0x1050)-ZPB_UCS2_PREFIX_LEN,"\x30\x30\x25\x30\x32\x58",pbTextSrc[i]
+);}strncpy(pbDst,strTarget,dstLen-(0x14c3+3415-0x2219));return ZUFI_SUCC;}}
+return ZUFI_FAIL;}VOID atPb_ScpbrSetRsp(T_zPb_ScpbrSetRes*atRes){
+T_zPb_WebContact pbRecord={(0xf0b+2465-0x18ac)};CHAR pbDst[ZPB_TEXT_SIZE_BYTES]=
+{(0x2d2+3882-0x11fc)};CHAR text[ZPB_TEXT_SIZE_BYTES]={(0x207b+1471-0x263a)};int
+text_len=(0x1e60+1140-0x22d4);int tmp_len=(0x55f+2549-0xf54);CHAR tmp[
+ZPB_TEXT_SIZE_BYTES]={(0x394+1290-0x89e)};if(atRes->coding!=ZPB_UCS2){if(
atPb_EncodeText(pbDst,atRes->text,ZPB_TEXT_SIZE_BYTES)==ZUFI_SUCC){strncpy(atRes
-->text,pbDst+(0x26c+2899-0xdbd),sizeof(atRes->text)-(0xdf3+1538-0x13f4));}else{
+->text,pbDst+(0xbab+4310-0x1c7f),sizeof(atRes->text)-(0xc7d+5818-0x2336));}else{
slog(PB_PRINT,SLOG_ERR,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x53\x63\x70\x62\x72\x53\x65\x74\x52\x73\x70\x65\x6e\x63\x6f\x64\x65\x20\x65\x72\x72\x21\x2e" "\n"
);return;}}else{text_len=atPb_String2Bytes(&atRes->text,&text,strlen(atRes->text
));tmp_len=atPb_GetU80Code(&text,text_len,&tmp,ZPB_TEXT_SIZE_BYTES);if(tmp_len<
-(0x11a3+656-0x1433))return;memset(&text,(0x1bd+8705-0x23be),ZPB_TEXT_SIZE_BYTES)
-;text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>(0x8b7+4887-0x1bcc))
-{memset(&atRes->text,(0x1e25+1816-0x253d),ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->
-text,text+(0x8e7+4566-0x1abb),strlen(text)-(0x619+4688-0x1867));}}pbRecord.pbId=
--(0x28+9534-0x2565);pbRecord.pbIndex=(SINT32)atRes->index;strncpy(pbRecord.name,
-atRes->text,sizeof(pbRecord.name)-(0xff7+998-0x13dc));strncpy(pbRecord.
-mobilNumber,atRes->number1,sizeof(pbRecord.mobilNumber)-(0x5fa+5356-0x1ae5));
-strncpy(pbRecord.officeNumber,atRes->number2,sizeof(pbRecord.officeNumber)-
-(0x596+678-0x83b));strncpy(pbRecord.homeNumber,atRes->number3,sizeof(pbRecord.
-homeNumber)-(0xa89+3122-0x16ba));strncpy(pbRecord.email,atRes->email,sizeof(
-pbRecord.email)-(0x16e3+225-0x17c3));pbRecord.pbLocation=ZPB_LOCATION_USIM;(VOID
-)atPb_LoadARecToPbmTable(&pbRecord);}VOID atPb_SetDelStatusMultOrAll(){if(
-g_zPb_DelStatusUsim.dealFailNum>(0x10e0+341-0x1235)){if(g_zPb_DelStatusUsim.
-dealSuccNum>(0x969+4559-0x1b38)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_MUL_DEL_PART_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}}
-else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}}
-#if (0x909+992-0xce9)
+(0x1e0f+1111-0x2266))return;memset(&text,(0x1511+2090-0x1d3b),
+ZPB_TEXT_SIZE_BYTES);text_len=atPb_Bytes2String(&tmp,&text,tmp_len);if(text_len>
+(0x14d3+2325-0x1de6)){memset(&atRes->text,(0x627+3697-0x1498),
+ZPB_TEXT_SIZE_BYTES);memcpy(&atRes->text,text+(0x1a41+1149-0x1ebc),strlen(text)-
+(0x44d+4423-0x1592));}}pbRecord.pbId=-(0x2f+2317-0x93b);pbRecord.pbIndex=(SINT32
+)atRes->index;strncpy(pbRecord.name,atRes->text,sizeof(pbRecord.name)-
+(0x316+8796-0x2571));strncpy(pbRecord.mobilNumber,atRes->number1,sizeof(pbRecord
+.mobilNumber)-(0xb6b+2951-0x16f1));strncpy(pbRecord.officeNumber,atRes->number2,
+sizeof(pbRecord.officeNumber)-(0x1a6b+3098-0x2684));strncpy(pbRecord.homeNumber,
+atRes->number3,sizeof(pbRecord.homeNumber)-(0x1318+3192-0x1f8f));strncpy(
+pbRecord.email,atRes->email,sizeof(pbRecord.email)-(0x5fa+4084-0x15ed));pbRecord
+.pbLocation=ZPB_LOCATION_USIM;(VOID)atPb_LoadARecToPbmTable(&pbRecord);}VOID
+atPb_SetDelStatusMultOrAll(){if(g_zPb_DelStatusUsim.dealFailNum>
+(0x21c3+1213-0x2680)){if(g_zPb_DelStatusUsim.dealSuccNum>(0xaff+3701-0x1974)){(
+VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_MUL_DEL_PART_SUC);}else{(VOID)sc_cfg_set(
+ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
+ZPB_OPERATE_SUC);}}
+#if (0xbfc+4800-0x1ebc)
VOID atPb_RecvScpbwAddErr(UINT8*pErrCode){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x9b4+2273-0x1293))
-==(0x1511+720-0x17e1))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
+ZPB_NEW_ERROR);if((strncmp(pErrCode,ZAT_ERRCODE_MEMORY_FULL,(0x56f+1322-0xa97))
+==(0x1812+863-0x1b71))){(VOID)sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x79\x65\x73");
printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x43\x4d\x45\x20\x45\x72\x72\x43\x6f\x64\x65\x3a\x20\x32\x30\x2e" "\n"
);}else{printf(
@@ -317,83 +319,84 @@
ZPB_NEW_ERROR);printf(
"\x70\x62\x3a\x52\x65\x63\x76\x20\x41\x74\x20\x53\x63\x70\x62\x77\x20\x6d\x6f\x64\x69\x66\x79\x20\x65\x72\x72\x2e" "\n"
);}VOID pb_AsctoHex(UINT16*pcHex,SINT32 iDstLen,UINT8 const*pcASC,SINT32 iSrcLen
-){UINT32 iOddOrEven=(0xfb5+4306-0x2087);UINT8 iTemp=(0xd7d+1633-0x13de);SINT32 i
-=(0x3db+8530-0x252d);if((NULL==pcHex)||(NULL==pcASC)||((0x1855+1671-0x1edc)==
-iDstLen)||(iDstLen<(iSrcLen/(0x1806+1995-0x1fcf)+(0xf18+6070-0x26cd)))){return;}
-for(i=(0xd18+5036-0x20c4);i<iSrcLen;i++){if(iOddOrEven%(0x8cb+5861-0x1fae)==
-(0xd42+2021-0x1527)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x5f0+2862-0x10ee)))&&(
-iTemp<=((char)(0x1351+2076-0x1b34)))){*(pcHex+i/(0x1dbb+925-0x2156))|=(UINT8)(
-iTemp-(0x12a+4828-0x13d6))<<(0x29+9518-0x2553);}else{*(pcHex+i/
-(0x1089+1989-0x184c))|=(UINT8)(iTemp-(0x7df+449-0x969))<<(0x6e2+2422-0x1054);}}
-else{iTemp=*(pcASC+i);if((iTemp>=((char)(0xe30+1687-0x1497)))&&(iTemp<=
-((char)(0x1425+2615-0x1e23)))){*(pcHex+i/(0x501+6824-0x1fa7))|=iTemp-
-(0xd0a+488-0xec2);}else{*(pcHex+i/(0x289+3311-0xf76))|=iTemp-(0xca9+571-0xead);}
-}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,SINT32 iLength){int
-iRetVal=(0x246+7924-0x2139);char cTemp;int i=(0x181a+2054-0x2020);if(NULL==
-psUcs2){return-(0xb04+2605-0x1530);}for(i=(0x1ab7+2894-0x2605);i<iLength;i++){if
-((0xb9f+1733-0x1164)>psUcs2[i]){switch(psUcs2[i]){case(0x1c33+1178-0x20c1):case
-(0x1ff6+1851-0x26d6):case(0x370+2124-0xb60):case(0x1763+631-0x197d):case
-(0xb56+3401-0x1841):case(0x16f6+4022-0x2631):case(0x2477+226-0x24dd):case
-(0x196+3779-0xfdc):case(0x5f7+6810-0x2013):case(0xd99+5201-0x2146):case
-(0x214+7589-0x1f99):{break;}default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];
-if(ZPB_NON_GSM==cTemp){iRetVal=(0x1278+3738-0x2112);}break;}}}else{switch(psUcs2
-[i]){case(0xba1+2453-0x11a2):case(0x12b9+3989-0x1ea8):case(0x10ff+5183-0x21ab):
-case(0x3e8+3748-0xef1):case(0x1787+2186-0x1c68):case(0x57a+1386-0x744):case
-(0x13f7+4930-0x2371):case(0x863+4098-0x14c2):case(0x1a33+164-0x171f):case
-(0x606+5097-0x1651):{break;}default:{iRetVal=(0x165a+647-0x18e1);break;}}}if(
-(0x284+3412-0xfd8)==iRetVal){break;}}return iRetVal;}static UINT8
+){UINT32 iOddOrEven=(0x242b+203-0x24f6);UINT8 iTemp=(0x248+9200-0x2638);SINT32 i
+=(0xd4+1195-0x57f);if((NULL==pcHex)||(NULL==pcASC)||((0xaf8+1045-0xf0d)==iDstLen
+)||(iDstLen<(iSrcLen/(0x737+1363-0xc88)+(0x122f+4475-0x23a9)))){return;}for(i=
+(0xee6+866-0x1248);i<iSrcLen;i++){if(iOddOrEven%(0xaf+6673-0x1abe)==
+(0x20f+8817-0x2480)){iTemp=*(pcASC+i);if((iTemp>=((char)(0x2cc+4621-0x14a9)))&&(
+iTemp<=((char)(0x14f3+1262-0x19a8)))){*(pcHex+i/(0x201c+207-0x20e9))|=(UINT8)(
+iTemp-(0x12fc+4806-0x2592))<<(0x1ab5+1590-0x20e7);}else{*(pcHex+i/
+(0x1be0+1747-0x22b1))|=(UINT8)(iTemp-(0xb60+2977-0x16ca))<<(0x2bf+7304-0x1f43);}
+}else{iTemp=*(pcASC+i);if((iTemp>=((char)(0x571+3389-0x127e)))&&(iTemp<=
+((char)(0x108f+115-0x10c9)))){*(pcHex+i/(0x71a+3454-0x1496))|=iTemp-
+(0xd5c+6419-0x263f);}else{*(pcHex+i/(0xed2+3688-0x1d38))|=iTemp-
+(0x1892+3406-0x25a9);}}iOddOrEven++;}}SINT32 atPb_IfUcs2IsSMS7(UINT16*psUcs2,
+SINT32 iLength){int iRetVal=(0x1254+212-0x1327);char cTemp;int i=
+(0xaa1+3702-0x1917);if(NULL==psUcs2){return-(0x10d2+832-0x1411);}for(i=
+(0xb27+5158-0x1f4d);i<iLength;i++){if((0x11a+2148-0x87e)>psUcs2[i]){switch(
+psUcs2[i]){case(0x1a7b+653-0x1cfc):case(0x13ac+1612-0x199d):case
+(0x118+3180-0xd28):case(0x1d43+2041-0x24df):case(0x7e2+2374-0x10ca):case
+(0x484+8253-0x2446):case(0xb44+5153-0x1ee9):case(0xb8a+2849-0x162e):case
+(0x49b+3102-0x103b):case(0x5aa+1265-0x9f7):case(0x1527+524-0x1713):{break;}
+default:{cTemp=(char)G_ZPB_NEWUCS2TOGSM[psUcs2[i]];if(ZPB_NON_GSM==cTemp){
+iRetVal=(0x480+4883-0x1793);}break;}}}else{switch(psUcs2[i]){case
+(0xa7d+2296-0xfe1):case(0x3af+3037-0xbe6):case(0x1963+3335-0x22d7):case
+(0x933+3417-0x12f1):case(0x61a+1016-0x669):case(0x45b+2221-0x968):case
+(0x15cf+68-0x124b):case(0x4f3+2019-0x933):case(0xd34+1683-0x100f):case
+(0xdb3+4700-0x1c71):{break;}default:{iRetVal=(0x7ac+6568-0x2154);break;}}}if(
+(0x4b8+6625-0x1e99)==iRetVal){break;}}return iRetVal;}static UINT8
atPb_EncodeNameToUcs2(char*pbDst,UINT32 iDstLen,char const*pbSrc){UINT16 acHex[
-(0x2231+1082-0x256b)]={(0x682+1989-0xe47)};SINT32 srclen=(0x2021+87-0x2078);
-SINT32 rest=(0x1c83+1179-0x211e);assert(pbDst!=NULL&&pbSrc!=NULL);srclen=(SINT32
-)strlen(pbSrc);slog(PB_PRINT,SLOG_DEBUG,
+(0x488+8039-0x22ef)]={(0x2fd+1881-0xa56)};SINT32 srclen=(0x468+1882-0xbc2);
+SINT32 rest=(0xd0+436-0x284);assert(pbDst!=NULL&&pbSrc!=NULL);srclen=(SINT32)
+strlen(pbSrc);slog(PB_PRINT,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x50\x62\x5f\x45\x6e\x63\x6f\x64\x65\x4e\x61\x6d\x65\x54\x6f\x55\x63\x73\x32\x20\x69\x6e\x70\x75\x74\x20\x70\x73\x53\x72\x63\x3d\x25\x73\x2c\x69\x53\x72\x63\x4c\x65\x6e\x3d\x25\x64" "\n"
-,pbSrc,srclen);pb_AsctoHex(acHex,(0x1b49+1100-0x1e95),(UINT8*)pbSrc,srclen);rest
-=atPb_IfUcs2IsSMS7(acHex,srclen/(0x1f3b+1135-0x23a6));if(rest==
-(0xa00+2582-0x1415)){return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==
-(0x1462+661-0x16f7)){if(strlen(pbSrc)+(0x155+2012-0x92f)<iDstLen){memcpy(pbDst,
-"\x38\x30",(0x81f+528-0xa2d));memcpy(pbDst+(0xbe6+6931-0x26f7),pbSrc,srclen);
-return ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact
-const*pbRecv,BOOL pbNewFlag){SINT32 count=(0x578+7454-0x2295);SINT32 total=
-(0xc7a+6209-0x24bb);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
+,pbSrc,srclen);pb_AsctoHex(acHex,(0x1535+237-0x1522),(UINT8*)pbSrc,srclen);rest=
+atPb_IfUcs2IsSMS7(acHex,srclen/(0x249+1015-0x63c));if(rest==(0x748+7650-0x2529))
+{return atPb_EncodeText(pbDst,pbSrc,iDstLen);}else if(rest==(0x1740+337-0x1891))
+{if(strlen(pbSrc)+(0x317+5611-0x1900)<iDstLen){memcpy(pbDst,"\x38\x30",
+(0x30c+677-0x5af));memcpy(pbDst+(0x15a5+4200-0x260b),pbSrc,srclen);return
+ZUFI_SUCC;}}return ZUFI_FAIL;}SINT32 atPb_FindIdleIndex(T_zPb_WebContact const*
+pbRecv,BOOL pbNewFlag){SINT32 count=(0x6b1+2336-0xfd0);SINT32 total=
+(0x1e88+1188-0x232c);SINT32*IndexType=NULL;if((NULL==pbRecv)){slog(PB_PRINT,
SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3a\x74\x68\x65\x20\x70\x61\x72\x61\x20\x6f\x66\x20\x7a\x74\x65\x5f\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x20\x61\x72\x65\x20\x4e\x55\x4c\x4c" "\n"
-);return-(0xb1f+4091-0x1b19);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
-pbLocation){total=g_zPb_SimIndex[(0x122d+3507-0x1fe0)];IndexType=g_zPb_SimIndex;
-}else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
-(0x18cb+2039-0x20c2)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
+"\x70\x62\x3a\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3a\x74\x68\x65\x20\x70\x61\x72\x61\x20\x6f\x66\x20\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x20\x61\x72\x65\x20\x4e\x55\x4c\x4c" "\n"
+);return-(0x272+3578-0x106b);}if(TRUE==pbNewFlag){if(ZPB_LOCATION_USIM==pbRecv->
+pbLocation){total=g_zPb_SimIndex[(0xe94+5997-0x2601)];IndexType=g_zPb_SimIndex;}
+else if(ZPB_LOCATION_AP==pbRecv->pbLocation){total=g_zPb_ApIndex[
+(0xa0c+1571-0x102f)];IndexType=g_zPb_ApIndex;}for(;count<=total;count++){if((
NULL!=IndexType)&&(IndexType[count]==PBM_ERROR_NOT_FOUND)){break;}}if(count>
total){slog(PB_PRINT,SLOG_ERR,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x66\x69\x6e\x64\x20\x69\x6e\x64\x65\x78\x5f\x69\x64\x2c\x69\x6e\x64\x65\x78\x5f\x69\x64\x3d\x25\x64" "\n" "\x2e"
-,count);return-(0x6a3+2559-0x10a1);}slog(PB_PRINT,SLOG_DEBUG,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3a\x20\x69\x6e\x64\x65\x78\x5f\x69\x64\x3d\x25\x64\x2c\x20\x74\x6f\x74\x61\x6c\x20\x69\x73\x20\x25\x64" "\n"
+"\x70\x62\x3a\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3a\x63\x61\x6e\x20\x6e\x6f\x74\x20\x66\x69\x6e\x64\x20\x69\x6e\x64\x65\x78\x5f\x69\x64\x2c\x69\x6e\x64\x65\x78\x5f\x69\x64\x3d\x25\x64" "\n" "\x2e"
+,count);return-(0x1569+199-0x162f);}slog(PB_PRINT,SLOG_DEBUG,
+"\x70\x62\x3a\x66\x69\x6e\x64\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x3a\x20\x69\x6e\x64\x65\x78\x5f\x69\x64\x3d\x25\x64\x2c\x20\x74\x6f\x74\x61\x6c\x20\x69\x73\x20\x25\x64" "\n"
,count,total);return count;}else{return pbRecv->pbIndex;}}BOOL atPb_GetASCII(
-CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0x1675+680-0x191d);SINT32 i=
-(0xdb+1066-0x505);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x4ea+2512-0xeba)};CHAR str[
-(0x2382+134-0x2405)]={(0x6d5+6204-0x1f11)};SINT32 length=(0x1776+2664-0x21de);
-length=atPb_String2Bytes(pSrc,buf,len);for(i=(0x1231+4024-0x21e9);i<length;i+=
-(0x1573+1936-0x1d01)){if(buf[i]!=(0x11ec+2043-0x19e7)||buf[i+(0x1a0+2370-0xae1)]
->(0x109a+734-0x12f9)){return FALSE;}pDst[j++]=buf[i+(0x15bd+178-0x166e)];}return
+CHAR*pSrc,CHAR*pDst,SINT32 len){SINT32 j=(0xd+701-0x2ca);SINT32 i=
+(0x1ce7+795-0x2002);CHAR buf[ZPB_TEXT_SIZE_BYTES]={(0x251+543-0x470)};CHAR str[
+(0xc5b+4915-0x1f8b)]={(0x8fd+6813-0x239a)};SINT32 length=(0x11c7+2679-0x1c3e);
+length=atPb_String2Bytes(pSrc,buf,len);for(i=(0xda2+1104-0x11f2);i<length;i+=
+(0x10f8+1070-0x1524)){if(buf[i]!=(0x2516+163-0x25b9)||buf[i+(0x13af+682-0x1658)]
+>(0x2c4+8290-0x22a7)){return FALSE;}pDst[j++]=buf[i+(0x19a+5973-0x18ee)];}return
TRUE;}VOID atWeb_AddOrModOnePbUsim(T_zPb_WebContact*pWebPbContact,BOOL
-pbNewFlag,sem_t semId){int atRes=(0x1923+308-0x1a57);CHAR pbName[
-ZPB_TEXT_SIZE_BYTES+(0x10fc+1991-0x18c0)]={(0xcc+5059-0x148f)};CHAR buf_src[
-ZPB_TEXT_SIZE_BYTES+(0x4df+7616-0x229c)]={(0x3e3+8891-0x269e)};CHAR buf_dest[
-ZPB_TEXT_SIZE_BYTES+(0xcf6+1421-0x1280)]={(0x1b+2167-0x892)};T_zPb_ScpbwParam
-scpbwParam={(0xecf+4531-0x2082)};int len=(0x16b3+3796-0x2587);atPb_WebRecodeShow
+pbNewFlag,sem_t semId){int atRes=(0xbb9+6105-0x2392);CHAR pbName[
+ZPB_TEXT_SIZE_BYTES+(0xbe6+6904-0x26db)]={(0x128c+1668-0x1910)};CHAR buf_src[
+ZPB_TEXT_SIZE_BYTES+(0x17bb+1763-0x1e9b)]={(0x266+6377-0x1b4f)};CHAR buf_dest[
+ZPB_TEXT_SIZE_BYTES+(0xbaf+2405-0x1511)]={(0x1b41+340-0x1c95)};T_zPb_ScpbwParam
+scpbwParam={(0x2e5+3663-0x1134)};int len=(0x1165+4095-0x2164);atPb_WebRecodeShow
(pWebPbContact);if(atPb_GetASCII(pWebPbContact->name,pbName,strlen(pWebPbContact
-->name))){scpbwParam.coding=(0x1b44+1899-0x22af);}else{len=atPb_String2Bytes(
+->name))){scpbwParam.coding=(0xea1+5115-0x229c);}else{len=atPb_String2Bytes(
pWebPbContact->name,buf_src,strlen(pWebPbContact->name));len=
atpb_CvtUcs2ToAlphaField(buf_src,len,buf_dest);atPb_Bytes2String(buf_dest,pbName
-,len);scpbwParam.coding=(0x818+4568-0x19ef);}scpbwParam.pbIndex=pWebPbContact->
+,len);scpbwParam.coding=(0x1e0a+627-0x207c);}scpbwParam.pbIndex=pWebPbContact->
pbIndex;strncpy(scpbwParam.name,pbName,sizeof(scpbwParam.name)-
-(0x7f0+2983-0x1396));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
-sizeof(scpbwParam.mobilNumber)-(0x12ea+473-0x14c2));strncpy(scpbwParam.
+(0x11a8+2358-0x1add));strncpy(scpbwParam.mobilNumber,pWebPbContact->mobilNumber,
+sizeof(scpbwParam.mobilNumber)-(0x22a4+109-0x2310));strncpy(scpbwParam.
officeNumber,pWebPbContact->officeNumber,sizeof(scpbwParam.officeNumber)-
-(0x1c3d+2310-0x2542));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
-sizeof(scpbwParam.homeNumber)-(0x16e5+2794-0x21ce));strncpy(scpbwParam.email,
-pWebPbContact->email,sizeof(scpbwParam.email)-(0x181d+3384-0x2554));
+(0x9bf+6627-0x23a1));strncpy(scpbwParam.homeNumber,pWebPbContact->homeNumber,
+sizeof(scpbwParam.homeNumber)-(0x2fa+257-0x3fa));strncpy(scpbwParam.email,
+pWebPbContact->email,sizeof(scpbwParam.email)-(0xbc8+2397-0x1524));
ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,MSG_CMD_ADD_MODIFY_PB_REQ,sizeof(
-T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x17ba+1778-0x1eac));sem_wait(&
-g_Pb_sem_id);if(g_PbOptRsp.result!=(0x1a27+1858-0x2168)){(VOID)sc_cfg_set(
+T_zPb_ScpbwParam),(unsigned char*)&scpbwParam,(0x425+6434-0x1d47));sem_wait(&
+g_Pb_sem_id);if(g_PbOptRsp.result!=(0xeb4+3345-0x1bc4)){(VOID)sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);if(TRUE==pbNewFlag){printf(
"\x70\x62\x3a\x61\x64\x64\x20\x53\x63\x70\x62\x77\x20\x65\x72\x72\x6f\x72\x2e" "\n"
);}else{printf(
@@ -406,16 +409,16 @@
);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x70\x62\x3a\x57\x72\x69\x74\x65\x43\x6f\x6e\x74\x61\x63\x74\x54\x6f\x50\x62\x6d\x54\x61\x62\x6c\x65\x20\x65\x72\x72\x6f\x72\x2e" "\n"
);}}VOID atWeb_AddOnePb(T_zPb_WebContact*webPbContact,sem_t semId){SINT32
-idleIndex=(0x62a+1443-0xbcc);T_zPb_Header pbHeader={(0x877+3660-0x16c3)};BOOL
-pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0x5d0+5906-0x1ce2)};CHAR ptFlag[
-(0x921+5565-0x1eca)]={(0xf95+1258-0x147f)};printf(
+idleIndex=(0xacf+1959-0x1275);T_zPb_Header pbHeader={(0xfcc+3140-0x1c10)};BOOL
+pbNewFlag=FALSE;T_zPb_DelInfo delRecord={(0x152a+826-0x1864)};CHAR ptFlag[
+(0x159+2258-0xa17)]={(0x273+1776-0x963)};printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x2c\x20\x70\x62\x49\x64\x3d\x25\x64\x21" "\n"
-,webPbContact->pbId);if(-(0x69f+6537-0x2027)==webPbContact->pbId){slog(PB_PRINT,
-SLOG_DEBUG,
+,webPbContact->pbId);if(-(0x123b+3143-0x1e81)==webPbContact->pbId){slog(PB_PRINT
+,SLOG_DEBUG,
"\x70\x62\x3a\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x6e\x65\x77\x2e" "\n"
);pbNewFlag=TRUE;idleIndex=atPb_FindIdleIndex(webPbContact,pbNewFlag);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x69\x64\x6c\x65\x49\x6e\x64\x65\x78\x3d\x25\x64\x2e" "\n"
-,idleIndex);if(idleIndex!=-(0x4ad+7235-0x20ef)){webPbContact->pbIndex=idleIndex;
+,idleIndex);if(idleIndex!=-(0xdff+2524-0x17da)){webPbContact->pbIndex=idleIndex;
}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);printf(
"\x5b\x50\x42\x5d\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x66\x75\x6c\x6c\x2c\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x61\x64\x64\x20\x72\x65\x63\x6f\x64\x65\x20\x61\x6e\x79\x20\x6d\x6f\x72\x65\x2e" "\n"
);return;}}else{printf(
@@ -430,61 +433,61 @@
(ZPB_NV_WRITE_FLAG,ZPB_NEW_ERROR);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_OPERATE_SUC);}}else if(ZPB_LOCATION_USIM==webPbContact->pbLocation){
atWeb_AddOrModOnePbUsim(webPbContact,pbNewFlag,semId);}else{printf(
-"\x5b\x50\x42\x5d\x20\x7a\x74\x65\x5f\x77\x72\x69\x74\x65\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x3a\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x69\x73\x20\x4e\x55\x4c\x4c" "\n"
+"\x5b\x50\x42\x5d\x20\x77\x72\x69\x74\x65\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x3a\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x69\x73\x20\x4e\x55\x4c\x4c" "\n"
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x41\x64\x64\x4f\x6e\x65\x50\x62\x20\x64\x65\x6c\x5f\x69\x64\x3d\x25\x64\x2e" "\n"
,webPbContact->del_id);sc_cfg_get(ZPB_NV_WRITE_FLAG,ptFlag,sizeof(ptFlag));if(
-(0x30f+3707-0x118a)==strcmp("\x30",ptFlag)&&-(0xd6f+6404-0x2672)!=webPbContact->
-del_id){delRecord.delId[(0x8a2+6335-0x2161)]=webPbContact->del_id;atWeb_DelOnepb
+(0xcba+741-0xf9f)==strcmp("\x30",ptFlag)&&-(0x4c0+2114-0xd01)!=webPbContact->
+del_id){delRecord.delId[(0xea1+3487-0x1c40)]=webPbContact->del_id;atWeb_DelOnepb
(&delRecord,semId);}}VOID atWeb_DelOnepb(T_zPb_DelInfo*delRecord,sem_t semId){
-CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x67+1635-0x6ca)};int atRes=
-(0x856+7126-0x242c);SINT32 delTime=(0x1278+4-0x127c);atPb_GetLocationIndexForDel
-(delRecord,delTime);printf(
-"\x5b\x50\x42\x5d\x20\x7a\x74\x65\x5f\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x2d\x2d\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64" "\n"
-,delRecord->delIndex[(0x1b+3256-0xcd3)],delRecord->delLocation);if(
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x1187+3440-0x1ef7)};int atRes=
+(0x1d2+9099-0x255d);SINT32 delTime=(0xcd+5339-0x15a8);
+atPb_GetLocationIndexForDel(delRecord,delTime);printf(
+"\x5b\x50\x42\x5d\x20\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x2d\x2d\x64\x65\x6c\x20\x69\x6e\x64\x65\x78\x3d\x25\x64\x2c\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64" "\n"
+,delRecord->delIndex[(0x270+1503-0x84f)],delRecord->delLocation);if(
ZPB_LOCATION_AP==delRecord->delLocation){if(ZPB_DB_OK==atPb_DelARecFromPbmTable(
delRecord,delTime)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x44\x65\x6c\x4f\x6e\x65\x70\x62\x2d\x2d\x64\x65\x6c\x20\x41\x50\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return;}slog(PB_PRINT,SLOG_DEBUG,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x3a\x72\x65\x6d\x6f\x76\x65\x20\x72\x65\x63\x20\x66\x72\x6f\x6d\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x66\x61\x69\x6c\x65\x64" "\n"
+"\x70\x62\x3a\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x3a\x72\x65\x6d\x6f\x76\x65\x20\x72\x65\x63\x20\x66\x72\x6f\x6d\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x66\x61\x69\x6c\x65\x64" "\n"
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}else if(ZPB_LOCATION_USIM==
-delRecord->delLocation){CHAR pbMax[(0x8e1+7000-0x2407)]={(0x4f0+7593-0x2299)};
+delRecord->delLocation){CHAR pbMax[(0xa99+3411-0x17ba)]={(0x16bd+1288-0x1bc5)};
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));if((delRecord->delIndex[
-(0x1fef+946-0x23a1)]>=(0x3a5+3884-0x12d0))&&(delRecord->delIndex[
-(0x253+6036-0x19e7)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,
-MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->
-delIndex[(0xf1b+1471-0x14da)],(0x7a0+4354-0x18a2));sem_wait(&g_Pb_sem_id);if(
-g_PbOptRsp.result!=(0x14b8+4645-0x26dc)){sc_cfg_set(ZPB_NV_WRITE_FLAG,
-ZPB_DEL_ERROR);}sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}if(ZPB_DB_OK==
+(0x9b4+7376-0x2684)]>=(0x520+8087-0x24b6))&&(delRecord->delIndex[
+(0x186+340-0x2da)]<=atoi(pbMax))){ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL
+,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->delIndex[
+(0x75c+922-0xaf6)],(0x1850+309-0x1985));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.
+result!=(0x1122+2341-0x1a46)){sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}
+sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}if(ZPB_DB_OK==
atPb_DelARecFromPbmTable(delRecord,delTime)){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_OPERATE_SUC);printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x57\x65\x62\x5f\x44\x65\x6c\x4f\x6e\x65\x70\x62\x2d\x2d\x64\x65\x6c\x20\x53\x49\x4d\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return;}(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}else{slog(PB_PRINT,
SLOG_DEBUG,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x3a\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x69\x73\x20\x4e\x55\x4c\x4c" "\n"
+"\x70\x62\x3a\x64\x65\x6c\x5f\x61\x5f\x70\x62\x6d\x5f\x72\x65\x63\x6f\x72\x64\x3a\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x69\x73\x20\x4e\x55\x4c\x4c" "\n"
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}}VOID
atWeb_DelMultPb(T_zPb_DelInfo*delRecord,sem_t semId){CHAR errCode[
-ZSVR_AT_RES_CODE_LEN]={(0xe13+1369-0x136c)};int atRes=(0x2ac+6604-0x1c78);SINT32
- delCount=(0x1115+1124-0x1579);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
-g_zPb_DelStatusUsim,(0x1343+1342-0x1881),sizeof(T_zPb_DelStatusMultiOrAll));
+ZSVR_AT_RES_CODE_LEN]={(0xa07+294-0xb2d)};int atRes=(0x191+6236-0x19ed);SINT32
+delCount=(0xa03+1956-0x11a7);(VOID)sc_cfg_set(NV_PHO_DEL,"");memset(&
+g_zPb_DelStatusUsim,(0x868+2642-0x12ba),sizeof(T_zPb_DelStatusMultiOrAll));
g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_MULTI_RECORD_USIM;for(;delCount<delRecord->
delTotal;delCount++){slog(PB_PRINT,SLOG_DEBUG,
-"\x70\x62\x33\x3a\x64\x65\x6c\x49\x64\x5b\x25\x64\x5d\x3d\x25\x64\x2c\x7a\x74\x65\x5f\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x5b\x25\x64\x5d\x3d\x25\x64" "\n"
+"\x70\x62\x33\x3a\x64\x65\x6c\x49\x64\x5b\x25\x64\x5d\x3d\x25\x64\x2c\x64\x65\x6c\x5f\x70\x62\x6d\x5f\x69\x6e\x64\x65\x78\x5b\x25\x64\x5d\x3d\x25\x64" "\n"
,delCount,delRecord->delId[delCount],delCount,delRecord->delIndex[delCount]);
atPb_GetLocationIndexForDel(delRecord,delCount);if(ZPB_LOCATION_AP==delRecord->
delLocation){if(ZPB_DB_OK!=atPb_DelARecFromPbmTable(delRecord,delCount)){slog(
PB_PRINT,SLOG_DEBUG,
-"\x70\x62\x3a\x7a\x74\x65\x5f\x70\x62\x6d\x3a\x72\x65\x6d\x6f\x76\x65\x20\x74\x68\x65\x20\x69\x28\x25\x64\x29\x20\x72\x65\x63\x20\x66\x72\x6f\x6d\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x66\x61\x69\x6c\x65\x64" "\n"
+"\x70\x62\x3a\x70\x62\x6d\x3a\x72\x65\x6d\x6f\x76\x65\x20\x74\x68\x65\x20\x69\x28\x25\x64\x29\x20\x72\x65\x63\x20\x66\x72\x6f\x6d\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65\x20\x66\x61\x69\x6c\x65\x64" "\n"
,delCount);g_zPb_DelStatusUsim.dealFailNum++;continue;}g_zPb_DelStatusUsim.
dealSuccNum++;}else if(ZPB_LOCATION_USIM==delRecord->delLocation){CHAR pbMax[
-(0xbe5+5729-0x2214)]={(0x583+6694-0x1fa9)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,
-sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0xee9+924-0x1284))&&(
+(0x2084+1370-0x25ac)]={(0x179c+3782-0x2662)};sc_cfg_get(ZPB_NV_USIMINDEXMAX,
+pbMax,sizeof(pbMax));if((delRecord->delIndex[delCount]>=(0xb29+7029-0x269d))&&(
delRecord->delIndex[delCount]<=atoi(pbMax))){printf(
"\x70\x62\x39\x3a\x61\x74\x57\x65\x62\x5f\x44\x65\x6c\x4d\x75\x6c\x74\x50\x62\x3a\x72\x65\x6d\x6f\x76\x65\x20\x74\x68\x65\x20\x69\x6e\x64\x65\x78\x28\x25\x64\x29\x20\x72\x65\x63\x20\x66\x72\x6f\x6d\x20\x70\x62\x6d\x20\x74\x61\x62\x6c\x65" "\n"
,delRecord->delIndex[delCount]);ipc_send_message(MODULE_ID_PB,MODULE_ID_AT_CTL,
MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&delRecord->delIndex[delCount]
-,(0x166b+2940-0x21e7));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x1643+3985-0x25d3)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+,(0x9e6+498-0xbd8));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x232d+246-0x2422)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}else{g_zPb_DelStatusUsim.dealSuccNum++;
sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}}else{continue;}(VOID)
atPb_DelSimRecFromPbTable(delRecord->delIndex[delCount]);}else{slog(PB_PRINT,
@@ -492,14 +495,14 @@
"\x70\x62\x3a\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x69\x73\x20\x4e\x55\x4c\x4c" "\n"
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_LOCATION_IS_NULL);}}
atPb_SetDelStatusMultOrAll();}T_zPb_DbResult atPb_DelRecByGroup(VOID){
-T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0x6ec+2022-0xed2)};SINT32
-i=(0x5ab+4753-0x183b);result=atPb_DelRecFromPbmTableByGroup(&index);if(ZPB_DB_OK
-!=result){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return result;}(VOID
-)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(i=(0x7a9+6517-0x211d);i<=
-ZPB_AP_MAX_RECORD;i++){if((0x17e3+1540-0x1de7)!=index.apIndex[i]){g_zPb_ApIndex[
-(index.apIndex[i])]=PBM_ERROR_NOT_FOUND;}}return result;}VOID
-atPb_DelAllRecsSimDb(VOID){CHAR sql[ZPB_MAX_BYTES_DB]={(0x7b2+7650-0x2594)};
-snprintf(sql,sizeof(sql)-(0x1287+4834-0x2568),
+T_zPb_DbResult result=ZPB_DB_OK;T_zPb_ApIndex index={(0x25c+8500-0x2390)};SINT32
+ i=(0x1091+4169-0x20d9);result=atPb_DelRecFromPbmTableByGroup(&index);if(
+ZPB_DB_OK!=result){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return
+result;}(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);for(i=
+(0x849+3802-0x1722);i<=ZPB_AP_MAX_RECORD;i++){if((0xc1d+6553-0x25b6)!=index.
+apIndex[i]){g_zPb_ApIndex[(index.apIndex[i])]=PBM_ERROR_NOT_FOUND;}}return
+result;}VOID atPb_DelAllRecsSimDb(VOID){CHAR sql[ZPB_MAX_BYTES_DB]={
+(0xee2+3158-0x1b38)};snprintf(sql,sizeof(sql)-(0x7d7+523-0x9e1),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL,NULL)
){atPb_ClearSimPbmIndexArray();if(ZPB_DB_OK!=atPb_ExecDbSql(
@@ -508,28 +511,28 @@
);(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);return;}(VOID)sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);}else{(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,
ZPB_DEL_ERROR);}}VOID atPb_DelAllRecsSim(T_zPb_DelInfo*pdelRecord,sem_t semId){
-CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x1bed+2813-0x26ea)};int atRes=
-(0x11da+5379-0x26dd);UINT32 i=(0x6a5+3406-0x13f3);CHAR sql[ZPB_MAX_BYTES_DB]={
-(0x1a0d+3215-0x269c)};UINT32 count=(0x1658+843-0x19a3);if(pdelRecord!=NULL){
-memset(&g_zPb_DelStatusUsim,(0xb4b+2303-0x144a),sizeof(T_zPb_DelStatusMultiOrAll
-));g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM;snprintf(sql,sizeof(sql)
--(0x1202+631-0x1478),
+CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x19f+1382-0x705)};int atRes=
+(0x74+6425-0x198d);UINT32 i=(0x1e80+510-0x207e);CHAR sql[ZPB_MAX_BYTES_DB]={
+(0x7b0+2171-0x102b)};UINT32 count=(0xf9f+2723-0x1a42);if(pdelRecord!=NULL){
+memset(&g_zPb_DelStatusUsim,(0x1032+5454-0x2580),sizeof(
+T_zPb_DelStatusMultiOrAll));g_zPb_DelStatusUsim.dealFlag=ZPB_DEL_ALL_RECORD_USIM
+;snprintf(sql,sizeof(sql)-(0xb97+3106-0x17b8),
"\x73\x65\x6c\x65\x63\x74\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);(VOID)atPb_ExecDbSql(sql,
-atPb_DbCountTableLineCb,&count);if((0x132d+4179-0x2380)<count){CHAR pbMin[
-(0x1a0+7129-0x1d47)]={(0x4a+9367-0x24e1)};CHAR pbMax[(0x435+8556-0x256f)]={
-(0x1dc0+676-0x2064)};UINT32 i_pbMin=(0x1d9b+433-0x1f4c);UINT32 i_pbMax=
-(0x24d8+91-0x2533);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
+atPb_DbCountTableLineCb,&count);if((0x155+80-0x1a5)<count){CHAR pbMin[
+(0xc49+307-0xd4a)]={(0x1144+3784-0x200c)};CHAR pbMax[(0x12e7+4088-0x22ad)]={
+(0x2d9+7839-0x2178)};UINT32 i_pbMin=(0xd14+316-0xe50);UINT32 i_pbMax=
+(0x1f9+2023-0x9e0);sc_cfg_get(ZPB_NV_USIMINDEXMIN,pbMin,sizeof(pbMin));
sc_cfg_get(ZPB_NV_USIMINDEXMAX,pbMax,sizeof(pbMax));i_pbMin=atoi(pbMin);i_pbMax=
atoi(pbMax);if(i_pbMin>ZPB_SIM_MAX_RECORD||i_pbMax>ZPB_SIM_MAX_RECORD){printf(
"\x5b\x50\x42\x5d\x20\x61\x74\x50\x62\x5f\x44\x65\x6c\x41\x6c\x6c\x52\x65\x63\x73\x53\x69\x6d\x20\x73\x69\x6d\x20\x69\x6e\x64\x65\x78\x20\x74\x6f\x6f\x20\x6c\x61\x72\x67\x65" "\n"
);return;}for(i=i_pbMin;i<=i_pbMax;i++){ipc_send_message(MODULE_ID_PB,
MODULE_ID_AT_CTL,MSG_CMD_DELETE_PB_REQ,sizeof(int),(unsigned char*)&i,
-(0x8d2+3272-0x159a));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
-(0x1c2b+1371-0x2185)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
+(0xe0+8110-0x208e));sem_wait(&g_Pb_sem_id);if(g_PbOptRsp.result!=
+(0x954+4250-0x19ed)){g_zPb_DelStatusUsim.dealFailNum++;sc_cfg_set(
ZPB_NV_WRITE_FLAG,ZPB_DEL_ERROR);}else{g_zPb_DelStatusUsim.dealSuccNum++;
sc_cfg_set(ZPB_NV_USIMMEMORYFULL,"\x6e\x6f");}}snprintf(sql,sizeof(sql)-
-(0x2037+1576-0x265e),
+(0x13c8+171-0x1472),
"\x64\x65\x6c\x65\x74\x65\x20\x66\x72\x6f\x6d\x20\x25\x73\x20\x77\x68\x65\x72\x65\x20\x4c\x6f\x63\x61\x74\x69\x6f\x6e\x3d\x25\x64"
,ZPB_DB_PBM_TABLE,ZPB_LOCATION_USIM);if(ZPB_DB_OK==atPb_ExecDbSql(sql,NULL,NULL)
){(VOID)sc_cfg_set(ZPB_NV_WRITE_FLAG,ZPB_OPERATE_SUC);atPb_ClearSimPbmIndexArray
diff --git a/ap/app/zte_comm/rtc-service/rtc-service.c b/ap/app/zte_comm/rtc-service/rtc-service.c
index cae1f7e..c5baf65 100755
--- a/ap/app/zte_comm/rtc-service/rtc-service.c
+++ b/ap/app/zte_comm/rtc-service/rtc-service.c
@@ -301,7 +301,36 @@
*******************************************/
static int handle_get_time(MSG_BUF *pmsg_buf)
{
+ struct rtc_time rtc_tm = {0};
+ int ret = 0;
+ RTC_DATA_BUF * buf = pmsg_buf->aucDataBuf;
+
slog(RTC_PRINT, SLOG_DEBUG, "rtc-service: handle_get_time NOOPS.\n");
+
+ if(buf->cpu == RTC_CPU_CAP)
+ {
+ int cmd = RTC_MSG_GET_TIME;
+ RTC_DATA_BUF sendbuf = {0};
+ unsigned long cur_sec =0;
+
+ ret = ioctl(g_rtc_fd, RTC_RD_TIME, &rtc_tm);
+ slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: handle_get_time tm_year:%d, tm_mon:%d, tm_hour:%d, tm_min:%d, tm_yday:%d, tm_mday:%d, tm_wday:%d.\n",
+ rtc_tm.tm_year, rtc_tm.tm_mon, rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_yday, rtc_tm.tm_mday, rtc_tm.tm_wday);
+ slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: handle_get_time src_id:0x%x, buf->cpu:%d.\n",buf->srcModule,buf->cpu);
+
+ cur_sec = mktime(&rtc_tm);
+ sendbuf.srcModule = buf->srcModule;
+ sendbuf.cpu = RTC_CPU_AP;
+ sendbuf.ulSec = cur_sec;
+
+ slog(RTC_PRINT, SLOG_NORMAL, "[rtc] handle_get_time: send to cap cmd:0x%x, srcMod:0x%x, cur_sec:%lu \n", cmd, sendbuf.srcModule, sendbuf.ulSec);
+ ret = send_soc_msg(FAR_PS, MODULE_ID_RTC_SERVICE, cmd, sizeof(RTC_DATA_BUF), (void *)&sendbuf);
+ if (ret != 0)
+ {
+ slog(RTC_PRINT, SLOG_ERR, "rtc-service: ipc_send_message unexpected,ret:%d\n",ret);;
+ }
+ }
+
return 0;
}
@@ -369,7 +398,7 @@
memcpy(&pAlarm->rtc_tm, &rtc_tm, sizeof(rtc_tm));
pAlarm->rtc_id = buf->module;
- pAlarm->module_id = pmsg_buf->src_id;
+ pAlarm->module_id = buf->srcModule;
pAlarm->interval = buf->ulSec ; // count down time
pAlarm->remain_time = buf->ulSec; // remain count down time
pAlarm->wakeup = buf->wakeup;
@@ -480,9 +509,9 @@
list_for_each_entry_safe(pTmp, pTmp1, &rtc_timer_list, list) {
slog(RTC_PRINT, SLOG_DEBUG, "rtc-service: handle_alarm_del timer module:0x%x - 0x%x, src:0x%x - 0x%x.\n",
buf->module, pTmp->rtc_id, buf->srcModule, pTmp->module_id);
- if ((buf->module == pTmp->rtc_id) && (buf->srcModule == pTmp->module_id)) {
- slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: handle_alarm_del timer module:0x%x , src:0x%x \n",
- buf->module, buf->srcModule );
+ if ((buf->module == pTmp->rtc_id) && (buf->srcModule == pTmp->module_id)&& (buf->cpu == pTmp->cpu)) {
+ slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: handle_alarm_del timer module:0x%x , src:0x%x , cpu:%d \n",
+ buf->module, buf->srcModule, buf->cpu);
list_del(&pTmp->list);
free(pTmp);
break;
@@ -492,9 +521,9 @@
list_for_each_entry_safe(pTmp, pTmp1, &rtc_alarm_list, list) {
slog(RTC_PRINT, SLOG_DEBUG, "rtc-service: handle_alarm_del alarm module:0x%x - 0x%x, src:0x%x - 0x%x.\n",
buf->module, pTmp->rtc_id, buf->srcModule, pTmp->module_id);
- if ((buf->module == pTmp->rtc_id) && (buf->srcModule == pTmp->module_id)) {
- slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: handle_alarm_del alarm module:0x%x , src:0x%x \n",
- buf->module, buf->srcModule );
+ if ((buf->module == pTmp->rtc_id) && (buf->srcModule == pTmp->module_id)&& (buf->cpu == pTmp->cpu)) {
+ slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: handle_alarm_del alarm module:0x%x , src:0x%x , cpu:%d \n",
+ buf->module, buf->srcModule, buf->cpu);
wakeup = pTmp->wakeup;
list_del(&pTmp->list);
free(pTmp);
@@ -510,6 +539,24 @@
return 0;
}
+void send_ok_del_rsp(MSG_BUF *pmsg_buf)
+{
+ RTC_DATA_BUF * buf = pmsg_buf->aucDataBuf;
+
+ if(buf->cpu == RTC_CPU_CAP)
+ {
+ int ret = 0;
+ RTC_DATA_BUF sendbuf = {0};
+ sendbuf.cpu = RTC_CPU_AP;
+ sendbuf.module = buf->module;
+ sendbuf.srcModule = buf->srcModule;
+ ret = send_soc_msg(FAR_PS, MODULE_ID_RTC_SERVICE, RTC_MSG_DEL_ALARM, sizeof(RTC_DATA_BUF), (void *)&sendbuf);
+ if (ret != 0)
+ {
+ slog(RTC_PRINT, SLOG_ERR, "send_ok_del_rsp: failed,ret:%d\n",ret);
+ }
+ }
+}
/********************************************
*¹¦ÄÜ:¶¨Ê±Æ÷³¬Ê±´¦Àí
*******************************************/
@@ -557,12 +604,29 @@
wakeup = pAlarm->wakeup;
list_del(&pAlarm->list);
buf.module = pAlarm->rtc_id;
+ buf.srcModule = pAlarm->module_id;
slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: handle_alarm_timeout: target:0x%x, rtc_id:0x%x, utc:%d \n", pAlarm->module_id, buf.module, pAlarm->is_utc);
- ret = ipc_send_message2(MODULE_ID_RTC_SERVICE, pAlarm->module_id, RTC_MSG_ALARM_ELAPSED, sizeof(RTC_DATA_BUF), (unsigned char*)&buf, 0);
- if (ret != 0) {
- slog(RTC_PRINT, SLOG_ERR, "rtc-service: ipc_send_message unexpected\n");
+ if(pAlarm->cpu == RTC_CPU_AP)
+ {
+ ret = ipc_send_message2(MODULE_ID_RTC_SERVICE, pAlarm->module_id, RTC_MSG_ALARM_ELAPSED, sizeof(RTC_DATA_BUF), (unsigned char*)&buf, 0);
+ if (ret != 0) {
+ slog(RTC_PRINT, SLOG_ERR, "rtc-service: ipc_send_message unexpected,ret:%d\n",ret);
+ }
}
+ else
+ {
+ buf.module = pAlarm->rtc_id;
+ buf.srcModule = pAlarm->module_id;
+ buf.cpu = RTC_CPU_AP;
+ buf.is_utc = pAlarm->is_utc;
+ slog(RTC_PRINT, SLOG_NORMAL, "[rtc] handle_alarm_timeout: send to cap cmd:0x%x, srcMod:0x%x, module:0x%x, utc:%d \n", cmd, buf.srcModule, buf.module, pAlarm->is_utc);
+ ret = send_soc_msg(FAR_PS, MODULE_ID_RTC_SERVICE, cmd, sizeof(RTC_DATA_BUF), (void *)&buf);
+ if (ret != 0)
+ {
+ slog(RTC_PRINT, SLOG_ERR, "rtc-service: ipc_send_message unexpected,ret:%d\n",ret);;
+ }
+ }
if (pAlarm->is_utc == 0) {
alarm_adjust_value(pAlarm->remain_time);
alarm_fix_value(&rtc_timer_list);
@@ -865,6 +929,7 @@
slog(RTC_PRINT, SLOG_NORMAL, "rtc-service: process_msg RTC_MSG_DEL_ALARM, src:0x%x.\n", pmsg_buf->src_id);
update_timer_remain(0);
handle_alarm_del(pmsg_buf);
+ send_ok_del_rsp(pmsg_buf);
alarm_restart(&rtc_timer_list);
alarm_restart(&rtc_alarm_list);
break;
diff --git a/ap/app/zte_comm/rtc-service/zte-rtc-clock.c b/ap/app/zte_comm/rtc-service/zte-rtc-clock.c
index c4c31db..21e6650 100755
--- a/ap/app/zte_comm/rtc-service/zte-rtc-clock.c
+++ b/ap/app/zte_comm/rtc-service/zte-rtc-clock.c
@@ -34,7 +34,7 @@
stMsg.usDataLen = sizeof(struct rtc_time);
memcpy(stMsg.aucDataBuf, &cur_time, sizeof(time_t));
- printf("[zte-rtc-clock] send RTC_MSG_SET_TIME\n");
+ printf("[rtc-clock] send RTC_MSG_SET_TIME\n");
AGAIN:
ret = msgsnd(rtc_id, &stMsg, msgSize, 0);
if (ret < 0) {
@@ -54,7 +54,7 @@
stMsg.usMsgCmd = MSG_CMD_RTC_TIME_UPDATE;
stMsg.usDataLen = 0;
- printf("[zte-rtc-clock] send MSG_CMD_RTC_TIME_UPDATE\n");
+ printf("[rtc-clock] send MSG_CMD_RTC_TIME_UPDATE\n");
AGAIN1:
ret = msgsnd(wlan_id, &stMsg, msgSize, 0);
diff --git a/ap/app/zte_comm/sd_hotplug/sd_httpshare.c b/ap/app/zte_comm/sd_hotplug/sd_httpshare.c
index 00586d3..e58c4e7 100755
--- a/ap/app/zte_comm/sd_hotplug/sd_httpshare.c
+++ b/ap/app/zte_comm/sd_hotplug/sd_httpshare.c
@@ -8,7 +8,7 @@
char cmd[MAX_CMD_LEN] = {0};
if (!path) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_del_file null\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]del_file null\n");
return 0;
}
@@ -55,7 +55,7 @@
if(access("/sys/kernel/debug/mmc1/present", R_OK) != 0)
{
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug] zte_check_sdcard_exist file not exist!\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug] check_sdcard_exist file not exist!\n");
return ret;
}
@@ -66,7 +66,7 @@
fd = popen("cat /sys/kernel/debug/mmc1/present", "r");
if (fd == NULL) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_check_sdcard_exist popen file = NULL\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]check_sdcard_exist popen file = NULL\n");
return ret;
}
if (!feof(fd) && fgets(size_sd, sizeof(size_sd), fd) != NULL) {
@@ -75,7 +75,7 @@
pclose(fd);
- slog(SDCARD_PRINT, SLOG_DEBUG, "[sdcard-hotplug]zte_check_sdcard_exist :get size data = %d\n", ret);
+ slog(SDCARD_PRINT, SLOG_DEBUG, "[sdcard-hotplug]check_sdcard_exist :get size data = %d\n", ret);
return ret;
}
@@ -114,13 +114,13 @@
sleep(2);
return 1;
}
- slog(MISC_PRINT, SLOG_ERR,"[sdcard-hotplug]zte_httpshare_mount_sd %s error!\n", sd_path);
+ slog(MISC_PRINT, SLOG_ERR,"[sdcard-hotplug]httpshare_mount_sd %s error!\n", sd_path);
}
memset(cmd, 0, sizeof(cmd));
sprintf(cmd, "/bin/mount -t vfat %s %s", USB_DEV_SDCARD_PATH_BACK, SD_CARD_PATH);
if (0 != zxic_system(cmd)) {
- slog(MISC_PRINT, SLOG_ERR,"[sdcard-hotplug]zte_httpshare_mount_sd %s error!\n", USB_DEV_SDCARD_PATH_BACK);
+ slog(MISC_PRINT, SLOG_ERR,"[sdcard-hotplug]httpshare_mount_sd %s error!\n", USB_DEV_SDCARD_PATH_BACK);
return 0;
}
sleep(2);
@@ -135,7 +135,7 @@
//zte_httpshare_call_system("echo NULL > /sys/devices/platform/zx29_hsotg.0/gadget/lun1/file");
soft_system(cmd);
if (-1 == access(SD_CARD_PATH, F_OK)) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_mount_httpshare mmc2 no exist!\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]mount_httpshare mmc2 no exist!\n");
if(mkdir(SD_CARD_PATH, 0777) < 0) // cov M CHECKED_RETURN
{
@@ -144,7 +144,7 @@
return zte_httpshare_mount_sd();
} else {
//system("umount /mnt/jffs2/mmc2");
- slog(SDCARD_PRINT, SLOG_DEBUG, "[sdcard-hotplug]zte_mount_httpshare %s exist\n", SD_CARD_PATH);
+ slog(SDCARD_PRINT, SLOG_DEBUG, "[sdcard-hotplug]mount_httpshare %s exist\n", SD_CARD_PATH);
return zte_httpshare_mount_sd();
}
}
@@ -187,10 +187,10 @@
int zte_init_sdcard_path()
{
if (-1 == access(SD_CARD_PATH_PR, F_OK)) {
- slog(SDCARD_PRINT, SLOG_ERR, "zte_init_sdcard_path:%s does not exist, create it.\n", SD_CARD_PATH_PR);
+ slog(SDCARD_PRINT, SLOG_ERR, "init_sdcard_path:%s does not exist, create it.\n", SD_CARD_PATH_PR);
if (-1 == mkdir(SD_CARD_PATH_PR, 0777)) { /*lint !e1055*/
- slog(SDCARD_PRINT, SLOG_ERR, "zte_init_sdcard_path:failed to create %s.\n", SD_CARD_PATH_PR);
+ slog(SDCARD_PRINT, SLOG_ERR, "init_sdcard_path:failed to create %s.\n", SD_CARD_PATH_PR);
return ZTE_HTTPSHARE_FAILURE;
}
}
@@ -220,15 +220,15 @@
zte_httpshare_return_e_type zte_httpshare_check_and_creat_dir(char *path)
{
if (!path) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_check_and_creat_dir: check dir path null.\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_check_and_creat_dir: check dir path null.\n");
return ZTE_HTTPSHARE_FAILURE;
}
if (-1 == access(path, F_OK)) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_check_and_creat_dir:%s does not exist,socreate it.\n", ZTE_HTTPSHARE_DB_DIR);
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_check_and_creat_dir:%s does not exist,socreate it.\n", ZTE_HTTPSHARE_DB_DIR);
if (-1 == mkdir(path, 0777)) { /*lint !e1055*/
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_check_and_creat_dir:failed to create db dir.\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_check_and_creat_dir:failed to create db dir.\n");
return ZTE_HTTPSHARE_FAILURE;
}
}
@@ -241,13 +241,13 @@
int rc = 0;
if (NULL == db) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_db_open:invalide inputs.\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_db_open:invalide inputs.\n");
return ZTE_HTTPSHARE_DB_ERROR_INVAILD_PTR;
}
rc = sqlite3_open(ZTE_HTTPSHARE_DB_PATH, &tmp_db);
if (rc) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_db_open:can not open db,sqlite3_errmsg:%s\n", sqlite3_errmsg(tmp_db));
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_db_open:can not open db,sqlite3_errmsg:%s\n", sqlite3_errmsg(tmp_db));
(void)sqlite3_close(tmp_db);
return ZTE_HTTPSHARE_DB_ERROR_NOT_OPEN_DB;
}
@@ -260,12 +260,12 @@
int rc = 0;
if (NULL == db) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_db_close:invalide inputs.\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_db_close:invalide inputs.\n");
return ZTE_HTTPSHARE_DB_ERROR_INVAILD_PTR;
}
rc = sqlite3_close(db);
if (rc) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_db_close:can not close db.\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_db_close:can not close db.\n");
return ZTE_HTTPSHARE_DB_ERROR;
}
return ZTE_HTTPSHARE_DB_OK;
@@ -277,18 +277,18 @@
int rc = 0;
if (NULL == sql) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_db_exec_sql:invalide inputs.\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_db_exec_sql:invalide inputs.\n");
return ZTE_HTTPSHARE_DB_ERROR_INVAILD_PTR;
}
if (0 != zte_httpshare_db_open(&db)) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_db_exec_sql:open httpshare.db failed.\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_db_exec_sql:open httpshare.db failed.\n");
return ZTE_HTTPSHARE_DB_ERROR_NOT_OPEN_DB;
}
rc = sqlite3_exec(db, sql, callback, fvarg, NULL);
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_db_exec_sql:%s rc=%d\n", sql, rc);
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_db_exec_sql:%s rc=%d\n", sql, rc);
if (rc) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_db_exec_sql:can not exec sql,sqlite3_errmsg:%s.\n", sqlite3_errmsg(db));
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_db_exec_sql:can not exec sql,sqlite3_errmsg:%s.\n", sqlite3_errmsg(db));
(void)sqlite3_close(db);
return ZTE_HTTPSHARE_DB_ERROR;
}
@@ -305,7 +305,7 @@
result = zte_httpshare_db_exec_sql(ZTE_CREATE_TABLE_HTTPSHARE_SQL, NULL, NULL);
if (ZTE_HTTPSHARE_DB_OK != result) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_create_table:create httpshare table result is %d\n", result);
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_create_table:create httpshare table result is %d\n", result);
return result;
}
return result;
@@ -318,18 +318,18 @@
/*ºËʵÐèÒªµÄ·¾¶Ä¿Â¼ÊÇ·ñ´æÔÚ£¬²»´æÔÚÔò´´½¨*/
if (ZTE_HTTPSHARE_SUCCESS != zte_init_sdcard_path()) {
- slog(SDCARD_PRINT, SLOG_ERR, "zte_httpshare_init:%s does not exist.\n", SD_CARD_PATH_PR);
+ slog(SDCARD_PRINT, SLOG_ERR, "httpshare_init:%s does not exist.\n", SD_CARD_PATH_PR);
return;
}
/*´´½¨httpshareµÄdb·¾¶*/
if (ZTE_HTTPSHARE_SUCCESS != zte_httpshare_check_and_creat_dir(ZTE_HTTPSHARE_DB_DIR)) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_init:zte_httpshare_check_and_creat_dir ZTE_HTTPSHARE_DB_DIR fail!\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_init:httpshare_check_and_creat_dir HTTPSHARE_DB_DIR fail!\n");
return;
}
/*´´½¨httpshareµÄ±íÏî*/
if (ZTE_HTTPSHARE_DB_OK != zte_httpshare_create_table()) {
- slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]zte_httpshare_init:zte_httpshare_create_table fail!\n");
+ slog(SDCARD_PRINT, SLOG_ERR, "[sdcard-hotplug]httpshare_init:httpshare_create_table fail!\n");
return;
}
diff --git a/ap/app/zte_comm/sms/src/sms_code.c b/ap/app/zte_comm/sms/src/sms_code.c
index 1500828..839727c 100755
--- a/ap/app/zte_comm/sms/src/sms_code.c
+++ b/ap/app/zte_comm/sms/src/sms_code.c
@@ -6,661 +6,666 @@
#ifdef WIN32
#include <wchar.h>
#endif
-#define NON_GSM (0x8d7+5865-0x1fa0)
+#define NON_GSM (0xb6c+1270-0x1042)
#define NON_GSM_P NON_GSM
extern T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;static const wms_udh_s_type*
-const_header;char g_zUfiSms_DigAscMap[(0x8dc+7720-0x26f4)]={
-((char)(0x202+277-0x2e7)),((char)(0xf90+2141-0x17bc)),((char)(0x30f+3202-0xf5f))
-,((char)(0x1395+3960-0x22da)),((char)(0x10c+8215-0x20ef)),
-((char)(0x22f+6530-0x1b7c)),((char)(0x80d+2037-0xfcc)),
-((char)(0x2222+446-0x23a9)),((char)(0xa83+4207-0x1aba)),
-((char)(0x267+4358-0x1334)),((char)(0x307+160-0x366)),((char)(0x745+732-0x9df)),
-((char)(0x126+5487-0x1652)),((char)(0x1667+3464-0x23ab)),
-((char)(0xf35+4999-0x2277)),((char)(0x9cb+1406-0xf03))};extern SMS_PARAM
-g_zUfiSms_SendingSms;extern UINT16 g_zUfiSms_IsLanguageShift;extern int
-g_zUfiSms_Language;static int SerializeNumbers_sms(const char*pSrc,char*pDst,int
- nSrcLength);const unsigned short g_zUfiSms_AsciiToGsmdefaultTable[]={
-((char)(0x2223+831-0x2542)),((char)(0x15b+1071-0x56a)),
-((char)(0x19ed+14-0x19db)),((char)(0x22f+1323-0x73a)),
-((char)(0x10d1+1036-0x14bd)),((char)(0xbfd+177-0xc8e)),
-((char)(0x516+2703-0xf85)),((char)(0x343+2559-0xd22)),
-((char)(0x1de6+385-0x1f47)),((char)(0x65d+1382-0xba3)),
-((char)(0x1299+2124-0x1ac5)),((char)(0x12e4+4493-0x2451)),
-((char)(0x21ff+925-0x257c)),((char)(0x2af+8234-0x22b9)),
-((char)(0x113+4284-0x11af)),((char)(0xa82+198-0xb28)),
-((char)(0x1dd8+1427-0x234b)),((char)(0x1778+223-0x1837)),
-((char)(0xe2+3484-0xe5e)),((char)(0x14f5+184-0x158d)),
-((char)(0x39d+7405-0x206a)),((char)(0x37a+3177-0xfc3)),
-((char)(0x412+1428-0x986)),((char)(0xaa3+6728-0x24cb)),
-((char)(0x1ecc+1689-0x2545)),((char)(0xcda+2065-0x14cb)),
-((char)(0x1ebb+855-0x21f2)),((char)(0x595+3685-0x13da)),
-((char)(0x1a06+2961-0x2577)),((char)(0x101f+525-0x120c)),
-((char)(0x1cf+6303-0x1a4e)),((char)(0x39d+4202-0x13e7)),
-((char)(0x103a+4176-0x206a)),((char)(0x1ea6+1153-0x2306)),(0x21b8+472-0x236e),
-((char)(0x38d+6900-0x1e5e)),(0x6c6+5521-0x1c55),((char)(0x1555+4383-0x264f)),
-((char)(0x12a0+2100-0x1aae)),(0x3c8+391-0x528),((char)(0x9fd+6374-0x22bb)),
-((char)(0x788+4449-0x18c0)),((char)(0xad+5081-0x145c)),
-((char)(0x1d2+8734-0x23c5)),((char)(0x430+3905-0x1345)),
-((char)(0x3e8+4502-0x1551)),((char)(0x735+6940-0x2223)),
-((char)(0x675+2647-0x109d)),((char)(0x167d+2077-0x1e6a)),
-((char)(0x1dd+3832-0x10a4)),((char)(0x799+7202-0x2389)),
-((char)(0x9fb+7199-0x25e7)),((char)(0x5fc+1697-0xc69)),
-((char)(0x2084+247-0x2146)),((char)(0x25f+963-0x5ec)),
-((char)(0x1477+4082-0x2432)),((char)(0xd21+606-0xf47)),
-((char)(0xc7c+3845-0x1b48)),((char)(0xa98+2316-0x136a)),
-((char)(0xa22+1261-0xed4)),((char)(0x79b+3351-0x1476)),
-((char)(0x1294+1775-0x1946)),((char)(0x9b7+4396-0x1aa5)),
-((char)(0xb84+3694-0x19b3)),(0x703+4947-0x1a56),((char)(0x2eb+1329-0x7db)),
-((char)(0x15a+5238-0x158e)),((char)(0x12e4+2159-0x1b10)),
-((char)(0x1147+1197-0x15b0)),((char)(0x40f+7923-0x22bd)),
-((char)(0x24f0+267-0x25b5)),((char)(0x9f5+4411-0x1ae9)),
-((char)(0xc68+703-0xedf)),((char)(0x587+7113-0x2107)),
-((char)(0x142+8592-0x2288)),((char)(0x1c80+1677-0x22c2)),
-((char)(0x11ed+3935-0x2100)),((char)(0x6c5+6011-0x1df3)),
-((char)(0x1ec+7063-0x1d35)),((char)(0xff1+2358-0x18d8)),
-((char)(0x77d+4021-0x16e2)),((char)(0x10d9+4465-0x21f9)),
-((char)(0x1f82+566-0x2166)),((char)(0x8a9+2063-0x1065)),
-((char)(0x75c+2661-0x116d)),((char)(0x14f4+1682-0x1b31)),
-((char)(0x9b0+6679-0x2371)),((char)(0xbd9+6717-0x25bf)),
-((char)(0x971+2494-0x12d7)),((char)(0x79d+4555-0x190f)),
-((char)(0x520+445-0x683)),(0x225b+1208-0xbd7),6959,6974,6932,
-(0x1380+3471-0x20fe),((char)(0x8a5+4200-0x18ed)),((char)(0x790+2516-0x1103)),
-((char)(0x1a9+9312-0x25a7)),((char)(0x708+1639-0xd0c)),
-((char)(0x218+5610-0x179e)),((char)(0x119c+1346-0x1679)),
-((char)(0x1561+896-0x187b)),((char)(0xd19+1444-0x1256)),
-((char)(0x11b+4136-0x10db)),((char)(0x74f+3172-0x134a)),
-((char)(0x4bc+8116-0x2406)),((char)(0xf6d+1464-0x14ba)),
-((char)(0xd50+4981-0x2059)),((char)(0xde8+1978-0x1535)),
-((char)(0x734+5766-0x1d4c)),((char)(0xdd8+1255-0x1250)),
-((char)(0xf9+3316-0xd7d)),((char)(0x11cb+1511-0x1741)),
-((char)(0x117d+4107-0x2116)),((char)(0x7c7+4479-0x18d3)),
-((char)(0x664+1122-0xa52)),((char)(0x1ef9+288-0x1fa4)),
-((char)(0x9a6+3561-0x1719)),((char)(0x1a7+5761-0x17b1)),
-((char)(0x29f+3757-0x10d4)),((char)(0xfa1+2215-0x17cf)),
-((char)(0x8ca+4899-0x1b73)),6952,(0x1d9f+8703-0x245e),(0x1c45+9185-0x24fd),
-(0x2266+1615-0xd78),((char)(0xd5b+3011-0x18fe)),((char)(0x51b+5392-0x1a0b)),
-((char)(0x1d05+1759-0x23c4)),((char)(0x140b+4613-0x25f0)),
-((char)(0x1434+676-0x16b8)),((char)(0x18fb+1962-0x2085)),
-((char)(0x91d+3091-0x1510)),((char)(0x9b7+6176-0x21b7)),
-((char)(0x1720+3627-0x252b)),((char)(0x98+4423-0x11bf)),
-((char)(0x143a+3441-0x218b)),((char)(0x1919+187-0x19b4)),((char)(0xd8a+5-0xd6f))
-,((char)(0x8ba+459-0xa65)),((char)(0x1c15+2295-0x24ec)),
-((char)(0x1eb2+1163-0x231d)),((char)(0x14d3+3571-0x22a6)),
-((char)(0x8ca+6903-0x23a1)),((char)(0x11f6+2101-0x1a0b)),
-((char)(0x459+6657-0x1e3a)),((char)(0x4b4+7505-0x21e5)),
-((char)(0x22c6+805-0x25cb)),((char)(0xa38+2290-0x130a)),
-((char)(0x10d5+883-0x1428)),((char)(0x1f41+1179-0x23bc)),
-((char)(0x46+2542-0xa14)),((char)(0xba1+4261-0x1c26)),((char)(0xa5c+678-0xce2)),
-((char)(0x193+5068-0x153f)),((char)(0x1299+3256-0x1f31)),
-((char)(0x1c5+2238-0xa63)),((char)(0x19a4+2561-0x2385)),
-((char)(0x1e3+6226-0x1a15)),((char)(0x1050+1217-0x14f1)),(0x881+2765-0x130e),
-((char)(0x90b+6537-0x2274)),(0x1267+3096-0x1e7e),(0x1d6a+1605-0x238b),
-(0x14c+3307-0xe34),((char)(0x95a+3306-0x1624)),(0x1297+5271-0x26cf),
-((char)(0xef4+1810-0x15e6)),((char)(0x2341+554-0x254b)),
-((char)(0xc04+3280-0x18b4)),((char)(0x1fb1+1368-0x24e9)),
-((char)(0x1e56+1030-0x223c)),((char)(0x126c+2170-0x1ac6)),
-((char)(0x1844+534-0x1a3a)),((char)(0x6c8+7022-0x2216)),
-((char)(0x123f+1531-0x181a)),((char)(0x6f7+1228-0xba3)),
-((char)(0x1b77+1218-0x2019)),((char)(0x11bd+1758-0x187b)),
-((char)(0xf3f+4622-0x212d)),((char)(0x574+883-0x8c7)),
-((char)(0x1931+190-0x19cf)),((char)(0x6ca+1215-0xb69)),(0x62a+7350-0x22d5),
-((char)(0xd0+1219-0x573)),((char)(0x1194+3050-0x1d5e)),((char)(0xdf9+468-0xfad))
-,((char)(0x1064+2875-0x1b7f)),((char)(0x6e7+8108-0x2673)),
-((char)(0x12d0+4365-0x23bd)),(0x362+4228-0x1386),((char)(0xb79+5471-0x20b8)),
-((char)(0x1d50+676-0x1fd4)),((char)(0xfdf+4818-0x2291)),
-((char)(0x2060+1212-0x24fc)),(0x349+2511-0xcbd),(0x1d24+323-0x1e59),
-(0x9ab+1930-0x1119),(0x646+6612-0x2011),((char)(0x1276+2332-0x1b72)),
-(0x189a+1832-0x1fa3),((char)(0x409+954-0x7a3)),((char)(0x273+6166-0x1a69)),
-((char)(0x7d0+2265-0x1089)),((char)(0xb53+6199-0x236a)),
-((char)(0x7bd+5326-0x1c6b)),((char)(0x16c9+812-0x19d5)),
-((char)(0xa46+7027-0x2599)),(0x1402+833-0x16e6),((char)(0x76+4552-0x121e)),
-((char)(0xbef+5838-0x229d)),((char)(0x8a1+5965-0x1fce)),
-((char)(0x911+5752-0x1f69)),(0x24db+620-0x26eb),((char)(0x2fc+2859-0xe07)),
-((char)(0x1f7c+1908-0x26d0)),((char)(0xf1+7880-0x1f99)),
-((char)(0x688+5998-0x1dd6)),((char)(0x436+882-0x788)),(0x1b1f+2057-0x22ca),
-((char)(0x24d+5423-0x175c)),((char)(0x14f2+4093-0x24cf)),(0xb32+1839-0x1243),
-(0x9a6+5255-0x1dae),((char)(0x303+5049-0x169c)),((char)(0x10b0+1554-0x16a2)),
-((char)(0x1512+3050-0x20dc)),(0x267+3294-0xeca),(0x56f+3676-0x13bc),
-(0x389+7656-0x2154),((char)(0x12a1+3222-0x1f17)),(0x12b2+1063-0x16d5),
-(0x8f4+6931-0x2402),((char)(0x1177+4990-0x24d5)),((char)(0x2158+566-0x236e)),
-(0x110a+3754-0x1fad),((char)(0x646+492-0x812)),((char)(0x841+3622-0x1647)),
-((char)(0x805+1951-0xf84)),((char)(0x3d7+6512-0x1d27)),(0x1195+515-0x131b),
-(0x948+379-0xabb),((char)(0xabf+3439-0x180e)),((char)(0x255+617-0x49e)),
-((char)(0xf3f+1219-0x13e2)),(0x1311+2794-0x1d7f),((char)(0x1a73+2030-0x2241)),
-(0x16ba+2009-0x1e87),(0x1cdf+1107-0x212c),((char)(0xde2+5092-0x21a6)),
-((char)(0x59d+1382-0xae3)),(0x7af+5993-0x1e9a),((char)(0xaa6+3808-0x1966)),
-((char)(0xbc4+6886-0x268a)),((char)(0x851+5475-0x1d94)),};const unsigned short
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0x648+3759-0x14f5)]={{
-(0x170d+1514-0x1cee),(0xdda+802-0x1015)},{(0x11da+5096-0x25b8),
-(0x16a3+2474-0x2041)},{(0x618+3705-0x1484),(0x1203+498-0x13e8)},{
-(0x2c+5214-0x1476),(0xf2c+5097-0x22b7)},{(0x43a+5107-0x1805),(0x528+2445-0xe3a)}
-,{(0xfdc+2735-0x1a62),(0x1027+4069-0x1f8f)},{(0x1e08+309-0x1f0e),
-(0x521+2428-0xe41)},{(0x40d+789-0x6e6),(0x1a1f+2783-0x24a3)},{
-(0x19b2+645-0x1bfa),(0x1d1+6533-0x1ad8)},{(0x1984+2246-0x220c),(0x17d+279-0x237)
-},{(0x1996+1066-0x1d80),(0x13f6+4952-0x26d2)},{(0x1033+1756-0x16ce),
-(0x5ed+7570-0x22be)},{(0x13b4+2761-0x1e34),(0xbc1+2770-0x15c6)},{
-(0x611+2406-0xf28),(0x15b+6484-0x19dc)},{(0x130c+2669-0x1d24),
-(0xc28+5355-0x2039)},{(0x2f7+612-0x4fa),(0x3e4+4409-0x143c)},{
-(0x10ac+107-0x10b2),8364},{(0x9dc+889-0xcec),(0x581+8760-0x26cc)},{
-(0x4b7+218-0x522),(0x13bb+3962-0x2242)},{(0xfa0+2307-0x182e),(0xf83+1076-0x12bd)
-},};const unsigned short Ucs2_To_Gsm7_SPANISH_Table_UCS[][(0xa8+6656-0x1aa6)]={{
-(0x7e8+1188-0xc7c),(0x47d+2565-0xaee)},{(0x1656+214-0x171a),(0x1656+2282-0x1b9a)
-},{(0x315+6202-0x1b3c),(0x11ef+419-0xfff)},{(0x6d4+6261-0x1f35),
-(0x16f1+348-0x14b2)},{(0x31d+4253-0x13a5),(0x463+4346-0x11b4)},{
-(0xa89+5676-0x209f),(0x1241+2489-0x185a)},{(0x21c+6387-0x1af8),
-(0x62d+8701-0x2482)},{(0x442+880-0x79a),(0xe59+4257-0x1b57)},{
-(0xf9b+1540-0x1586),(0x8e9+4127-0x1570)},{(0x1e34+604-0x2076),
-(0x1243+4054-0x1e7b)},};const unsigned char Ucs2_To_Gsm7_SPANISH_Table_ASC[]={
+const_header;char g_zUfiSms_DigAscMap[(0x162+23-0x169)]={
+((char)(0x1780+3113-0x2379)),((char)(0x7d8+7672-0x259f)),
+((char)(0x44a+611-0x67b)),((char)(0xd21+4838-0x1fd4)),((char)(0x53+4610-0x1221))
+,((char)(0x150+3370-0xe45)),((char)(0xb4c+2922-0x1680)),
+((char)(0xbd7+5814-0x2256)),((char)(0x168+6324-0x19e4)),
+((char)(0x11fc+1867-0x190e)),((char)(0x13b5+1010-0x1766)),
+((char)(0x633+7438-0x22ff)),((char)(0x72a+4789-0x199c)),
+((char)(0xa81+4746-0x1cc7)),((char)(0x14c9+3707-0x22ff)),
+((char)(0x1c08+1817-0x22db))};extern SMS_PARAM g_zUfiSms_SendingSms;extern
+UINT16 g_zUfiSms_IsLanguageShift;extern int g_zUfiSms_Language;static int
+SerializeNumbers_sms(const char*pSrc,char*pDst,int nSrcLength);const unsigned
+short g_zUfiSms_AsciiToGsmdefaultTable[]={((char)(0xc56+6295-0x24cd)),
+((char)(0xbb6+634-0xe10)),((char)(0x1d77+1144-0x21cf)),
+((char)(0x8d5+3508-0x1669)),((char)(0x18f6+2343-0x21fd)),
+((char)(0x1416+3723-0x2281)),((char)(0x1994+2527-0x2353)),
+((char)(0x406+5283-0x1889)),((char)(0x664+3908-0x1588)),
+((char)(0xe22+3845-0x1d07)),((char)(0xdb4+5057-0x2155)),((char)(0x568+26-0x562))
+,((char)(0x1073+646-0x12d9)),((char)(0x1845+1441-0x1dc6)),
+((char)(0x1d0c+1949-0x2489)),((char)(0x2ca+2716-0xd46)),
+((char)(0x18a6+3091-0x2499)),((char)(0xb4d+6907-0x2628)),
+((char)(0xaa2+2784-0x1562)),((char)(0x1a8a+2633-0x24b3)),
+((char)(0x13b2+4822-0x2668)),((char)(0x1f6+4060-0x11b2)),
+((char)(0x1320+2412-0x1c6c)),((char)(0x19f1+1022-0x1dcf)),
+((char)(0x133+818-0x445)),((char)(0x603+3856-0x14f3)),
+((char)(0xa9b+2252-0x1347)),((char)(0x1b67+302-0x1c75)),
+((char)(0x10f5+2968-0x1c6d)),((char)(0x6a1+6988-0x21cd)),
+((char)(0x9d+3114-0xca7)),((char)(0x90f+5673-0x1f18)),
+((char)(0x1187+3364-0x1e8b)),((char)(0xb1c+5189-0x1f40)),(0x7d8+5942-0x1eec),
+((char)(0xa61+6590-0x23fc)),(0xc94+962-0x1054),((char)(0x1112+147-0x1180)),
+((char)(0x673+8345-0x26e6)),(0x1379+361-0x14bb),((char)(0xf35+6104-0x26e5)),
+((char)(0x2510+326-0x262d)),((char)(0xea6+6017-0x25fd)),
+((char)(0x1455+1527-0x1a21)),((char)(0xfc5+1956-0x173d)),
+((char)(0x1057+993-0x140b)),((char)(0x1089+4903-0x2382)),
+((char)(0xd81+4789-0x2007)),((char)(0x1d3+573-0x3e0)),((char)(0x45b+543-0x649)),
+((char)(0x189+1749-0x82c)),((char)(0xd65+1739-0x13fd)),
+((char)(0x18f5+975-0x1c90)),((char)(0x844+7132-0x23eb)),
+((char)(0xe5+4494-0x123d)),((char)(0x496+8664-0x2637)),
+((char)(0x1f0+3500-0xf64)),((char)(0x12d+195-0x1b7)),((char)(0x49d+4088-0x145b))
+,((char)(0x2e1+6320-0x1b56)),((char)(0xb8d+6248-0x23b9)),
+((char)(0x1098+1693-0x16f8)),((char)(0x1490+2377-0x1d9b)),
+((char)(0x1705+462-0x1894)),(0x187+6867-0x1c5a),((char)(0x147d+4761-0x26d5)),
+((char)(0x5f5+2612-0xfe7)),((char)(0x1abb+2447-0x2407)),
+((char)(0xb87+1836-0x126f)),((char)(0x135f+2644-0x1d6e)),
+((char)(0x38b+1531-0x940)),((char)(0xb0+7435-0x1d74)),
+((char)(0xa29+2966-0x1577)),((char)(0x1adf+3122-0x26c8)),
+((char)(0x1a59+2623-0x244e)),((char)(0x8f7+7149-0x2499)),
+((char)(0x1d14+39-0x1cef)),((char)(0x383+1624-0x98e)),
+((char)(0x1a3c+110-0x1a5c)),((char)(0x1da9+244-0x1e4e)),
+((char)(0x1c28+358-0x1d3e)),((char)(0x128+2017-0x8b8)),
+((char)(0xa86+1412-0xfb8)),((char)(0x122b+474-0x13b2)),
+((char)(0xa26+6503-0x2339)),((char)(0x16a5+88-0x16a8)),
+((char)(0x168a+3988-0x25c8)),((char)(0x95c+3895-0x183c)),
+((char)(0x4cc+5988-0x1bd8)),((char)(0xac3+2237-0x1327)),
+((char)(0x836+7209-0x2405)),6972,(0x2527+2676-0x146c),(0x1f46+5421-0x1935),
+(0x1bb2+8004-0x1fe2),(0x91b+858-0xc64),((char)(0x184d+238-0x191b)),
+((char)(0x7ab+7239-0x2391)),((char)(0x21f0+1106-0x25e0)),
+((char)(0x567+6831-0x1fb3)),((char)(0x135c+3572-0x20ec)),
+((char)(0x1a4f+3165-0x2647)),((char)(0x4ac+3196-0x10c2)),
+((char)(0xb19+4576-0x1c92)),((char)(0x135+4159-0x110c)),
+((char)(0x11c8+1057-0x1580)),((char)(0x639+7042-0x2151)),
+((char)(0x177f+120-0x178c)),((char)(0xc5c+788-0xf04)),
+((char)(0x3e8+3295-0x105a)),((char)(0x1114+4056-0x207e)),
+((char)(0x16c4+392-0x17dd)),((char)(0x382+7190-0x1f28)),
+((char)(0x18ab+1002-0x1c24)),((char)(0xaf6+5605-0x2069)),
+((char)(0x314+5708-0x18ed)),((char)(0xe7b+6347-0x26d2)),
+((char)(0x1c06+2435-0x2514)),((char)(0x325+2537-0xc98)),
+((char)(0x2b9+5709-0x188f)),((char)(0x1017+1457-0x1550)),
+((char)(0x46f+1557-0xa0b)),((char)(0x142+961-0x489)),(0x2375+4987-0x1bc8),
+(0x1c52+114-0x184),(0x1d23+5167-0x1629),(0x25c7+3007-0x1649),
+((char)(0x1573+749-0x1840)),((char)(0x1a53+1211-0x1eee)),
+((char)(0xaa+2037-0x87f)),((char)(0xe2c+2478-0x17ba)),
+((char)(0x170a+127-0x1769)),((char)(0x1369+3726-0x21d7)),
+((char)(0x1ea+4964-0x152e)),((char)(0x5cd+140-0x639)),
+((char)(0x3f0+4979-0x1743)),((char)(0xd10+4311-0x1dc7)),
+((char)(0x1b95+2469-0x251a)),((char)(0x17b6+3759-0x2645)),
+((char)(0x14c5+1013-0x189a)),((char)(0x193+6062-0x1921)),
+((char)(0x63a+4173-0x1667)),((char)(0x78f+2440-0x10f7)),
+((char)(0x57+3152-0xc87)),((char)(0x628+4042-0x15d2)),
+((char)(0x4d5+5578-0x1a7f)),((char)(0xd84+3638-0x1b9a)),
+((char)(0x87+6395-0x1962)),((char)(0xe25+3538-0x1bd7)),
+((char)(0x259+5850-0x1913)),((char)(0x167+4785-0x13f8)),
+((char)(0xfda+1769-0x16a3)),((char)(0x61d+4479-0x177c)),
+((char)(0x14a8+1956-0x1c2c)),((char)(0x4e1+2868-0xff5)),
+((char)(0x1301+3767-0x2198)),((char)(0xb7b+3311-0x184a)),
+((char)(0x212+435-0x3a5)),((char)(0x1444+1943-0x1bbb)),
+((char)(0xdf2+2627-0x1815)),((char)(0x2a8+7809-0x2109)),(0x1091+4696-0x22a9),
+((char)(0x131d+4432-0x244d)),(0x97+9305-0x24ef),(0x1595+1607-0x1bb8),
+(0xd47+2725-0x17e9),((char)(0x99f+1250-0xe61)),(0x993+6704-0x2364),
+((char)(0x100b+147-0x107e)),((char)(0xa2d+667-0xca8)),
+((char)(0x1108+2258-0x19ba)),((char)(0x9c7+6823-0x244e)),
+((char)(0x13cf+830-0x16ed)),((char)(0xc15+5634-0x21f7)),
+((char)(0xa09+6004-0x215d)),((char)(0x447+4551-0x15ee)),
+((char)(0xdd5+832-0x10f5)),((char)(0xb07+3717-0x196c)),
+((char)(0x4a+9816-0x2682)),((char)(0x72+8368-0x2102)),
+((char)(0xd62+3649-0x1b83)),((char)(0x196+6910-0x1c74)),
+((char)(0x10b1+3599-0x1ea0)),((char)(0x1852+297-0x195b)),(0x525+8468-0x262e),
+((char)(0x138+3489-0xeb9)),((char)(0x325+1387-0x870)),
+((char)(0x10c8+2183-0x192f)),((char)(0x1261+5249-0x26c2)),
+((char)(0x19a0+137-0x1a09)),((char)(0x11b2+3607-0x1fa9)),(0x4e9+4381-0x15a6),
+((char)(0x2157+59-0x2172)),((char)(0xc0d+2239-0x14ac)),
+((char)(0x1c39+1102-0x2067)),((char)(0xc9d+1168-0x110d)),(0x18a0+1453-0x1df2),
+(0x409+6622-0x1dd9),(0xb11+2277-0x13da),(0x619+1422-0xb9e),
+((char)(0x22f+6083-0x19d2)),(0x2ed+4204-0x133a),((char)(0x3a6+8519-0x24cd)),
+((char)(0x144+5359-0x1613)),((char)(0x85f+3079-0x1446)),
+((char)(0x1967+266-0x1a51)),((char)(0x102+2805-0xbd7)),
+((char)(0x812+1836-0xf1e)),((char)(0x182+5212-0x15be)),(0x555+6484-0x1e4c),
+((char)(0x1b6+1984-0x956)),((char)(0xd20+3102-0x191e)),
+((char)(0xba+4711-0x1301)),((char)(0xf09+119-0xf60)),(0x1c97+1486-0x2209),
+((char)(0x693+1199-0xb22)),((char)(0xb36+2183-0x139d)),
+((char)(0x32b+2126-0xb59)),((char)(0xab+1108-0x4df)),
+((char)(0x120a+3782-0x20b0)),(0xd4a+239-0xddb),((char)(0xcc9+1882-0x1403)),
+((char)(0x263+3049-0xe2c)),(0xc6a+1382-0x11b2),(0x327+9164-0x2674),
+((char)(0xf2d+2393-0x1866)),((char)(0x1673+740-0x1937)),
+((char)(0x6c1+3988-0x1635)),(0x2bc+8904-0x2509),(0x126+6586-0x1ad1),
+(0x21f+825-0x53b),((char)(0x1843+1380-0x1d87)),(0xda5+685-0x104e),
+(0x1648+1869-0x1d90),((char)(0x19f8+1069-0x1e05)),((char)(0x625+2315-0xf10)),
+(0x7d7+3960-0x1748),((char)(0x12cd+2753-0x1d6e)),((char)(0x1945+453-0x1aea)),
+((char)(0x1228+473-0x13e1)),((char)(0x2c7+129-0x328)),(0xf2+4197-0x10da),
+(0x20b9+1306-0x25cb),((char)(0x337+4396-0x1443)),((char)(0xf19+1630-0x1557)),
+((char)(0x1e14+1770-0x24de)),(0x288+866-0x56e),((char)(0x2287+1130-0x26d1)),
+(0x1847+1671-0x1ec2),(0x6fa+7160-0x22ec),((char)(0x164a+3738-0x24c4)),
+((char)(0xffd+3321-0x1cd6)),(0x5b7+7455-0x2258),((char)(0x2e9+3320-0xfc1)),
+((char)(0x1714+766-0x19f2)),((char)(0x14db+1659-0x1b36)),};const unsigned short
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[][(0x1d6f+1475-0x2330)]={{
+(0xa49+1389-0xfad),(0x5c5+1082-0x918)},{(0x5af+6672-0x1fb5),(0x9a+5216-0x14ee)},
+{(0x1522+4250-0x25af),(0x1e7b+2041-0x2667)},{(0x14d8+254-0x15c2),
+(0x3e9+2156-0xbf7)},{(0x1cd2+1469-0x2267),(0x1088+1701-0x16b2)},{
+(0x19e5+2635-0x2407),(0x248+2867-0xcfe)},{(0x1c9+1789-0x897),
+(0x108c+1119-0x148f)},{(0xefb+895-0x123e),(0x1d85+1182-0x21c8)},{
+(0x342+3996-0x12a1),(0x1865+1596-0x1e23)},{(0x111c+5061-0x24a3),
+(0xc81+5903-0x2333)},{(0x1c23+2419-0x2556),(0x175c+3401-0x2429)},{
+(0x4a0+1666-0xae1),(0xb25+4461-0x1bd1)},{(0x66+2218-0x8c7),(0x1838+1222-0x1c31)}
+,{(0x83b+5202-0x1c3e),(0x21c9+70-0x213c)},{(0xdc9+386-0xef6),(0x672+339-0x6eb)},
+{(0x1750+1544-0x1cf7),(0x4da+4940-0x1745)},{(0x17d1+958-0x1b2a),
+(0x26b4+4390-0x172e)},{(0xa80+2279-0x12fe),(0x8c5+2138-0x1032)},{
+(0x1bfa+914-0x1f1d),(0xd6d+3156-0x18ce)},{(0x51f+5656-0x1ac2),
+(0xa82+4959-0x1ce7)},};const unsigned short Ucs2_To_Gsm7_SPANISH_Table_UCS[][
+(0xec8+4082-0x1eb8)]={{(0x317+7228-0x1f43),(0x1014+6327-0x2537)},{
+(0x2043+861-0x238e),(0x9a5+3067-0x11fa)},{(0xd10+6032-0x248d),
+(0x1be0+1078-0x1c83)},{(0xfd9+3361-0x1ce6),(0x1ab7+320-0x185c)},{
+(0x103c+5660-0x2643),(0x1395+4051-0x1fbf)},{(0x69a+1384-0xbec),
+(0xacd+6717-0x216a)},{(0x3f8+8182-0x23d7),(0x5c3+737-0x4fc)},{
+(0xfc7+1450-0x1559),(0xb8d+5474-0x1d4c)},{(0x392+1493-0x94e),(0x6fb+5305-0x181c)
+},{(0x13a6+4859-0x2687),(0x857+7625-0x2282)},};const unsigned char
+Ucs2_To_Gsm7_SPANISH_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xa0c+2446-0x1390),NON_GSM,NON_GSM,
+(0x60c+2976-0x119f),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x1b91+2098-0x23b9),NON_GSM,NON_GSM,(0x1ae9+1915-0x2257),NON_GSM,NON_GSM,
+NON_GSM,(0xb13+1870-0x1241),(0x15a7+3246-0x2234),(0x497+5100-0x1861),
+(0x199b+93-0x19d5),(0x12a7+2502-0x1c6b),(0x12cb+4539-0x2461),(0xb2c+1067-0xf31),
+(0x26b+8077-0x21d1),(0x147a+1452-0x19fe),(0xe6+1976-0x875),(0x40c+8125-0x239f),
+(0x1520+4620-0x2701),(0x1136+3348-0x1e1e),(0x6c3+4826-0x1970),(0x87+3101-0xc76),
+(0x21b8+115-0x21fc),(0xac8+5184-0x1ed8),(0x525+5060-0x18b8),(0x1215+5148-0x25ff)
+,(0x315+4575-0x14c1),(0x438+414-0x5a2),(0x1608+4253-0x2670),(0x55d+597-0x77c),
+(0xc37+4649-0x1e29),(0x329+3836-0x11ed),(0x14fb+4019-0x2475),(0x2092+900-0x23dc)
+,(0x44b+8187-0x240b),(0x7a5+7782-0x25cf),(0x2fd+1824-0x9e0),(0x7ec+1144-0xc26),
+(0x1532+2152-0x1d5b),(0xe29+6348-0x26f5),(0x4d7+1884-0xbf2),(0x7a5+7640-0x253b),
+(0x129a+2585-0x1c70),(0x1a56+2825-0x251b),(0x697+1535-0xc51),(0x814+7436-0x24da)
+,(0x200+1714-0x86b),(0xddf+5619-0x238a),(0x551+5574-0x1ace),(0x144d+1614-0x1a51)
+,(0x224+3605-0xfee),(0x59d+859-0x8ac),(0x182d+1181-0x1c7d),(0x6da+501-0x881),
+(0x10e5+3873-0x1fb7),(0x11b6+2940-0x1ce2),(0x134b+3579-0x20f5),
+(0x57+4618-0x120f),(0x10ec+2332-0x19b5),(0x1992+969-0x1d07),(0x1e2f+427-0x1f85),
+(0x12d8+2940-0x1dfe),(0x1033+4237-0x2069),(0x3a6+6877-0x1e2b),
+(0x15d9+3298-0x2262),(0x784+1165-0xbb7),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x1741+2855-0x2257),NON_GSM,(0xf5c+5653-0x2510),(0x236+6400-0x1ad4),
+(0x1f15+1021-0x22af),(0x1ad0+2703-0x24fb),(0xd2f+6110-0x24a8),
+(0x2035+689-0x2280),(0x53d+99-0x539),(0xf22+5279-0x2359),(0x2e0+1029-0x67c),
+(0xfcd+4383-0x2082),(0x23bb+867-0x26b3),(0x848+6677-0x21f1),(0x147f+1519-0x1a01)
+,(0xd23+3258-0x196f),(0x1359+2527-0x1cc9),(0x21f+2646-0xc05),
+(0x1625+4222-0x2632),(0x21a0+862-0x248c),(0x18e1+3413-0x25c3),(0x703+2325-0xfa4)
+,(0x22ea+1047-0x268c),(0xb0a+3356-0x17b0),(0x5d1+2499-0xf1d),(0xe9c+5996-0x2590)
+,(0x8b2+7167-0x2438),(0xd84+1574-0x1330),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,(0xbe3+3169-0x1829),(0x2d3+7940-0x2197),NON_GSM,
+(0x2b6+3597-0x10c2),(0x201b+1344-0x2537),(0x1a3c+1370-0x1f93),NON_GSM,
+(0xeaf+5863-0x2537),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xf30+1101-0x135d),
-(0x1d6f+565-0x1f83),(0xb5b+5325-0x2006),(0x860+5151-0x1c5c),(0xc3c+5672-0x2262),
-(0x5b3+438-0x744),(0x1e84+890-0x21d8),(0x14e5+2294-0x1db4),(0x187d+1150-0x1cd3),
-(0xe9f+2302-0x1774),(0xc63+3715-0x1abc),(0x38c+4016-0x1311),(0x1fa2+843-0x22c1),
-(0xd4+2931-0xc1a),(0x1e15+2043-0x25e2),(0xe57+4644-0x204c),(0x81c+713-0xab5),
-(0xb5b+5338-0x2004),(0x71+9331-0x24b2),(0xc4d+342-0xd70),(0x2483+367-0x25be),
-(0x67c+6627-0x202a),(0x170c+1371-0x1c31),(0x1060+3548-0x1e05),
-(0x2ea+7107-0x1e75),(0x19e3+782-0x1cb8),(0x2173+839-0x2480),(0x47f+4814-0x1712),
-(0x762+2319-0x1035),(0x486+1870-0xb97),(0x10e2+3-0x10a7),(0x622+655-0x872),
-(0x1093+3837-0x1f90),(0x3c7+6053-0x1b2b),(0xbec+2549-0x159f),
-(0x1465+4680-0x266a),(0xea6+1683-0x14f5),(0x862+5461-0x1d72),(0x113f+734-0x13d7)
-,(0x1437+2832-0x1f00),(0xa57+2501-0x13d4),(0x17d4+1742-0x1e59),
-(0x19c+5920-0x1872),(0x8ff+7575-0x264b),(0x205+138-0x243),(0x11a+3414-0xe23),
-(0x62+6359-0x18eb),(0xad8+4048-0x1a59),(0x4d7+7759-0x22d6),(0x5bf+5451-0x1ab9),
-(0x1518+3599-0x22d5),(0x5c0+5160-0x1995),(0x215+744-0x4a9),(0xc8d+3209-0x18c1),
-(0xbb0+3297-0x183b),(0x13fa+1672-0x1a2b),(0x3ea+7138-0x1f74),(0x640+1108-0xa3b),
-(0x1e70+2108-0x2652),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x5fd+2518-0xfc2),NON_GSM,
-(0xcf5+5590-0x226a),(0x112+3535-0xe7f),(0x4a2+6221-0x1c8c),(0x589+3080-0x112d),
-(0x16a6+633-0x18ba),(0x626+491-0x7ab),(0xb98+6081-0x22f2),(0x153c+156-0x1570),
-(0x1a97+352-0x1b8e),(0x1fc3+62-0x1f97),(0x1c59+2267-0x24c9),(0x6a0+1700-0xcd8),
-(0xa19+5855-0x208b),(0x65a+5664-0x1c0c),(0x1d07+2124-0x24e4),(0x8e0+3096-0x1488)
-,(0x9f7+6558-0x2324),(0x15fb+3757-0x2436),(0x215c+1071-0x2518),
-(0x1351+1303-0x17f4),(0xe2+6975-0x1bac),(0x1e28+1487-0x2381),(0x399+7426-0x2024)
-,(0x1419+1471-0x1960),(0x1557+2527-0x1ebd),(0x185+4190-0x1169),NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1fcc+1358-0x24ba),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x4d1+5492-0x19ea),(0x7a9+1893-0xf00),
+(0x605+2047-0xde8),(0x745+2251-0x1007),NON_GSM,(0x1cc+2249-0xa76),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x38c+1949-0xacc),NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0xc39+5203-0x2030),NON_GSM,(0x81c+7477-0x2546),NON_GSM,
+NON_GSM,NON_GSM,(0xc92+6428-0x2550),NON_GSM,NON_GSM,(0xbed+4474-0x1d49),
+(0x1f9+1868-0x8c6),NON_GSM,NON_GSM,NON_GSM,(0xe84+2854-0x192f),
+(0x3c3+5266-0x1846),(0x12fd+2976-0x1e80),NON_GSM,(0xb5+2071-0x8c8),
+(0x1b46+1303-0x2058),NON_GSM,NON_GSM,(0x838+3207-0x14b8),NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,(0xec1+1790-0x1542),(0x21ad+241-0x2296),NON_GSM,NON_GSM,NON_GSM,
+(0x282+5925-0x192b),NON_GSM,(0x12ff+2753-0x1db4),(0xb5c+2348-0x1482),NON_GSM,
+NON_GSM,(0xed4+3630-0x1c84),NON_GSM,NON_GSM,NON_GSM};const unsigned short
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x2ff+1586-0x92f)]={{
+(0x1c6c+687-0x1f16),(0x78b+2259-0xf74)},{(0x12c1+540-0x14d4),(0x6a0+1979-0xd74)}
+,{(0x1d93+1051-0x21a4),(0x17b+6390-0x1a65)},{(0xddd+5592-0x23aa),
+(0x8f3+880-0xb8f)},{(0xca3+3915-0x1be2),(0xfad+4292-0x1f7d)},{
+(0x16d+5998-0x18ce),(0x83f+2100-0x1066)},{(0x1231+616-0x148b),
+(0x1a45+302-0x1ab2)},{(0x99b+7454-0x26aa),(0x1322+1910-0x19b7)},{
+(0x1d4a+1469-0x22f5),(0x1081+5539-0x227e)},{(0xf86+2470-0x1919),
+(0x1a7d+1839-0x1e19)},{(0x1e6c+1331-0x238b),(0xeb8+1044-0x126e)},{
+(0x80f+1295-0xd09),(0x90a+3046-0x1147)},{(0x1982+3203-0x25ef),(0x69a+1355-0x845)
+},{(0x2d5+5954-0x1a00),(0x18e1+3164-0x2195)},{(0xae5+4689-0x1d1e),
+(0x14b2+894-0x148d)},{(0x689+2932-0x11e4),(0x1994+2711-0x2093)},{
+(0x127+9033-0x2451),(0x14ad+4079-0x23d2)},{(0x181c+1990-0x1fba),
+(0x5ed+2181-0xdf7)},{(0x1429+4356-0x2504),(0x11cb+592-0x139e)},{
+(0x5a8+6718-0x1fb7),(0x360+7134-0x1ee2)},{(0x1b83+1533-0x2144),
+(0x3f0+3766-0x124b)},{(0x1759+1085-0x1b59),(0x1974+2981-0x249b)},{
+(0xaa3+5677-0x2092),(0x605+4649-0x17d1)},{(0x131c+3094-0x1ef2),
+(0x21d8+1003-0x2547)},{(0x2fd+7200-0x1edc),(0x433+6101-0x1b48)},{
+(0x456+2178-0xc8f),(0x141f+4480-0x24d2)},{(0x12e6+1546-0x18a1),
+(0x1ad3+3328-0x2700)},{(0x1b43+1140-0x1f62),(0x4f8+7699-0x2231)},{
+(0x371+5787-0x19b1),(0x861+1509-0xd83)},{(0x1824+943-0x1b77),(0x1773+602-0x18f8)
+},{(0x46f+8934-0x26f4),(0x559+6243-0x1cfa)},{(0x18ba+2406-0x21bb),8364},{
+(0xab4+5294-0x1ef9),(0xc2f+4479-0x1cc1)},{(0x39d+8409-0x2407),
+(0xdf1+1685-0x1393)},{(0x193d+2406-0x222e),(0x12db+3028-0x1db5)},{
+(0x13a5+1191-0x17d1),(0x766+1963-0xe2e)},{(0x885+3244-0x14b5),(0x708+2455-0xfaa)
+},{(0x2182+443-0x22be),(0xda6+2838-0x17da)},};const unsigned short
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x2098+978-0x2468)]={{(0x331+2885-0xe66),
+(0xb55+6553-0x215a)},{(0x1355+771-0x1643),(0x23ba+6536-0x1a61)},{
+(0x15e8+3869-0x24ed),(0x227a+2703-0xc5d)},{(0x392+4215-0x13a4),8364},};const
+unsigned char Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x26d+775-0x56a),
+NON_GSM,NON_GSM,(0xa57+2689-0x14cb),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,(0x1a7+6295-0x1a1e),(0x12fc+3270-0x1fa1),
+(0x533+3647-0x1350),(0xf74+302-0x107f),(0x138+6149-0x193b),(0x15da+4290-0x2677),
+(0x819+7356-0x24af),(0x109a+5783-0x270a),(0x1321+502-0x14ef),(0x339+3776-0x11d0)
+,(0xa1d+1627-0x104e),(0x21bf+1240-0x266c),(0x1825+2460-0x2195),(0x992+911-0xcf4)
+,(0xe9d+3853-0x1d7c),(0x144a+964-0x17df),(0xc70+2388-0x1594),
+(0x1532+4017-0x24b2),(0xe8a+1345-0x1399),(0x2125+267-0x21fd),(0x7b0+5708-0x1dc8)
+,(0x361+7061-0x1ec1),(0x1055+1235-0x14f2),(0x1ef+7813-0x203d),
+(0x1db9+2191-0x2610),(0xc03+6351-0x2499),(0x19fa+1194-0x1e6a),
+(0x45a+6615-0x1df6),(0x1791+285-0x1872),(0xd1c+6358-0x25b5),(0x81d+7688-0x25e7),
+(0x1a16+1318-0x1efd),(0xa78+941-0xe25),(0x1ea3+838-0x21a8),(0x170c+3727-0x2559),
+(0x1181+1676-0x17ca),(0xcf1+4640-0x1ecd),(0x83d+1954-0xf9a),(0x5b6+7760-0x23c0),
+(0x1544+3195-0x2178),(0x932+673-0xb8b),(0x15d4+626-0x17fd),(0x10fd+4437-0x2208),
+(0x22c4+731-0x2554),(0xc22+4089-0x1bcf),(0x1d0f+2556-0x26be),(0x679+2686-0x10a9)
+,(0x10f+4898-0x13e2),(0xc1f+2449-0x1560),(0x1714+2270-0x1fa1),
+(0x4db+6701-0x1eb6),(0x1900+2651-0x2308),(0x115d+1432-0x16a1),
+(0x864+2820-0x1313),(0x13e4+1837-0x1abb),(0x9c1+5577-0x1f33),(0x8cd+6065-0x2026)
+,(0xcf0+4721-0x1f08),(0x5c2+4508-0x1704),NON_GSM,(0x26f+1698-0x8fa),NON_GSM,
+(0x12b0+4061-0x2277),(0x325+7522-0x2076),(0x8ff+7289-0x24fb),(0x13a+2090-0x903),
+(0x527+6680-0x1edd),(0x72b+7494-0x240e),(0x8c2+1024-0xc5e),(0x4b4+7434-0x2159),
+(0x224c+253-0x22e3),(0x926+3674-0x1719),(0x466+2975-0xf9d),(0x96+3248-0xcdd),
+(0x16f+3907-0x1048),(0xb69+163-0xba1),(0x110d+837-0x13e6),(0x15f+7311-0x1d81),
+(0x1c85+788-0x1f2b),(0xd8+1290-0x573),(0x129c+3507-0x1fdf),(0x2042+1725-0x268e),
+(0x16b7+1029-0x1a4a),(0x123c+2946-0x1d4b),(0x1f26+1887-0x2611),
+(0x162a+4274-0x2667),(0x119c+50-0x1158),(0x11cf+5379-0x265b),(0x563+5820-0x1ba7)
+,(0x1013+644-0x121e),(0x1964+617-0x1b53),NON_GSM,(0x16ba+3176-0x2308),NON_GSM,
+(0x8d9+6647-0x2270),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x1ed9+1324-0x23ea),NON_GSM_P,
+NON_GSM,(0xd9d+2977-0x193d),NON_GSM_P,(0x1a45+2752-0x2502),NON_GSM,
+(0x1fef+1736-0x2658),NON_GSM,NON_GSM,(0xd8b+1920-0x14f9),NON_GSM,NON_GSM,NON_GSM
+,NON_GSM,NON_GSM,(0x179+1564-0x771),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0xa78+3165-0x16c1),(0x1c2a+698-0x1ed6),(0x18ff+1195-0x1d8e),
+(0x1126+3075-0x1cce),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x11a7+1044-0x15a8),NON_GSM,
+(0xa60+2903-0x1598),(0x5a+9575-0x25a3),NON_GSM,NON_GSM,(0x1986+2813-0x2443),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM,(0xc20+3179-0x1872),
+(0x2237+565-0x2461),(0x1106+3131-0x1ce5),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,
+(0x35a+4262-0x13a3),NON_GSM,(0x379+1311-0x83a),NON_GSM,NON_GSM,NON_GSM_P,
+(0x1038+5126-0x23bf),(0x1472+1465-0x1a1c),(0x8c5+4600-0x1aa0),
+(0x2d7+9362-0x26ee),NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x412+6302-0x1ca7),NON_GSM_P,
+(0x6c2+1045-0xad2),(0x20a+3116-0xe32),NON_GSM,NON_GSM_P,(0x1e82+2030-0x2669),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM_P,NON_GSM_P,(0xa3c+1786-0x112e),
+(0x1cec+1884-0x243c),(0x79b+2891-0x126a),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,
+(0x35c+3445-0x10cb),NON_GSM,(0x2fd+202-0x349),NON_GSM,NON_GSM,NON_GSM};const
+unsigned short zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x922+6740-0x2374)]={{
+(0x1dd7+875-0x2138),(0xeef+2013-0x16c0)},{(0x6e0+6661-0x20d1),
+(0x1318+2289-0x1bab)},{(0x4b9+2563-0xe94),(0x134a+2542-0x1cbd)},{
+(0xcc5+5826-0x235e),(0x19a3+2074-0x2140)},{(0x4c7+5352-0x1980),
+(0xb2c+1241-0xfa9)},{(0x499+7661-0x224a),(0xecc+5652-0x2485)},{
+(0x40a+8116-0x2381),(0x99a+6390-0x2212)},{(0x573+5152-0x1955),
+(0x12fc+3050-0x1e89)},{(0x1e71+1171-0x22c4),(0x2537+481-0x269c)},{
+(0x62b+6377-0x1eaf),(0x25ff+3496-0x12fb)},};const unsigned short
+UCS2_To_GSMDefault_Table_UCS2[][(0x9ef+1945-0x1186)]={{(0x8ea+6335-0x2199),
+(0xe84+1872-0x1240)},{(0x1cdc+680-0x1f72),(0x3c9+678-0x2c9)},{(0x76+9380-0x2507)
+,(0xef8+2451-0x14f8)},{(0x187f+522-0x1a75),(0x751+3088-0xfc6)},{
+(0x787+535-0x989),(0x15d5+1521-0x181d)},{(0x235+2892-0xd6b),(0xbd5+5647-0x1e44)}
+,{(0x21c+4594-0x13f7),(0xb6d+936-0xb6d)},{(0xaf2+6318-0x2388),
+(0x1df9+3056-0x2646)},{(0x3bf+2378-0xcf0),(0x26d5+699-0x25f8)},{
+(0x2fb+8929-0x25c2),(0x1c65+361-0x1a30)},};const unsigned char
+UCS2_To_GSMDefault_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0xb74+2376-0x14b2),NON_GSM,NON_GSM,
+(0x552+2722-0xfe7),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x2b+6241-0x186c),(0x2058+919-0x23ce),(0x4d8+5597-0x1a93),
+(0xbd9+2870-0x16ec),(0x11a1+3514-0x1f59),(0x1110+2479-0x1a9a),
+(0x15ba+1881-0x1ced),(0x1510+4461-0x2656),(0x113+8155-0x20c6),
+(0x6fa+6988-0x221d),(0x8df+2215-0x115c),(0x1aac+1383-0x1fe8),
+(0x1804+2560-0x21d8),(0x75b+6304-0x1fce),(0x17ef+2919-0x2328),(0x78+3742-0xee7),
+(0x127+9018-0x2431),(0x254+3803-0x10fe),(0x16a0+3704-0x24e6),(0xcb4+5158-0x20a7)
+,(0x39a+1012-0x75a),(0x6d7+4726-0x1918),(0x153c+1475-0x1ac9),(0x1192+258-0x125d)
+,(0x249+2066-0xa23),(0x497+1154-0x8e0),(0xf16+3396-0x1c20),(0x4a0+839-0x7ac),
+(0x1bc9+2462-0x252b),(0x1ed+8445-0x22ad),(0x2f7+7785-0x2122),(0x7fb+1975-0xf73),
+(0xb12+7105-0x26d3),(0x381+6896-0x1e30),(0x11d9+4941-0x24e4),(0x10d+5640-0x16d2)
+,(0x53a+5411-0x1a19),(0x1238+3992-0x218b),(0x487+5895-0x1b48),
+(0x1621+4361-0x26e3),(0x311+4733-0x1546),(0x10ef+1885-0x1803),
+(0x646+5863-0x1ce3),(0xfab+2452-0x18f4),(0x1d8c+1781-0x2435),(0x412+1925-0xb4a),
+(0x1042+4659-0x2227),(0x4c9+4723-0x16ed),(0x115a+4402-0x223c),
+(0xab3+6797-0x24ef),(0x2109+1176-0x254f),(0x1359+680-0x15ae),(0xc6c+773-0xf1d),
+(0x1177+2174-0x19a0),(0x79a+7868-0x2600),(0x2642+98-0x264d),(0x1003+5659-0x25c6)
+,(0x905+1784-0xfa4),(0xb60+7118-0x26d4),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x13a5+2355-0x1cc7),NON_GSM,(0x997+2680-0x13ae),(0xdc7+5837-0x2432),
+(0xaef+986-0xe66),(0xb9c+3363-0x185b),(0xfd3+1096-0x13b6),(0xf07+852-0x11f5),
+(0x4a0+2947-0xfbc),(0x5d4+4619-0x1777),(0x47f+5337-0x18ef),(0xa72+619-0xc73),
+(0x1509+3357-0x21bb),(0xd28+1636-0x1320),(0x1229+4043-0x2187),
+(0x267+9419-0x26c4),(0x1a27+2100-0x21ec),(0xca+7701-0x1e6f),(0x1825+763-0x1aaf),
+(0xe8d+4050-0x1ded),(0x89c+2226-0x10db),(0x5af+8089-0x24d4),(0x9ad+3444-0x16ac),
+(0xd94+4112-0x1d2e),(0x51a+3795-0x1376),(0x1cdc+2350-0x2592),(0x3a6+840-0x675),
+(0x34d+442-0x48d),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x2d8+2348-0xbe9),(0x1ac3+2446-0x2411),
-NON_GSM,(0x6e4+8013-0x2630),(0x6dd+5466-0x1c13),(0x890+751-0xb7c),NON_GSM,
-(0x812+5397-0x1cc8),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x584+5110-0x191a),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x7af+1030-0xb5a),(0x15ea+4142-0x260a),
-(0x505+3621-0x130e),(0x1271+4861-0x2565),NON_GSM,(0x1a1a+3220-0x268f),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x215c+502-0x22f5),NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,(0x448+8704-0x25ec),NON_GSM,(0x5e0+3001-0x118e),NON_GSM,
-NON_GSM,NON_GSM,(0x1380+2037-0x1b17),NON_GSM,NON_GSM,(0x522+2648-0xf5c),
-(0xfdd+1471-0x151d),NON_GSM,NON_GSM,NON_GSM,(0x57d+1268-0x9f6),
-(0x182f+3104-0x2440),(0x1eb+545-0x3ef),NON_GSM,(0x16bf+3250-0x236d),
-(0x393+939-0x739),NON_GSM,NON_GSM,(0xecf+5147-0x22e3),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x1f8+2169-0x9f4),(0x1333+3624-0x2153),NON_GSM,NON_GSM,NON_GSM,
-(0x16c+1832-0x818),NON_GSM,(0x7a0+1284-0xc98),(0x41+4377-0x1154),NON_GSM,NON_GSM
-,(0x21c+8271-0x21ed),NON_GSM,NON_GSM,NON_GSM};const unsigned short
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[][(0x174b+2399-0x20a8)]={{
-(0x68f+3458-0x140c),(0x252d+286-0x2561)},{(0x23bb+319-0x24f1),
-(0x1413+3405-0x2079)},{(0xc7b+2225-0x1522),(0x785+910-0xb07)},{
-(0x676+6268-0x1ee7),(0x1171+4582-0x2283)},{(0x65+2574-0xa67),(0x204c+265-0x2061)
-},{(0x1723+2613-0x214b),(0x14dc+1898-0x1c39)},{(0x473+1915-0xbe0),
-(0x8af+1614-0xe3c)},{(0x1c3+2245-0xa79),(0x1033+4086-0x1f48)},{
-(0x1303+788-0x1605),(0x115b+3130-0x19ef)},{(0x8ca+3808-0x1797),
-(0x221f+1389-0x23f9)},{(0x5c8+5664-0x1bd4),(0x317+7851-0x2164)},{
-(0x240+1723-0x8e6),(0xb3a+2049-0xf92)},{(0x695+2587-0x109a),(0x1b29+1714-0x1e3b)
-},{(0xefc+2220-0x1791),(0x75c+2347-0xcdf)},{(0x1c52+2198-0x24d0),
-(0x4c9+357-0x28b)},{(0x157b+572-0x179e),(0xea3+1977-0x12c4)},{
-(0x1424+1777-0x1af6),(0x920+726-0xb2c)},{(0x1d0a+2356-0x2616),
-(0x2043+1515-0x25b3)},{(0xfe0+3669-0x1e0c),(0xc65+3864-0x1b00)},{
-(0x222+7813-0x2078),(0xae4+4682-0x1cd2)},{(0x171f+3130-0x231d),
-(0xa40+5137-0x1df6)},{(0x76f+2358-0x1068),(0x1306+4285-0x2345)},{
-(0x219+222-0x2b9),(0x1ac1+1655-0x20db)},{(0x1cbd+1246-0x215b),
-(0x125c+1685-0x1875)},{(0xd47+3955-0x1c79),(0xaed+3526-0x17f3)},{
-(0x4ff+111-0x525),(0xfd4+2434-0x1889)},{(0x16c5+41-0x169f),(0x1fb0+1002-0x22c7)}
-,{(0x5ab+1325-0xa83),(0xd69+3677-0x1aec)},{(0xe60+1310-0x1323),
-(0x434+2580-0xd85)},{(0xca4+4169-0x1c91),(0x17c3+3841-0x25ef)},{
-(0x197d+773-0x1c21),(0x12f3+3686-0x2097)},{(0x4d8+828-0x7af),8364},{
-(0x1099+4710-0x2296),(0xe3c+765-0x104c)},{(0x16cf+2885-0x21a5),(0x386+498-0x485)
-},{(0x7d7+4441-0x18bb),(0x153d+3397-0x2188)},{(0x1b1+8928-0x2416),
-(0xd06+6191-0x2452)},{(0x1c31+1278-0x20b3),(0x552+8395-0x2528)},{
-(0x1d84+2331-0x2620),(0x628+3689-0x13af)},};const unsigned short
-Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[][(0x36c+7271-0x1fd1)]={{(0xce2+2685-0x174f),
-(0x1440+1580-0x16d8)},{(0x13b2+729-0x1676),8929},{(0x3f9+7602-0x2193),8364},{
-(0xdb9+6516-0x26c8),(0x2384+8904-0x25a0)},};const unsigned char
-Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[]={NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x217d+286-0x2291),NON_GSM,NON_GSM,
-(0x114+3565-0xef4),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,(0x9ad+4301-0x1a5a),(0x1829+1945-0x1fa1),(0xe1+8141-0x208c),
-(0x14a3+3296-0x2160),(0x3ec+4784-0x169a),(0x292+7710-0x208b),
-(0x13a2+3507-0x212f),(0xe4c+825-0x115e),(0x44c+4847-0x1713),(0x63a+4339-0x1704),
-(0x387+8079-0x22ec),(0x3b+5656-0x1628),(0x1469+3218-0x20cf),(0x481+8294-0x24ba),
-(0x812+2309-0x10e9),(0x1373+2775-0x1e1b),(0x134c+2829-0x1e29),(0xb1+1597-0x6bd),
-(0x335+2768-0xdd3),(0x7d9+4631-0x19bd),(0x1e50+2056-0x2624),(0xdba+2152-0x15ed),
-(0x23dd+477-0x2584),(0x987+4578-0x1b32),(0x18db+3690-0x270d),(0x797+727-0xa35),
-(0x113a+138-0x118a),(0x73f+732-0x9e0),(0xd82+5515-0x22d1),(0xc61+1113-0x107d),
-(0x102d+814-0x131d),(0x274+8033-0x2196),(0x1714+3397-0x2459),(0xf7a+5326-0x2407)
-,(0xc57+1254-0x10fb),(0x6fa+3550-0x1495),(0x10ff+2333-0x19d8),
-(0x2077+1332-0x2566),(0x9b1+3326-0x1669),(0x7c+6538-0x19bf),(0x49d+4983-0x17cc),
-(0x11fa+2747-0x1c6c),(0x2336+1050-0x2706),(0xaa3+6308-0x22fc),
-(0x3d5+4585-0x1572),(0xf60+4124-0x1f2f),(0x130+3378-0xe14),(0x2654+204-0x26d1),
-(0xcdb+5357-0x2178),(0xed7+6155-0x2691),(0x5a+4838-0x12ee),(0x18d2+2689-0x2300),
-(0x4b9+5651-0x1a78),(0xbc4+3400-0x18b7),(0xacc+5682-0x20a8),(0xcf1+3600-0x1aaa),
-(0xefa+1653-0x1517),(0x1685+265-0x1735),(0x6c7+2248-0xf35),NON_GSM,
-(0x1245+3275-0x1ef9),NON_GSM,(0x1e88+1814-0x2588),(0x8f4+2086-0x1109),
-(0x237+8513-0x22fb),(0x2273+1275-0x270d),(0x1291+2049-0x1a30),
-(0x1fd3+1122-0x23d2),(0x233+9112-0x2567),(0x115b+991-0x14d5),
-(0x16fa+1606-0x1cda),(0xdca+6064-0x2513),(0x401+3748-0x123d),(0x1db+4272-0x1222)
-,(0x900+5053-0x1c53),(0x295+8846-0x24b8),(0x66b+4363-0x170a),
-(0x13b4+3564-0x2133),(0xb27+5377-0x1fba),(0x907+5785-0x1f31),(0x811+3730-0x1633)
-,(0xb65+6932-0x2608),(0x2ab+403-0x3cc),(0x1856+1276-0x1cdf),(0x1fa+449-0x347),
-(0x1bb9+888-0x1ebc),(0x3d9+6428-0x1c7f),(0x3e9+4375-0x1489),(0xaf3+2165-0x12f0),
-(0x1b8+9384-0x25e7),(0x1898+1501-0x1dfb),NON_GSM,(0x1194+1058-0x159c),NON_GSM,
-(0x1536+66-0x1518),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x1bcc+2435-0x2534),(0xa11+5589-0x1fa6),NON_GSM,(0x15aa+2028-0x1d95),
+(0x149a+3588-0x227a),(0x71c+3085-0x1326),NON_GSM,(0x5f0+6782-0x200f),NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x6a2+4620-0x1893),NON_GSM_P,
-NON_GSM,(0x166f+1219-0x1b31),NON_GSM_P,(0x1472+716-0x173b),NON_GSM,
-(0x568+1500-0xae5),NON_GSM,NON_GSM,(0x105+4300-0x11bf),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,(0x1059+1961-0x17de),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0xef+7679-0x1eda),(0x942+6986-0x247e),(0x50c+6577-0x1ea1),(0xa70+2229-0x12ca),
-NON_GSM_P,NON_GSM_P,NON_GSM_P,(0x160+4186-0x11a7),NON_GSM,(0xcad+3635-0x1ac1),
-(0x1af1+2573-0x24e0),NON_GSM,NON_GSM,(0x8cb+681-0xb34),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM_P,NON_GSM,(0x4fb+8278-0x2538),(0x66c+4026-0x161b),(0x1949+777-0x1bf6),
-NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM,(0x19b+655-0x3cd),NON_GSM,
-(0x339+7223-0x1f12),NON_GSM,NON_GSM,NON_GSM_P,(0x6c8+1697-0xcea),
-(0x2079+1008-0x245a),(0x42b+498-0x600),(0xdb6+4989-0x20b8),NON_GSM_P,NON_GSM_P,
-NON_GSM_P,(0xe2c+5491-0x2396),NON_GSM_P,(0x1270+1400-0x17e3),
-(0x16d6+1978-0x1e8c),NON_GSM,NON_GSM_P,(0x310+1306-0x823),NON_GSM,NON_GSM,
-NON_GSM,NON_GSM_P,NON_GSM_P,(0x166c+42-0x168e),(0x1880+2938-0x23ee),
-(0x680+240-0x6f4),NON_GSM_P,NON_GSM,NON_GSM_P,NON_GSM_P,(0x71b+5083-0x1af0),
-NON_GSM,(0xd26+4555-0x1e73),NON_GSM,NON_GSM,NON_GSM};const unsigned short
-zte_sms_GSMDefault_To_UCS2_Table_Ex[][(0x5d3+2417-0xf42)]={{(0x1539+2770-0x2001)
-,(0x1c3+9002-0x24e1)},{(0x939+2056-0x112d),(0x1f5d+1739-0x25ca)},{
-(0x12f6+672-0x156e),(0x4bc+5856-0x1b21)},{(0x2344+811-0x2646),
-(0x414+6078-0x1b55)},{(0x3cd+6839-0x1e55),(0xefc+261-0xfa5)},{
-(0x10e9+1780-0x17a1),(0x1c20+1213-0x2082)},{(0x1275+1511-0x181f),
-(0x1468+3359-0x2109)},{(0x1c8+2009-0x963),(0x8aa+6293-0x20e2)},{
-(0x1169+2989-0x1cd6),(0x1661+2322-0x1ef7)},{(0xac9+6555-0x23ff),8364},};const
-unsigned short UCS2_To_GSMDefault_Table_UCS2[][(0x1835+1822-0x1f51)]={{
-(0x18d0+1935-0x204f),(0x24db+7-0x214e)},{(0x1310+2782-0x1ddc),
-(0x1e71+663-0x1d62)},{(0x15a3+4364-0x269c),(0x1af2+2935-0x22d6)},{
-(0x1c01+2567-0x25f4),(0x5fb+8810-0x24ca)},{(0x104c+2963-0x1bca),
-(0x1180+5196-0x2223)},{(0x135f+3580-0x2145),(0x1598+1421-0x1785)},{
-(0x412+4710-0x1661),(0x49d+9441-0x25d6)},{(0xd0+7476-0x1dec),(0x681+8693-0x24d3)
-},{(0x1e73+58-0x1e94),(0x4d2+5918-0x1858)},{(0x816+3810-0x16de),
-(0x969+4210-0x163d)},};const unsigned char UCS2_To_GSMDefault_Table_ASC[]={
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x3f0+1043-0x7f9),NON_GSM,NON_GSM,(0x1102+402-0x1287),NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x151+408-0x2c9),(0x105b+2065-0x184b),
-(0x969+5450-0x1e91),(0xd28+3874-0x1c27),(0x968+3761-0x1817),(0x1143+1344-0x165e)
-,(0xec6+5886-0x259e),(0x779+5245-0x1bcf),(0x1519+1669-0x1b76),
-(0xa7c+3452-0x17cf),(0x210a+1108-0x2534),(0x7e1+5682-0x1de8),
-(0x10dc+1537-0x16b1),(0x439+3414-0x1162),(0x12c5+4496-0x2427),(0x1d9+3229-0xe47)
-,(0x1ac+911-0x50b),(0x1805+1004-0x1bc0),(0x106+5752-0x174c),(0x1c7b+1279-0x2147)
-,(0x1db+5008-0x1537),(0xd5c+5668-0x234b),(0xd06+3912-0x1c18),(0x11d+7860-0x1f9a)
-,(0x1ac+3439-0xee3),(0x664+5949-0x1d68),(0xecc+207-0xf61),(0x216c+532-0x2345),
-(0x15d+5237-0x1596),(0x15e0+1194-0x1a4d),(0xf74+1695-0x15d5),(0x789+3142-0x1390)
-,(0xeb+1171-0x57e),(0x4f2+52-0x4e5),(0x3d7+2314-0xc9f),(0x17f4+2114-0x1ff3),
-(0x1c51+190-0x1ccb),(0x1bdd+2174-0x2416),(0x10c4+4164-0x20c2),
-(0x966+6571-0x22ca),(0x12e2+1699-0x193d),(0x1798+1246-0x1c2d),
-(0x19bd+507-0x1b6e),(0x8c0+6878-0x2353),(0x176a+1455-0x1ccd),
-(0x1205+1342-0x16f6),(0x4dd+433-0x640),(0xe54+795-0x1120),(0x79b+2330-0x1065),
-(0x465+3774-0x12d2),(0x2a1+1421-0x7dc),(0x31d+1357-0x817),(0x110b+3873-0x1fd8),
-(0x11f+2315-0x9d5),(0xaab+2383-0x13a4),(0x9f1+5525-0x1f2f),(0x6bd+1121-0xac6),
-(0x15c6+3288-0x2245),(0x60b+8020-0x2505),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x159+1289-0x651),NON_GSM,(0xd2+9439-0x2550),(0x229a+311-0x236f),
-(0x11cb+4004-0x210c),(0xe26+1217-0x1283),(0xfc9+4883-0x2277),(0x192b+116-0x1939)
-,(0xd76+6143-0x250e),(0x9f+6010-0x17b1),(0x228+326-0x305),(0x1703+2898-0x21eb),
-(0x906+428-0xa47),(0x1067+2867-0x1b2e),(0x6fc+3416-0x13e7),(0x220f+1031-0x25a8),
-(0x764+4040-0x16bd),(0xce6+185-0xd2f),(0xb01+1278-0xf8e),(0xf26+1567-0x14d3),
-(0xfe7+3349-0x1c89),(0x1aef+206-0x1b49),(0x1843+1849-0x1f07),(0x91b+3108-0x14c9)
-,(0x1d28+610-0x1f13),(0xddc+6527-0x26e3),(0x272+187-0x2b4),(0x192+6534-0x1a9e),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x118a+2575-0x1b7e),
-(0x9ba+2855-0x14a1),NON_GSM,(0x16bb+3327-0x23b9),(0x1b00+1238-0x1fb2),
-(0x1add+2381-0x2427),NON_GSM,(0xf11+35-0xed5),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x10e9+5419-0x25b4),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x3d3+795-0x693),
-(0x686+883-0x9eb),(0x181a+405-0x1993),(0xc07+4776-0x1ea6),NON_GSM,
-(0x1ab2+2336-0x23b3),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
-(0x15b4+4495-0x26e6),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x22a+7334-0x1e74),NON_GSM
-,(0x104b+4726-0x22b6),NON_GSM,NON_GSM,NON_GSM,(0x7ec+7540-0x2502),NON_GSM,
-NON_GSM,(0xad+199-0x156),(0xe5+6394-0x1960),NON_GSM,NON_GSM,NON_GSM,
-(0xc43+3783-0x1a8f),(0x6eb+4057-0x16b5),(0x1046+3961-0x1fa2),NON_GSM,
-(0x5e7+6483-0x1f36),(0x1ef4+466-0x20c1),NON_GSM,NON_GSM,(0x255a+372-0x26c7),
-NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x5e7+1052-0x986),(0xe34+3465-0x1bb5),NON_GSM,
-NON_GSM,NON_GSM,(0x107+1422-0x619),NON_GSM,(0xad6+5103-0x1eb9),
-(0x1a83+927-0x1e1c),NON_GSM,NON_GSM,(0x41b+83-0x3f0),NON_GSM,NON_GSM,NON_GSM};
-const unsigned short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={(0x869+1489-0xdfa)
-,(0x1acd+1330-0x1f5c),(0x1847+3775-0x26e2),(0x1481+4033-0x239d),
-(0x1591+556-0x16d3),(0x220+7497-0x1e80),(0x188d+214-0x1869),(0x1035+351-0x10a7),
-(0x1130+4411-0x2178),(0x42f+2952-0xed0),(0x674+7707-0x2485),(0x2c8+6547-0x1b87),
-(0xf77+3855-0x1d92),(0x8ac+7678-0x269d),(0x24e3+393-0x25ab),(0xaa3+5152-0x1de2),
-(0xba3+7591-0x25b6),(0x85a+4833-0x1adc),(0x134c+2686-0x1d20),(0x1ac9+90-0x1a5c),
-(0x726+7296-0x22e6),8734,(0x170d+3555-0x2492),(0x6ca+1495-0xc45),8364,
-(0x1264+3630-0x1fbf),(0x19f2+1275-0x1e71),(0x16cf+1898-0x1d99),(0x2af+524-0x3f9)
-,(0x873+7670-0x2587),(0x18c0+1638-0x1e5c),(0x7cd+5057-0x1ac5),
-(0x7e6+6030-0x1f54),(0x496+2000-0xc45),(0x652+6166-0x1e46),(0x1382+2583-0x1d76),
-(0x178f+3114-0x2309),(0x1ae0+1195-0x1f66),(0x1613+1112-0x1a45),
-(0x1103+4926-0x241a),(0x16e7+706-0x1981),(0x1c66+1829-0x2362),
-(0x1a65+1084-0x1e77),(0x128c+3181-0x1ece),(0xa37+6911-0x250a),(0x59+9314-0x248e)
-,(0x189c+2711-0x2305),(0x33b+2966-0xea2),(0x1d4d+1571-0x2340),
-(0x1a13+328-0x1b2a),(0xa0a+1701-0x107d),(0x13c3+1065-0x17b9),(0x5d7+1249-0xa84),
-(0xc5a+1335-0x115c),(0x1415+2852-0x1f03),(0x13c8+4200-0x23f9),
-(0xbf7+4802-0x1e81),(0x462+3205-0x10ae),(0x69c+5420-0x1b8e),(0x1223+474-0x13c2),
-(0xbed+368-0xd21),(0x7bf+5207-0x1bd9),(0x399+452-0x51f),(0x1458+194-0x14db),
-(0xb50+6524-0x23ff),(0x5e8+7024-0x2117),(0x96c+6482-0x227c),(0x175d+2128-0x1f6a)
-,(0x193+7336-0x1df7),(0xec9+2309-0x1789),(0x60b+6417-0x1ed6),(0x2281+865-0x259b)
-,(0x3d4+3658-0x11d6),(0x51c+5866-0x1bbd),(0xf5d+3605-0x1d28),(0x4a7+2293-0xd51),
-(0x127+9686-0x26b1),(0x7e2+3303-0x147c),(0x2091+765-0x2340),(0xbd+3052-0xc5a),
-(0x488+5745-0x1aa9),(0xc83+152-0xcca),(0x1502+1744-0x1b80),(0xc94+3356-0x195d),
-(0x1190+1891-0x189f),(0x1165+4738-0x2392),(0x381+4657-0x155c),
-(0x1739+2209-0x1f83),(0x9b8+6038-0x20f6),(0x721+2828-0x11d4),(0xb6d+2737-0x15c4)
-,(0x2d5+2229-0xac7),(0xeac+1611-0x1422),(0xf62+2443-0x1813),(0x16f7+81-0x166c),
-(0x79a+6098-0x1ec5),(0x2590+176-0x25c2),(0x1069+2949-0x1b8d),(0xde2+2887-0x18c7)
-,(0xb4a+5133-0x1ef4),(0x148+4408-0x121c),(0x2349+94-0x2342),(0x12c4+2436-0x1be2)
-,(0x577+4003-0x14b3),(0x13a+211-0x1a5),(0x1487+3096-0x2036),(0x60d+4552-0x176b),
-(0x1476+4650-0x2635),(0x227b+82-0x2261),(0xf12+607-0x1104),(0x8f+6726-0x1a67),
-(0x4cd+4068-0x1442),(0x465+1488-0x9c5),(0x95c+2756-0x13af),(0x97+8127-0x1fe4),
-(0x7a0+5605-0x1d12),(0x1421+3256-0x2065),(0x3c2+6935-0x1e64),
-(0x1056+3602-0x1df2),(0x906+3579-0x168a),(0x1093+2271-0x18fa),
-(0x12e0+3404-0x1fb3),(0x8fa+2663-0x12e7),(0x733+4602-0x184a),(0xa22+282-0xa47),
-(0x604+2722-0x1046),(0x94f+5806-0x1f01),(0xc0a+6488-0x2482)};const unsigned
-short zte_sms_GSMDefault_To_UCS2_Table[]={(0x8dc+1503-0xe7b),(0x18a+3603-0xefa),
-(0x92f+6586-0x22c5),(0x13a2+2643-0x1d50),(0x7a9+3389-0x13fe),(0x64b+7209-0x218b)
-,(0xea2+5965-0x24f6),(0xf37+6316-0x26f7),(0xb1f+7109-0x25f2),(0x1327+422-0x1406)
-,(0x1391+1199-0x1836),(0x122f+2796-0x1c43),(0x8a7+572-0x9eb),(0xef4+763-0x11e2),
-(0x2261+352-0x22fc),(0x1645+503-0x1757),(0x705+1115-0x7cc),(0x5ab+8031-0x24ab),
-(0x6cc+8050-0x2298),(0x11d3+367-0xfaf),(0x2255+450-0x207c),(0xcd8+7596-0x26db),
-(0x514+7754-0x1fbe),(0xf29+3860-0x1a95),(0x178f+337-0x153d),(0xdc6+63-0xa6d),
-(0xf38+5007-0x1f29),(0x2c7+7116-0x1df3),(0x1132+4895-0x238b),(0x239+6685-0x1b70)
-,(0x1799+769-0x19bb),(0x9f5+5386-0x1e36),(0x3a0+2-0x382),(0xcb0+2637-0x16dc),
-(0x329+6345-0x1bd0),(0x102+6031-0x186e),(0xd6b+6054-0x246d),(0x13ea+2499-0x1d88)
-,(0x482+4762-0x16f6),(0xf00+1911-0x1650),(0x4f6+7161-0x20c7),(0x20ac+679-0x232a)
-,(0x21d4+856-0x2502),(0x31b+9117-0x268d),(0x1681+4111-0x2664),
-(0x803+7380-0x24aa),(0x94f+393-0xaaa),(0xaa7+895-0xdf7),(0x342+3291-0xfed),
-(0x6b3+4126-0x16a0),(0x1263+4570-0x240b),(0x2d7+1037-0x6b1),(0xbbf+1169-0x101c),
-(0x2336+7-0x2308),(0x21cf+764-0x2495),(0x5bb+3795-0x1457),(0x1832+3610-0x2614),
-(0x2502+481-0x26aa),(0x9e4+1035-0xdb5),(0x18f0+1569-0x1ed6),(0x8f5+5272-0x1d51),
-(0x6f7+4035-0x167d),(0xffa+1655-0x1633),(0x10df+1936-0x1830),(0xc1d+4457-0x1ce5)
-,(0x39a+7523-0x20bc),(0x804+344-0x91a),(0x13a9+4582-0x254c),(0xf49+1861-0x164a),
-(0xe9+2278-0x98a),(0x1a77+3284-0x2705),(0xf33+1694-0x158a),(0xb31+3547-0x18c4),
-(0x274+6138-0x1a25),(0x167+6880-0x1bfd),(0x191c+3024-0x24a1),(0xd7+7928-0x1f83),
-(0x1a3f+463-0x1bc1),(0x46d+3827-0x1312),(0x80+445-0x1ee),(0x95c+3810-0x17ee),
-(0x1a45+424-0x1b9c),(0xcb0+6313-0x2507),(0x6c3+2526-0x104e),(0x1531+2288-0x1dcd)
-,(0x7c4+3494-0x1515),(0x4c9+1160-0x8fb),(0x1d49+1047-0x2109),(0xc92+458-0xe04),
-(0x872+6072-0x1fd1),(0xb71+6791-0x259e),(0xb30+5632-0x206c),(0x115+8108-0x1feb),
-(0xb2b+866-0xdbc),(0x1004+2426-0x18a2),(0x790+2838-0x11ff),(0xb69+4522-0x1c54),
-(0x115f+3-0x1101),(0x179d+3760-0x25eb),(0x1aaa+3006-0x2605),(0x20a5+1317-0x2566)
-,(0x275+5399-0x1727),(0xb93+6529-0x24ae),(0x1f62+1500-0x24d7),(0x1db+519-0x37a),
-(0x39d+5690-0x196e),(0x1585+1524-0x1b0f),(0xaa8+1389-0xfaa),(0x31f+1882-0xa0d),
-(0xe20+4060-0x1d8f),(0x9b0+5258-0x1dcc),(0x92a+1028-0xcbf),(0x19ec+1961-0x2125),
-(0x138+1102-0x515),(0x2290+853-0x2573),(0x2c1+7713-0x206f),(0x1dbf+235-0x1e36),
-(0x6a4+1466-0xbe9),(0x440+4360-0x14d2),(0x181c+2691-0x2228),(0x8fb+982-0xc59),
-(0x1756+195-0x17a0),(0xe7d+5288-0x22ab),(0x14cb+1368-0x193f),(0xdb1+4964-0x201f)
-,(0x16d9+537-0x1801),(0x192+3677-0xef3),(0x11a9+2821-0x1bce)};int Bytes2String(
-const unsigned char*pSrc,char*pDst,int nSrcLength){const char tab[]=
-"0123456789ABCDEF";int i=(0x209+8921-0x24e2);if(pSrc==NULL||pDst==NULL||
-nSrcLength<(0x1f5+7790-0x2063)){return-(0x563+1574-0xb88);}for(i=
-(0x272+6308-0x1b16);i<nSrcLength;i++){*pDst++=tab[*pSrc>>(0x2a+5173-0x145b)];*
-pDst++=tab[*pSrc&(0x64b+6388-0x1f30)];pSrc++;}*pDst='\0';return nSrcLength*
-(0x14c0+2492-0x1e7a);}int String2Bytes(const char*pSrc,unsigned char*pDst,int
-nSrcLength){int i=(0x7ad+3304-0x1495);if(pSrc==NULL||pDst==NULL||nSrcLength<
-(0x10ff+790-0x1415)){return-(0x1040+5411-0x2562);}for(i=(0x15dc+2017-0x1dbd);i<
-nSrcLength;i+=(0x198a+2716-0x2424)){if(*pSrc>=((char)(0x99d+2447-0x12fc))&&*pSrc
-<=((char)(0x573+5014-0x18d0))){*pDst=(*pSrc-((char)(0x1399+3177-0x1fd2)))<<
-(0x7c5+3277-0x148e);}else{*pDst=((toupper(*pSrc)-((char)(0x173c+3708-0x2577)))+
-(0x5c5+8386-0x267d))<<(0x19e7+1831-0x210a);}pSrc++;if(*pSrc>=
-((char)(0x1b6a+1809-0x224b))&&*pSrc<=((char)(0x18b0+107-0x18e2))){*pDst|=*pSrc-
-((char)(0x149a+446-0x1628));}else{*pDst|=(toupper(*pSrc)-
-((char)(0x4af+3824-0x135e)))+(0x81d+4149-0x1848);}pSrc++;pDst++;}return
-nSrcLength/(0x333+3785-0x11fa);}int EncodeUcs2(const char*pSrc,unsigned char*
-pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x22f1+619-0x255c)){
-return-(0x978+4545-0x1b38);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return
- nSrcLength/(0x1e4+8119-0x2199);}int Encode7bit(const char*pSrc,unsigned char*
+NON_GSM,NON_GSM,(0xf0d+1713-0x155e),NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+(0x4bd+3634-0x1294),(0xc29+2468-0x15bf),(0x84c+3434-0x159a),(0xd16+4025-0x1cc6),
+NON_GSM,(0x7ef+2526-0x11ae),NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,NON_GSM,
+NON_GSM,(0x120+8849-0x2354),NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x3c7+4929-0x16ac),
+NON_GSM,(0x102a+778-0x1329),NON_GSM,NON_GSM,NON_GSM,(0x1216+1645-0x1825),NON_GSM
+,NON_GSM,(0x288+1158-0x6f0),(0x12c1+4529-0x23f3),NON_GSM,NON_GSM,NON_GSM,
+(0x422+4108-0x13b3),(0x1ecd+872-0x2226),(0x5f0+7638-0x23a9),NON_GSM,
+(0x240+2302-0xb3a),(0x4ad+7522-0x220a),NON_GSM,NON_GSM,(0x177f+1530-0x1d72),
+NON_GSM,NON_GSM,NON_GSM,NON_GSM,(0x871+3667-0x1647),(0x565+6946-0x207f),NON_GSM,
+NON_GSM,NON_GSM,(0x660+2415-0xf53),NON_GSM,(0x425+1901-0xb86),
+(0x12d9+1957-0x1a78),NON_GSM,NON_GSM,(0x1e32+1709-0x2461),NON_GSM,NON_GSM,
+NON_GSM};const unsigned short zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[]={
+(0x14b1+1570-0x1a93),(0x4ef+1828-0xb70),(0x98a+3333-0x166b),(0x18f9+1564-0x1e70)
+,(0x11d+3598-0xe41),(0xb86+4660-0x1cd1),(0x4c6+4177-0x141d),(0x82f+2763-0x120d),
+(0x3fb+2933-0xe7d),(0x1c39+327-0x1c99),(0xfbb+4577-0x2192),(0x1226+2509-0x1b1f),
+(0x1fa1+1837-0x25da),(0x6f6+4245-0x177e),(0x9d8+3606-0x172d),
+(0x1822+2666-0x21ab),(0x1474+343-0x1237),(0x2354+303-0x2424),
+(0x1983+3142-0x251f),(0xd97+3420-0x1a2c),(0x1393+2462-0x1c71),8734,
+(0x1842+42-0x180e),(0x8a6+5117-0x1c47),8364,(0x16ba+746-0x18d1),
+(0xf9d+672-0x11c1),(0x42b+3498-0x1135),(0x137b+266-0x13c3),(0x1194+4166-0x20f8),
+(0x191+2728-0xb6f),(0x806+7334-0x23e3),(0xd27+2229-0x15bc),(0x1088+1810-0x1779),
+(0x3b2+2591-0xdaf),(0x1723+1603-0x1d43),(0x2d4+4241-0x12b5),(0x1303+1500-0x18ba)
+,(0x1296+2409-0x1bd9),(0x18a8+2678-0x22f7),(0x18dd+932-0x1c59),
+(0x5c3+7458-0x22bc),(0x1ea+4405-0x12f5),(0x82b+6147-0x2003),(0x13a3+257-0x1478),
+(0x1e32+29-0x1e22),(0xfef+1095-0x1408),(0x1f27+276-0x200c),(0xe38+6054-0x25ae),
+(0x1ab2+1798-0x2187),(0xbb1+641-0xe00),(0x1675+1752-0x1d1a),(0x1dc1+1169-0x221e)
+,(0x6cf+5913-0x1db3),(0xa5+5089-0x1450),(0x832+7727-0x262a),(0xa2f+2400-0x1357),
+(0x67a+4667-0x187c),(0xf11+2794-0x19c1),(0x434+5311-0x18b8),(0x16d4+2374-0x1fde)
+,(0x17fa+1364-0x1d11),(0x6ba+6293-0x1f11),(0x980+5300-0x1df5),
+(0x1469+1837-0x1ac9),(0x2242+28-0x221d),(0x46a+556-0x654),(0x1d7a+1357-0x2284),
+(0xc67+1080-0x105b),(0x65a+8082-0x25a7),(0x1d60+614-0x1f80),(0xebf+538-0x1092),
+(0x1cd7+121-0x1d08),(0xc58+3817-0x1af8),(0x89d+3933-0x17b0),(0xed6+5636-0x248f),
+(0x1561+37-0x153a),(0x802+2065-0xfc6),(0x569+5178-0x1955),(0x56a+6748-0x1f77),
+(0x1c55+2551-0x25fc),(0x1099+104-0x10b0),(0xaad+3656-0x18a3),(0x20ba+593-0x22b8)
+,(0x1457+1621-0x1a58),(0x6a0+6402-0x1f4d),(0x586+7719-0x2357),
+(0x29f+6467-0x1b8b),(0xd80+1898-0x1492),(0x2a3+8691-0x243d),(0xd3b+1793-0x13e2),
+(0x1b26+842-0x1dad),(0x3c6+6009-0x1a6a),(0x15b0+4545-0x2697),(0x1d3+3967-0x1076)
+,(0xca3+6710-0x2632),(0xda7+5522-0x22bb),(0x1193+3041-0x1d13),
+(0x176c+2845-0x2227),(0x1eea+1921-0x2608),(0x1f51+983-0x22c4),
+(0xb66+4409-0x1c3a),(0xe7c+624-0x1086),(0x1594+1991-0x1cf4),(0xc85+2843-0x1738),
+(0x12bd+4991-0x25d3),(0x14e7+1372-0x19d9),(0x18ba+2110-0x208d),
+(0x7f9+4391-0x18b4),(0x1667+3835-0x24f5),(0x74a+5720-0x1d34),(0x4dd+3377-0x119f)
+,(0x198a+175-0x19c9),(0x123a+2134-0x1a1f),(0x557+8146-0x24b7),
+(0xaf5+5664-0x20a2),(0x122a+5310-0x2674),(0x1a24+155-0x1a4a),
+(0x1347+4154-0x230b),(0x1d37+592-0x1f10),(0xa5d+1038-0xdf3),(0x350+9208-0x26cf),
+(0x11cb+3387-0x1e8c),(0x180b+1670-0x1dae),(0x706+4643-0x1834),
+(0x1a47+1900-0x2153),(0x1b7d+810-0x1dab),(0x411+5809-0x19e2)};const unsigned
+short zte_sms_GSMDefault_To_UCS2_Table[]={(0x17fd+348-0x1919),
+(0x87b+2830-0x12e6),(0x9a+3425-0xdd7),(0x156c+3037-0x20a4),(0x1c02+1419-0x20a5),
+(0x1953+448-0x1a2a),(0x3cf+6392-0x1bce),(0x1b7b+1849-0x21c8),
+(0x1bd7+1744-0x21b5),(0x1ca+2344-0xa2b),(0x26b+1551-0x870),(0x20dc+487-0x21eb),
+(0x1ed9+977-0x21b2),(0x1f+3771-0xecd),(0x2ab+5367-0x16dd),(0x1c14+126-0x1bad),
+(0x4e0+7691-0x1f57),(0xce2+2034-0x1475),(0x7f4+447-0x60d),(0xb8f+840-0xb44),
+(0x1e18+1658-0x20f7),(0xb1f+7998-0x26b4),(0xb3f+158-0x83d),(0x576+91-0x229),
+(0x8aa+5957-0x1c4c),(0x3b6+6500-0x1982),(0x8e8+5660-0x1b66),(0x22c4+557-0x2451),
+(0x4a1+4636-0x15f7),(0x433+2354-0xc7f),(0x8c9+5503-0x1d69),(0xdd7+6651-0x2709),
+(0x1c36+2684-0x2692),(0x360+1451-0x8ea),(0x20df+3-0x20c0),(0x17f5+1232-0x1ca2),
+(0xc0d+2248-0x1431),(0x1281+4305-0x232d),(0x1d40+2186-0x25a4),
+(0x7db+2808-0x12ac),(0x1325+4863-0x25fc),(0x81d+188-0x8b0),(0xce7+833-0xffe),
+(0x1b41+2186-0x23a0),(0x1151+1085-0x1562),(0x233c+200-0x23d7),
+(0xe9d+2103-0x16a6),(0x195b+3096-0x2544),(0x1289+3855-0x2168),
+(0x1595+3086-0x2172),(0x1bd8+2817-0x26a7),(0x1061+4338-0x2120),
+(0x242+4453-0x1373),(0xfb5+4428-0x20cc),(0x326+7625-0x20b9),(0xe6+9100-0x243b),
+(0x138c+3331-0x2057),(0x5a0+696-0x81f),(0x12db+2926-0x1e0f),(0x120d+3338-0x1edc)
+,(0x1642+584-0x184e),(0x1463+1302-0x193c),(0x197+8519-0x22a0),(0x448+2793-0xef2)
+,(0x5a3+4046-0x14d0),(0xe4a+2384-0x1759),(0xb3b+2298-0x13f3),(0x91b+5432-0x1e10)
+,(0x67f+3426-0x139d),(0x3b1+2017-0xb4d),(0x1681+1936-0x1dcb),(0xeeb+460-0x1070),
+(0xb70+5317-0x1fed),(0x10e9+5453-0x25ed),(0xda5+5097-0x2144),(0x3c3+3367-0x109f)
+,(0x140+4500-0x1288),(0x176a+4015-0x26cc),(0x1f1c+2022-0x26b4),
+(0x197a+2962-0x24bd),(0x1447+2175-0x1c76),(0x12f4+3038-0x1e81),
+(0x2d3+3018-0xe4b),(0xf35+1875-0x1635),(0x1bf0+1273-0x2095),(0x182d+1915-0x1f53)
+,(0x6df+1490-0xc5b),(0x1c7a+1624-0x227b),(0x1541+2040-0x1ce1),
+(0x459+6851-0x1ec3),(0x97c+1436-0xebe),(0x11a4+4307-0x21b3),(0x672+7383-0x2273),
+(0xd3b+1501-0x1247),(0x2415+369-0x24aa),(0x2c7+707-0x4e3),(0xf10+4550-0x2017),
+(0xa26+5447-0x1f0c),(0x1095+5229-0x24a0),(0x9a+6579-0x19ea),(0xb6c+7044-0x268c),
+(0x5a8+6416-0x1e53),(0x1866+1808-0x1f10),(0x1033+4054-0x1fa2),
+(0x2093+1310-0x2549),(0x1716+4097-0x26ae),(0x96f+1985-0x10c6),
+(0x1118+4146-0x20df),(0x15fc+4125-0x25ad),(0x1b58+676-0x1d8f),
+(0x1733+149-0x175a),(0x1297+5278-0x26c6),(0x8eb+6171-0x2096),(0x867+1562-0xe10),
+(0x17c1+1981-0x1f0c),(0x149d+207-0x14f9),(0x500+1758-0xb6a),(0x1072+2189-0x188a)
+,(0x34c+511-0x4d5),(0x1e20+60-0x1de5),(0x5bb+5208-0x199b),(0xd5a+247-0xdd8),
+(0xf22+3883-0x1dd3),(0x1c65+243-0x1c74),(0x67a+7246-0x21d2),(0x1631+602-0x179a),
+(0x3b3+1638-0x91d),(0x108a+2646-0x1a00)};int Bytes2String(const unsigned char*
+pSrc,char*pDst,int nSrcLength){const char tab[]="0123456789ABCDEF";int i=
+(0xea9+3307-0x1b94);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x52+689-0x303)){
+return-(0x1e5b+2135-0x26b1);}for(i=(0x67b+6320-0x1f2b);i<nSrcLength;i++){*pDst++
+=tab[*pSrc>>(0xb9+4033-0x1076)];*pDst++=tab[*pSrc&(0x55f+2065-0xd61)];pSrc++;}*
+pDst='\0';return nSrcLength*(0x10dc+2602-0x1b04);}int String2Bytes(const char*
+pSrc,unsigned char*pDst,int nSrcLength){int i=(0xd68+102-0xdce);if(pSrc==NULL||
+pDst==NULL||nSrcLength<(0x864+2826-0x136e)){return-(0x6d2+4476-0x184d);}for(i=
+(0x1ba+7739-0x1ff5);i<nSrcLength;i+=(0x10c0+4807-0x2385)){if(*pSrc>=
+((char)(0xf58+3743-0x1dc7))&&*pSrc<=((char)(0x1074+5576-0x2603))){*pDst=(*pSrc-
+((char)(0x78a+1403-0xcd5)))<<(0x9f7+6333-0x22b0);}else{*pDst=((toupper(*pSrc)-
+((char)(0x1285+308-0x1378)))+(0x1ad1+115-0x1b3a))<<(0x6db+416-0x877);}pSrc++;if(
+*pSrc>=((char)(0x995+2074-0x117f))&&*pSrc<=((char)(0x165f+347-0x1781))){*pDst|=*
+pSrc-((char)(0x126f+3852-0x214b));}else{*pDst|=(toupper(*pSrc)-
+((char)(0x12a9+388-0x13ec)))+(0x1005+4269-0x20a8);}pSrc++;pDst++;}return
+nSrcLength/(0x1c2+4147-0x11f3);}int EncodeUcs2(const char*pSrc,unsigned char*
+pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<(0x56a+4410-0x16a4)){
+return-(0x17c+7661-0x1f68);}(void)String2Bytes(pSrc,pDst,(int)nSrcLength);return
+ nSrcLength/(0x1919+167-0x19be);}int Encode7bit(const char*pSrc,unsigned char*
pDst,int nSrcLength){int nSrc;int nDst;int nChar;unsigned char nLeft=
-(0xda2+2477-0x174f);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x165+7789-0x1fd2)){
-return-(0x2297+789-0x25ab);}nSrc=(0x1c3a+2291-0x252d);nDst=(0x30f+6480-0x1c5f);
-while(nSrc<nSrcLength){nChar=nSrc&(0x9c+9139-0x2448);if(nChar==
-(0x1a8a+2772-0x255e)){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>
-(0x229b+765-0x2597))&&(nSrc==(nSrcLength-(0x135+6896-0x1c24)))){nDst++;}}else{*
-pDst=(*pSrc<<((0x10c0+3580-0x1eb4)-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst
-++;}pSrc++;nSrc++;}return nDst;}SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst
-,UINT8 TP_FCS){SINT32 nLength=(0x74a+6242-0x1fac);SINT32 nDstLength=
-(0x15e3+1867-0x1d2e);UINT8 buf[(0x1979+2038-0x206f)]={(0x12f4+2376-0x1c3c)};if(
-NULL==pDst){return-(0x1b77+542-0x1d94);}if(TP_FCS!=(0x76a+6520-0x20e2)){buf[
-(0x15c6+3917-0x2513)]=(0x6d7+821-0xa0c);buf[(0x2189+897-0x2509)]=TP_FCS;buf[
-(0x245+8910-0x2511)]=(0x195a+1875-0x20ad);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x846+2554-0x123d));}else{buf[(0x12d8+3126-0x1f0e)]=
-(0x1257+5296-0x2707);buf[(0x1333+1785-0x1a2b)]=(0x639+3563-0x1424);nDstLength+=
-Bytes2String(buf,&pDst[nDstLength],(0x847+3071-0x1444));}return nDstLength;}
-unsigned long zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,
-unsigned char*outputs,unsigned long len){unsigned long i=(0x11bf+2350-0x1aed);
-unsigned long j=(0xfcd+3506-0x1d7f);unsigned long k=(0x1cd9+2012-0x24b5);if(NULL
-==inputs||NULL==outputs){printf(
-"\x7a\x74\x65\x5f\x73\x6d\x73\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73"
-);return(0xdf6+3171-0x1a59);}for(i=(0x1c0a+1671-0x2291);i<len;i++){j=inputs[i];
-if(g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x785+3864-0x159e)){outputs[k]=
+(0x71c+6697-0x2145);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1813+1671-0x1e9a)){
+return-(0xb7c+3894-0x1ab1);}nSrc=(0x65f+2195-0xef2);nDst=(0x1130+5414-0x2656);
+while(nSrc<nSrcLength){nChar=nSrc&(0x2bf+17-0x2c9);if(nChar==(0x1ba8+759-0x1e9f)
+){nLeft=*pSrc;if((g_zUfiSms_ConcatSms.total_msg>(0x833+2683-0x12ad))&&(nSrc==(
+nSrcLength-(0xab8+2731-0x1562)))){nDst++;}}else{*pDst=(*pSrc<<((0x1bb+665-0x44c)
+-nChar))|nLeft;nLeft=*pSrc>>nChar;pDst++;nDst++;}pSrc++;nSrc++;}return nDst;}
+SINT32 zUfiSms_EncodePdu_DeliverReport(CHAR*pDst,UINT8 TP_FCS){SINT32 nLength=
+(0x205d+469-0x2232);SINT32 nDstLength=(0x301+6254-0x1b6f);UINT8 buf[
+(0x233+6958-0x1c61)]={(0x8ac+5449-0x1df5)};if(NULL==pDst){return-
+(0x83a+7223-0x2470);}if(TP_FCS!=(0x1e95+123-0x1f10)){buf[(0x110c+139-0x1197)]=
+(0x1598+3220-0x222c);buf[(0xbea+737-0xeca)]=TP_FCS;buf[(0x121a+423-0x13bf)]=
+(0xa6+6218-0x18f0);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0x215a+890-0x24d1));}else{buf[(0xff+1075-0x532)]=(0x19d5+2164-0x2249);buf[
+(0x3e2+4993-0x1762)]=(0x52d+3382-0x1263);nDstLength+=Bytes2String(buf,&pDst[
+nDstLength],(0xb6d+4629-0x1d80));}return nDstLength;}unsigned long
+zUfiSms_ConvertAsciiToGsmDefault(const unsigned char*inputs,unsigned char*
+outputs,unsigned long len){unsigned long i=(0xb7b+2077-0x1398);unsigned long j=
+(0x163+5357-0x1650);unsigned long k=(0x209d+584-0x22e5);if(NULL==inputs||NULL==
+outputs){printf(
+"\x73\x6d\x73\x3a\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73");
+return(0x92c+3594-0x1736);}for(i=(0x1e88+1604-0x24cc);i<len;i++){j=inputs[i];if(
+g_zUfiSms_AsciiToGsmdefaultTable[j]<(0x897+2447-0x1127)){outputs[k]=
g_zUfiSms_AsciiToGsmdefaultTable[j];}else{outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0xa6c+2185-0x12ed);k++;outputs[k]=(
-g_zUfiSms_AsciiToGsmdefaultTable[j]&(0xca9+4038-0x1b70));}k++;}return k;}
+g_zUfiSms_AsciiToGsmdefaultTable[j]&65280)>>(0x230b+1030-0x2709);k++;outputs[k]=
+(g_zUfiSms_AsciiToGsmdefaultTable[j]&(0x869+4737-0x19eb));}k++;}return k;}
unsigned long zUfiSms_ConvertUcs2ToSpanish(const unsigned char*def,unsigned char
-*gsm_default,unsigned long len){unsigned long i=(0x913+2304-0x1213);unsigned
-long k=(0x3cf+261-0x4d4);unsigned long p=(0x2af+8277-0x2304);unsigned long tmp=
-(0x17df+2287-0x20ce);unsigned long s1=(0x9b5+5009-0x1d46),s2=(0xb52+1888-0x12b2)
-;unsigned long q=(0x119b+2484-0x1b4f);s1=sizeof(
+*gsm_default,unsigned long len){unsigned long i=(0x1232+2520-0x1c0a);unsigned
+long k=(0x16bc+1206-0x1b72);unsigned long p=(0x4c2+6704-0x1ef2);unsigned long
+tmp=(0x2f0+8377-0x23a9);unsigned long s1=(0x12eb+436-0x149f),s2=
+(0x894+1082-0xcce);unsigned long q=(0x15d1+888-0x1949);s1=sizeof(
zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0x76b+6890-0x2255)]);s2=sizeof(
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[(0xc5d+1601-0x129e)]);s2=sizeof(
Ucs2_To_Gsm7_SPANISH_Table_UCS)/sizeof(Ucs2_To_Gsm7_SPANISH_Table_UCS[
-(0x513+410-0x6ad)]);for(i=(0x128b+4143-0x22ba);i<len;i++){if(def[i]==
-(0x2c4+4042-0x128e)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
+(0x26a+2832-0xd7a)]);for(i=(0x132a+76-0x1376);i<len;i++){if(def[i]==
+(0x172+6150-0x1978)){i++;if(Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]!=NON_GSM){
gsm_default[k]=Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]];k++;continue;}else if((
-Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x1beb+1150-0x2049))
-){gsm_default[k]=(0x85b+7084-0x23e7);k++;continue;}for(q=(0x10e8+4684-0x2334);q<
-s1;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x61d+1458-0xbce)])
-{gsm_default[k]=(0x211+36-0x21a);k++;gsm_default[k]=
-zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x8ed+3212-0x1579)];break;}}}else{tmp=
-(def[i]<<(0xda9+1853-0x14de))+def[i+(0x1b0f+1505-0x20ef)];i++;if(tmp==8364){
-gsm_default[k]=(0xadd+3704-0x193a);k++;gsm_default[k]=(0x1a42+706-0x1c9f);k++;}
-for(p=(0xcfb+4863-0x1ffa);p<s2;p++){if(tmp==Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
-(0x74c+1160-0xbd3)]){gsm_default[k]=Ucs2_To_Gsm7_SPANISH_Table_UCS[p][
-(0x184+7146-0x1d6e)];break;}}}k++;}gsm_default[k]='\0';return k;}unsigned long
-zUfiSms_ConvertUcs2ToPortuguese(const unsigned char*def,unsigned char*
-gsm_default,unsigned long len){unsigned long i=(0x432+5814-0x1ae8);unsigned long
- k=(0x4da+7808-0x235a);unsigned long p=(0x51d+6596-0x1ee1);unsigned long tmp=
-(0x11e7+1155-0x166a);unsigned long s1=(0x1475+3328-0x2175),s2=
-(0xdef+4719-0x205e);unsigned long q=(0x42d+889-0x7a6);s1=sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0xa19+5680-0x2049)]);s2=sizeof(
+Ucs2_To_Gsm7_SPANISH_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x1129+2511-0x1ad8))
+){gsm_default[k]=(0x1b6a+468-0x1d1e);k++;continue;}for(q=(0x1096+2447-0x1a25);q<
+s1;q++){if(def[i]==zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x893+6226-0x20e4)]
+){gsm_default[k]=(0x120+3076-0xd09);k++;gsm_default[k]=
+zte_sms_GSM7_SPANISH_To_UCS2_Table_Ex[q][(0x177a+2469-0x211f)];break;}}}else{tmp
+=(def[i]<<(0x13db+2306-0x1cd5))+def[i+(0xf20+3107-0x1b42)];i++;if(tmp==
+(0x217c+5214-0x152e)){gsm_default[k]=(0xf76+342-0x10b1);k++;gsm_default[k]=
+(0x1ab5+2872-0x2588);k++;}for(p=(0x14cc+1243-0x19a7);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0x1433+473-0x160b)]){gsm_default[k]=
+Ucs2_To_Gsm7_SPANISH_Table_UCS[p][(0xda6+6491-0x2701)];break;}}}k++;}gsm_default
+[k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToPortuguese(const unsigned
+char*def,unsigned char*gsm_default,unsigned long len){unsigned long i=
+(0x1547+2940-0x20c3);unsigned long k=(0xa9+9058-0x240b);unsigned long p=
+(0x150+9340-0x25cc);unsigned long tmp=(0xbc6+3856-0x1ad6);unsigned long s1=
+(0x6fd+5405-0x1c1a),s2=(0x77d+2927-0x12ec);unsigned long q=(0x1b06+424-0x1cae);
+s1=sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x583+7910-0x2469)]);s2=sizeof(
Ucs2_To_Gsm7_PORTUGUESE_Table_UCS)/sizeof(Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[
-(0x366+6967-0x1e9d)]);for(i=(0x17d6+2907-0x2331);i<len;i++){if(def[i]==
-(0x170f+2316-0x201b)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM)
-{gsm_default[k]=Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]];k++;continue;}else if(
-(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]==NON_GSM)&&(def[i]==
-(0x2264+817-0x2575))){gsm_default[k]=(0x1b01+1509-0x20c6);k++;continue;}for(q=
-(0xcd7+5646-0x22e5);q<s1;q++){if(def[i]==
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x2a0+9211-0x269a)]){gsm_default[k]
-=(0x94c+6164-0x2145);k++;gsm_default[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex
-[q][(0x1297+1501-0x1874)];break;}}}else{tmp=(def[i]<<(0x1ca+8586-0x234c))+def[i+
-(0xf64+5162-0x238d)];i++;if(tmp==(0x2584+5659-0x1af3)){gsm_default[k]=
-(0x49c+3359-0x11a0);k++;gsm_default[k]=(0x1898+2184-0x20bb);k++;continue;}for(p=
-(0x1bf+6223-0x1a0e);p<s2;p++){if(tmp==Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][
-(0x15ea+79-0x1638)]){gsm_default[k]=Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][
-(0xf1f+4375-0x2036)];break;}}}k++;}gsm_default[k]='\0';return k;}unsigned long
-zUfiSms_ConvertUcs2ToGsmDefault(const unsigned char*def,unsigned char*
-gsm_default,unsigned long len){unsigned long i=(0x254c+240-0x263c);unsigned long
- k=(0x1023+4780-0x22cf);unsigned long p=(0x1120+1586-0x1752);unsigned long tmp=
-(0x17a4+1361-0x1cf5);unsigned long s1=(0x1f39+752-0x2229),s2=(0xc04+2170-0x147e)
-;unsigned long q=(0xb6+5174-0x14ec);s1=sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[
-(0x141d+4184-0x2475)]);s2=sizeof(UCS2_To_GSMDefault_Table_UCS2)/sizeof(
-UCS2_To_GSMDefault_Table_UCS2[(0x1534+3593-0x233d)]);for(i=(0xa0+8173-0x208d);i<
-len;i++){if(def[i]==(0x75a+7333-0x23ff)){i++;if(UCS2_To_GSMDefault_Table_ASC[def
-[i]]!=NON_GSM){gsm_default[k]=UCS2_To_GSMDefault_Table_ASC[def[i]];k++;continue;
-}else if((UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==
-(0x14b8+2287-0x1d87))){gsm_default[k]=(0x19cd+1071-0x1ddc);k++;continue;}for(q=
-(0x5a+7568-0x1dea);q<s1;q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][
-(0x1e2c+200-0x1ef3)]){gsm_default[k]=(0x6a7+7523-0x23ef);k++;gsm_default[k]=
-zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x825+3401-0x156e)];break;}}}else{tmp=(
-def[i]<<(0x13a4+3017-0x1f65))+def[i+(0x6f2+630-0x967)];i++;if(tmp==8364){
-gsm_default[k]=(0x4e2+2877-0x1004);k++;gsm_default[k]=(0xc37+1253-0x10b7);k++;
-continue;}for(p=(0x1f84+1143-0x23fb);p<s2;p++){if(tmp==
-UCS2_To_GSMDefault_Table_UCS2[p][(0x12cf+3105-0x1eef)]){gsm_default[k]=
-UCS2_To_GSMDefault_Table_UCS2[p][(0x17c2+579-0x1a05)];break;}}}k++;}gsm_default[
+(0x42d+5289-0x18d6)]);for(i=(0x1e56+621-0x20c3);i<len;i++){if(def[i]==
+(0x3fd+4215-0x1474)){i++;if(Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]!=NON_GSM){
+gsm_default[k]=Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]];k++;continue;}else if((
+Ucs2_To_Gsm7_PORTUGUESE_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0xc1+2206-0x93f))
+){gsm_default[k]=(0x16f4+3000-0x228c);k++;continue;}for(q=(0x92+7230-0x1cd0);q<
+s1;q++){if(def[i]==zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][
+(0x8fa+5987-0x205c)]){gsm_default[k]=(0x1637+1967-0x1dcb);k++;gsm_default[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[q][(0x471+8122-0x242b)];break;}}}else{
+tmp=(def[i]<<(0x1f9+4613-0x13f6))+def[i+(0x1434+2087-0x1c5a)];i++;if(tmp==8364){
+gsm_default[k]=(0x108d+656-0x1302);k++;gsm_default[k]=(0x152+4114-0x10ff);k++;
+continue;}for(p=(0x89d+987-0xc78);p<s2;p++){if(tmp==
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0x34b+9051-0x26a5)]){gsm_default[k]=
+Ucs2_To_Gsm7_PORTUGUESE_Table_UCS[p][(0xa6+7209-0x1ccf)];break;}}}k++;}
+gsm_default[k]='\0';return k;}unsigned long zUfiSms_ConvertUcs2ToGsmDefault(
+const unsigned char*def,unsigned char*gsm_default,unsigned long len){unsigned
+long i=(0x13c0+105-0x1429);unsigned long k=(0x1c56+1752-0x232e);unsigned long p=
+(0x2194+1204-0x2648);unsigned long tmp=(0x19c+2105-0x9d5);unsigned long s1=
+(0x60d+2465-0xfae),s2=(0xb43+3756-0x19ef);unsigned long q=(0x17b5+3705-0x262e);
+s1=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x1dd5+610-0x2037)]);s2=sizeof(
+UCS2_To_GSMDefault_Table_UCS2)/sizeof(UCS2_To_GSMDefault_Table_UCS2[
+(0x707+1218-0xbc9)]);for(i=(0x82d+1919-0xfac);i<len;i++){if(def[i]==
+(0xbfc+3067-0x17f7)){i++;if(UCS2_To_GSMDefault_Table_ASC[def[i]]!=NON_GSM){
+gsm_default[k]=UCS2_To_GSMDefault_Table_ASC[def[i]];k++;continue;}else if((
+UCS2_To_GSMDefault_Table_ASC[def[i]]==NON_GSM)&&(def[i]==(0x157b+1449-0x1b04))){
+gsm_default[k]=(0x10e2+1164-0x154e);k++;continue;}for(q=(0x1ae5+2805-0x25da);q<
+s1;q++){if(def[i]==zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x1fe2+961-0x23a2)]){
+gsm_default[k]=(0x232+3757-0x10c4);k++;gsm_default[k]=
+zte_sms_GSMDefault_To_UCS2_Table_Ex[q][(0x15b4+819-0x18e7)];break;}}}else{tmp=(
+def[i]<<(0xe8d+6092-0x2651))+def[i+(0x8df+3699-0x1751)];i++;if(tmp==
+(0x2242+9433-0x266f)){gsm_default[k]=(0x702+3583-0x14e6);k++;gsm_default[k]=
+(0x165+1809-0x811);k++;continue;}for(p=(0xfa6+3990-0x1f3c);p<s2;p++){if(tmp==
+UCS2_To_GSMDefault_Table_UCS2[p][(0xd87+3484-0x1b22)]){gsm_default[k]=
+UCS2_To_GSMDefault_Table_UCS2[p][(0x5fb+2871-0x1132)];break;}}}k++;}gsm_default[
k]='\0';return k;}UINT8 zUfiSms_TsIntToBcd(const UINT8 i){return(UINT8)(((i%
-(0x1977+2544-0x235d))+((i/(0xb15+1156-0xf8f))<<(0x367+4779-0x160e))));}void
+(0x1ed+1316-0x707))+((i/(0x116c+4881-0x2473))<<(0x103f+4106-0x2045))));}void
zUfiSms_DecodeRelativeTime(UINT8 iValidTime,T_zUfiSms_TimeStamp*ptTimeStamp){
-uint32 i=(0x711+6121-0x1efa);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
-(0x106a+2764-0x1b36),sizeof(wms_timestamp_s_type));if(iValidTime<
-(0xd2+5366-0x1538)){i=(iValidTime+(0x7a3+5450-0x1cec))*(0xcc8+6283-0x254e);
-ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x9c1+5475-0x1ee8)));
-ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x124b+3963-0x218a)));}
-else if(iValidTime<(0x14ac+77-0x1452)){i=(iValidTime-(0xbb5+1529-0x111f))*
-(0x191f+382-0x1a7f);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
-(0x1194+428-0x1334)+i/(0x12b8+4200-0x22e4)));ptTimeStamp->minute=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i%(0xcf6+3199-0x1939)));}else if(iValidTime<
-(0x10d9+3937-0x1f75)){i=iValidTime-(0x112c+2735-0x1b35);ptTimeStamp->month=(
-UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0x1e9c+2115-0x26c1)));ptTimeStamp->day=(
-UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x1894+3289-0x254f)));}else{i=(iValidTime-
-(0x2fc+4393-0x1365))*(0x5a5+143-0x62d);ptTimeStamp->year=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)(i/(0x691+6989-0x2071)));ptTimeStamp->month=(UINT8)
-zUfiSms_TsIntToBcd((UINT8)((i%(0xcc7+7-0xb61))/(0xf2d+4466-0x2081)));ptTimeStamp
-->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0xa19+3076-0x14b0))%
-(0x6db+4036-0x1681)));}}else{printf(
+uint32 i=(0x1a8c+1654-0x2102);if(ptTimeStamp!=NULL){memset((void*)ptTimeStamp,
+(0x4dc+7665-0x22cd),sizeof(wms_timestamp_s_type));if(iValidTime<
+(0x1f81+1381-0x2456)){i=(iValidTime+(0x54c+6340-0x1e0f))*(0x88f+1729-0xf4b);
+ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i/(0xf6a+3301-0x1c13)));
+ptTimeStamp->minute=(UINT8)zUfiSms_TsIntToBcd((UINT8)(i%(0x662+2583-0x103d)));}
+else if(iValidTime<(0x69b+4849-0x18e5)){i=(iValidTime-(0xd89+4699-0x1f55))*
+(0x11a9+1276-0x1687);ptTimeStamp->hour=(UINT8)zUfiSms_TsIntToBcd((UINT8)(
+(0x280+4066-0x1256)+i/(0x4cb+1637-0xaf4)));ptTimeStamp->minute=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0xc56+2114-0x145c)));}else if(iValidTime<
+(0xf08+3972-0x1dc7)){i=iValidTime-(0x1184+4749-0x236b);ptTimeStamp->month=(UINT8
+)zUfiSms_TsIntToBcd((UINT8)(i/(0x22cd+802-0x25d1)));ptTimeStamp->day=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i%(0xa48+7395-0x270d)));}else{i=(iValidTime-
+(0x1c72+447-0x1d71))*(0x1717+3370-0x243a);ptTimeStamp->year=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)(i/(0x2060+632-0x216b)));ptTimeStamp->month=(UINT8)
+zUfiSms_TsIntToBcd((UINT8)((i%(0x820+149-0x748))/(0x1d45+1419-0x22b2)));
+ptTimeStamp->day=(UINT8)zUfiSms_TsIntToBcd((UINT8)((i%(0x1751+3620-0x2408))%
+(0x151+4181-0x1188)));}}else{printf(
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x72\x65\x6c\x61\x74\x69\x76\x65\x5f\x74\x69\x6d\x65"
);}}int zUfiSms_CharToInt(char*pCharArray,int iLen,unsigned char*pIntArray){int
-i=(0x331+8406-0x2407);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}
-for(i=(0x1dd+8465-0x22ee);i<iLen;i++){pIntArray[i]=pCharArray[i]-
-((char)(0x17fa+670-0x1a68));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
+i=(0xab4+1182-0xf52);if(pIntArray==NULL||pCharArray==NULL){return ZUFI_FAIL;}for
+(i=(0x10fd+2353-0x1a2e);i<iLen;i++){pIntArray[i]=pCharArray[i]-
+((char)(0x3c+7362-0x1cce));}return ZUFI_SUCC;}void zUfiSms_FillGlobalTpudGsm7(
T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*ptConcatSms,
-T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x12aa+3193-0x1f23);if(ptConcatSms->
-total_msg>(0x1339+3577-0x2131)){g_zUfiSms_SendingSms.TP_UDHI=
-(0x1b8d+2145-0x23ed);g_zUfiSms_SendingSms.TP_UD[(0xe7d+1558-0x1493)]=
-(0x1224+2609-0x1c50);g_zUfiSms_SendingSms.TP_UD[(0x589+7322-0x2222)]=
-(0x384+934-0x725);g_zUfiSms_SendingSms.TP_UD[(0x131b+4965-0x267e)]=
-(0x1d8+461-0x3a2);g_zUfiSms_SendingSms.TP_UD[(0x803+7720-0x2628)]=(char)
-ptDbSaveData->concat_info[(0xdcc+4326-0x1eb2)]%(0x24e2+447-0x25a2);
-g_zUfiSms_SendingSms.TP_UD[(0x12f1+950-0x16a3)]=(char)ptConcatSms->total_msg;
-g_zUfiSms_SendingSms.TP_UD[(0x1f39+957-0x22f1)]=(char)ptConcatSms->
-current_sending+(0x10b+7953-0x201b);g_zUfiSms_SendingSms.TP_UD[
-(0xb8c+4572-0x1d62)]=(0x686+1760-0xd60);for(i=(0x8fc+1991-0x10c3);i<ptSubmit->
-user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i+(0x751+7706-0x2564)]=ptSubmit
-->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->user_data.
-sm_len+(0xdd6+4027-0x1d8a);}else{for(i=(0x1f47+1291-0x2452);i<ptSubmit->
-user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD[i]=ptSubmit->user_data.sm_data[
-i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->user_data.sm_len;}}void
-zUfiSms_FillGlobalTpudUcs2(T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*
-ptConcatSms,T_zUfiSms_DbStoreData*ptDbSaveData){if(ptConcatSms->total_msg>
-(0x1d0d+84-0x1d60)){g_zUfiSms_SendingSms.TP_UDHI=(0x778+468-0x94b);
-g_zUfiSms_SendingSms.TP_UD[(0x15d3+3362-0x22f5)]=(0x1b2b+1074-0x1f58);
-g_zUfiSms_SendingSms.TP_UD[(0x45a+8242-0x248b)]=(0x4ac+8331-0x2532);
-g_zUfiSms_SendingSms.TP_UD[(0x1165+1431-0x16fa)]=(0xdfd+5711-0x2449);
-g_zUfiSms_SendingSms.TP_UD[(0x1650+1750-0x1d23)]=(char)ptDbSaveData->concat_info
-[(0x474+2439-0xdfb)]%(0x1252+4115-0x2166);g_zUfiSms_SendingSms.TP_UD[
-(0x1a2f+2949-0x25b0)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
-(0x148c+1474-0x1a49)]=(char)ptConcatSms->current_sending+(0x9b4+847-0xd02);(void
-)Bytes2String(ptSubmit->user_data.sm_data,&g_zUfiSms_SendingSms.TP_UD[
-(0x1ad7+1962-0x227b)],ptSubmit->user_data.sm_len);}else{(void)Bytes2String(
-ptSubmit->user_data.sm_data,g_zUfiSms_SendingSms.TP_UD,ptSubmit->user_data.
-sm_len);}}unsigned char zUfiSms_Low2High(unsigned char x){if(x>=
-((char)(0x2bd+540-0x478))&&x<((char)(0x307+2072-0xab8))){x=(x-
-((char)(0x1237+2692-0x1c5a)))+((char)(0x23aa+818-0x269b));}return x;}unsigned
-char zUfiSms_Char2Dec(unsigned char x){unsigned char d=(0x1316+3561-0x20ff);if(x
->=((char)(0x1342+4344-0x23f9))&&x<((char)(0x1e7a+992-0x2213))){d=(x-
-((char)(0xeb8+5019-0x2212)))+(0x6d7+1257-0xbb6);}else{d=x-
-((char)(0x16c+657-0x3cd));}return d;}unsigned char zUfiSms_Char2Byte(unsigned
-char a,unsigned char b){unsigned char data=(0x1f0+937-0x599);unsigned char l=
-(0x4c+7835-0x1ee7),h=(0x4a6+4833-0x1787);a=zUfiSms_Low2High(a);b=
-zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=zUfiSms_Char2Dec(b);data=h*
-(0xbc+7440-0x1dbc)+l;return data;}void zUfiSms_Str2Bytes(unsigned char*text,int
-text_len,unsigned char*data,int data_len){int i=(0x7fc+309-0x931);while(
-(0x147b+738-0x175b)*i+(0xc43+1120-0x10a2)<text_len){data[i]=zUfiSms_Char2Byte(
-text[(0x1b62+2301-0x245d)*i],text[(0xd45+2684-0x17bf)*i+(0xc80+2549-0x1674)]);i
-++;}}int zUfiSms_SplitString(char*input,char***output,char cMatchChar){int src=
-(0x73d+5963-0x1e88);int dst=(0x19b8+3332-0x26bc);int count=(0xaf9+5599-0x20d8);
-int size=(0xf9+1360-0x641);char quoted=(0x9a1+5523-0x1f34);char**tmpout=NULL;*
-output=(char**)malloc(sizeof(char*)*size);if(NULL==*output){return-
-(0x1ad7+831-0x1e15);}(*output)[count++]=input;for(src=dst=(0x633+361-0x79c);
-input[src];){char cInputChar=input[src];if(!quoted&&cInputChar==cMatchChar){
-input[dst++]=(0x7b+9050-0x23d5);while(input[++src]&&(int)isspace(input[src])){};
-if(count>=size){size+=(0xc36+4252-0x1cc2);tmpout=(char**)realloc(*output,sizeof(
-char*)*size);if(NULL==tmpout){return-(0xe68+5893-0x256c);}*output=tmpout;}(*
-output)[count++]=input+dst;}else if(!quoted&&(cInputChar=='\''||cInputChar==
-((char)(0x14f7+1040-0x18e5)))){quoted=cInputChar;src++;}else if(cInputChar==
-quoted){quoted=(0x7fc+7912-0x26e4);src++;}else{if(cInputChar=='\\'&"ed!='\''
-){src++;cInputChar=input[src];if(!cInputChar){free(*output);*output=NULL;return-
-(0x1095+1804-0x17a0);}}input[dst++]=cInputChar;src++;}}input[dst]=
-(0x180+7592-0x1f28);if(quoted){free(*output);*output=NULL;return-
-(0x1033+480-0x1212);}return count;}int zUfiSms_atohex(char c){int result=
-(0x1b08+501-0x1cfd);if(c>=((char)(0x12ef+3718-0x2145))&&c<=
-((char)(0xbb8+1478-0x1145))){result=c-((char)(0x47b+7283-0x20be));}else if(c>=
-((char)(0x8e3+6737-0x22d3))&&c<=((char)(0x245+2720-0xc7f))){result=(c-
-((char)(0xf1+892-0x40c)))+(0x1687+605-0x18da);}else if(c>=
-((char)(0x1b94+1671-0x21da))&&c<=((char)(0x10d9+2875-0x1bce))){result=(c-
-((char)(0x4ef+2525-0xe8b)))+(0x1389+1306-0x1899);}else{at_print(LOG_DEBUG,
+T_zUfiSms_DbStoreData*ptDbSaveData){int i=(0x1238+139-0x12c3);if(ptConcatSms->
+total_msg>(0x110+3512-0xec7)){g_zUfiSms_SendingSms.TP_UDHI=(0xbbf+5749-0x2233);
+g_zUfiSms_SendingSms.TP_UD[(0x48f+2439-0xe16)]=(0x1787+1562-0x1d9c);
+g_zUfiSms_SendingSms.TP_UD[(0xc54+4163-0x1c96)]=(0x1352+288-0x146d);
+g_zUfiSms_SendingSms.TP_UD[(0x9b4+6277-0x2237)]=(0xddf+5997-0x2549);
+g_zUfiSms_SendingSms.TP_UD[(0x100c+4612-0x220d)]=(char)ptDbSaveData->concat_info
+[(0xb2+2596-0xad6)]%(0xc17+5322-0x1fe2);g_zUfiSms_SendingSms.TP_UD[
+(0x460+5578-0x1a26)]=(char)ptConcatSms->total_msg;g_zUfiSms_SendingSms.TP_UD[
+(0x26d+4930-0x15aa)]=(char)ptConcatSms->current_sending+(0xc06+618-0xe6f);
+g_zUfiSms_SendingSms.TP_UD[(0x1626+3954-0x2592)]=(0x8ef+6495-0x2248);for(i=
+(0x991+6627-0x2374);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
+[i+(0x127b+4967-0x25db)]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.
+TP_UDLength=ptSubmit->user_data.sm_len+(0x39+20-0x46);}else{for(i=
+(0x1b00+986-0x1eda);i<ptSubmit->user_data.sm_len;i++){g_zUfiSms_SendingSms.TP_UD
+[i]=ptSubmit->user_data.sm_data[i];}g_zUfiSms_SendingSms.TP_UDLength=ptSubmit->
+user_data.sm_len;}}void zUfiSms_FillGlobalTpudUcs2(T_zUfiSms_SubmitTpdu*ptSubmit
+,T_zUfiSms_ConcatInfo*ptConcatSms,T_zUfiSms_DbStoreData*ptDbSaveData){if(
+ptConcatSms->total_msg>(0x10bc+1834-0x17e5)){g_zUfiSms_SendingSms.TP_UDHI=
+(0x1c9+4659-0x13fb);g_zUfiSms_SendingSms.TP_UD[(0xdb3+2187-0x163e)]=
+(0x1237+799-0x1551);g_zUfiSms_SendingSms.TP_UD[(0xa8f+6106-0x2268)]=
+(0x1e4a+1658-0x24bf);g_zUfiSms_SendingSms.TP_UD[(0x3c0+8161-0x239f)]=
+(0x69c+6601-0x2062);g_zUfiSms_SendingSms.TP_UD[(0x118+8530-0x2267)]=(char)
+ptDbSaveData->concat_info[(0xdc+3724-0xf68)]%(0x1cf7+1461-0x21ad);
+g_zUfiSms_SendingSms.TP_UD[(0xf9d+735-0x1278)]=(char)ptConcatSms->total_msg;
+g_zUfiSms_SendingSms.TP_UD[(0xb3f+5065-0x1f03)]=(char)ptConcatSms->
+current_sending+(0x1a3+2259-0xa75);(void)Bytes2String(ptSubmit->user_data.
+sm_data,&g_zUfiSms_SendingSms.TP_UD[(0x1fad+830-0x22e5)],ptSubmit->user_data.
+sm_len);}else{(void)Bytes2String(ptSubmit->user_data.sm_data,
+g_zUfiSms_SendingSms.TP_UD,ptSubmit->user_data.sm_len);}}unsigned char
+zUfiSms_Low2High(unsigned char x){if(x>=((char)(0xe6c+3448-0x1b83))&&x<
+((char)(0x3c2+7155-0x1f4e))){x=(x-((char)(0x18a6+113-0x18b6)))+
+((char)(0x62+4339-0x1114));}return x;}unsigned char zUfiSms_Char2Dec(unsigned
+char x){unsigned char d=(0x1946+1145-0x1dbf);if(x>=((char)(0x231+6199-0x1a27))&&
+x<((char)(0x202a+98-0x2045))){d=(x-((char)(0x1e6f+984-0x2206)))+
+(0x19bb+970-0x1d7b);}else{d=x-((char)(0x58+9059-0x238b));}return d;}unsigned
+char zUfiSms_Char2Byte(unsigned char a,unsigned char b){unsigned char data=
+(0x8c6+50-0x8f8);unsigned char l=(0xde9+1301-0x12fe),h=(0x903+126-0x981);a=
+zUfiSms_Low2High(a);b=zUfiSms_Low2High(b);h=zUfiSms_Char2Dec(a);l=
+zUfiSms_Char2Dec(b);data=h*(0xda4+4649-0x1fbd)+l;return data;}void
+zUfiSms_Str2Bytes(unsigned char*text,int text_len,unsigned char*data,int
+data_len){int i=(0x9e5+5100-0x1dd1);while((0xa40+3420-0x179a)*i+
+(0x1b+3713-0xe9b)<text_len){data[i]=zUfiSms_Char2Byte(text[(0x37b+5313-0x183a)*i
+],text[(0x67c+7917-0x2567)*i+(0x4d2+4541-0x168e)]);i++;}}int zUfiSms_SplitString
+(char*input,char***output,char cMatchChar){int src=(0x6af+4199-0x1716);int dst=
+(0x19bb+2044-0x21b7);int count=(0x107+3939-0x106a);int size=(0x13d3+2668-0x1e37)
+;char quoted=(0x1f1+6101-0x19c6);char**tmpout=NULL;*output=(char**)malloc(sizeof
+(char*)*size);if(NULL==*output){return-(0x11a6+144-0x1235);}(*output)[count++]=
+input;for(src=dst=(0x11c6+1291-0x16d1);input[src];){char cInputChar=input[src];
+if(!quoted&&cInputChar==cMatchChar){input[dst++]=(0x872+2245-0x1137);while(input
+[++src]&&(int)isspace(input[src])){};if(count>=size){size+=(0x17cd+986-0x1b97);
+tmpout=(char**)realloc(*output,sizeof(char*)*size);if(NULL==tmpout){return-
+(0x9e3+482-0xbc4);}*output=tmpout;}(*output)[count++]=input+dst;}else if(!quoted
+&&(cInputChar=='\''||cInputChar==((char)(0x107b+1601-0x169a)))){quoted=
+cInputChar;src++;}else if(cInputChar==quoted){quoted=(0xd25+2540-0x1711);src++;}
+else{if(cInputChar=='\\'&"ed!='\''){src++;cInputChar=input[src];if(!
+cInputChar){free(*output);*output=NULL;return-(0x1263+4600-0x245a);}}input[dst++
+]=cInputChar;src++;}}input[dst]=(0x1ab5+913-0x1e46);if(quoted){free(*output);*
+output=NULL;return-(0xad+9646-0x265a);}return count;}int zUfiSms_atohex(char c){
+int result=(0x8bd+2875-0x13f8);if(c>=((char)(0x4cb+5256-0x1923))&&c<=
+((char)(0x14af+76-0x14c2))){result=c-((char)(0x12a+4105-0x1103));}else if(c>=
+((char)(0x62+7130-0x1bdb))&&c<=((char)(0x317+5411-0x17d4))){result=(c-
+((char)(0x1814+3211-0x243e)))+(0xaa6+4580-0x1c80);}else if(c>=
+((char)(0x261+4768-0x14c0))&&c<=((char)(0x2210+38-0x21f0))){result=(c-
+((char)(0x141+7559-0x1e87)))+(0x7c7+6017-0x1f3e);}else{at_print(LOG_DEBUG,
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x61\x74\x6f\x68\x65\x78\x20\x65\x72\x72\x6f\x72\x2c\x63\x61\x6e\x20\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x63\x68\x61\x72\x3a\x25\x63" "\n"
,c);return result;}return result;}int zUfiSms_DispatchWtoi(unsigned char*in_ptr,
-int iLength,unsigned char*out_ptr){int low=(0x13a7+4205-0x2414);int high=
-(0x5c2+5240-0x1a3a);if(in_ptr==NULL||out_ptr==NULL){printf(
-"\x7a\x74\x65\x5f\x73\x6d\x73\x3a\x69\x6e\x76\x61\x69\x6c\x64\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72" "\n"
-);return ZUFI_FAIL;}while(iLength>(0x34b+9006-0x2679)){low=in_ptr[iLength-
-(0x1700+1774-0x1ded)]&(0x56b+1494-0xb32);high=(in_ptr[iLength-
-(0x1418+4323-0x24fa)]&(0x111+3800-0xef9))>>(0xdc1+1783-0x14b4);out_ptr[
-(0x175b+2841-0x2272)*iLength-(0x1c41+2186-0x24ca)]=g_zUfiSms_DigAscMap[low];
-out_ptr[(0x814+4246-0x18a8)*iLength-(0x38d+4651-0x15b6)]=g_zUfiSms_DigAscMap[
-high];iLength--;}return ZUFI_SUCC;}unsigned int
-zte_wms_convert_PORTUGUESE_To_UCS2(const unsigned char*gsmdef,unsigned char*ucs2
-,unsigned int len){unsigned int i=(0x570+2309-0xe75);unsigned int j=
-(0x1571+3526-0x2337);unsigned int k=(0x1422+1555-0x1a35);unsigned int p=
-(0x14bf+3742-0x235d);unsigned int s=(0x7d9+4985-0x1b52);s=sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x9a9+1471-0xf68)]);for(i=
-(0xac0+6864-0x2590);i<len;i++){j=gsmdef[i];if(j==(0x16d5+1144-0x1b32)){i++;for(p
-=(0xce6+3263-0x19a5);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
-(0xd60+6193-0x2591)]==gsmdef[i]){ucs2[k]=
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x15dc+2192-0x1e6b)]>>
-(0xc1a+4573-0x1def);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1161+3446-0x1ed6)]);break;}}}else
-{ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x798+2508-0x115c);k++;ucs2[
-k]=(unsigned char)(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]);}k++;}ucs2[k]='\0';
+int iLength,unsigned char*out_ptr){int low=(0x12ea+241-0x13db);int high=
+(0x527+199-0x5ee);if(in_ptr==NULL||out_ptr==NULL){printf(
+"\x73\x6d\x73\x3a\x69\x6e\x76\x61\x69\x6c\x64\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72" "\n"
+);return ZUFI_FAIL;}while(iLength>(0x82c+3056-0x141c)){low=in_ptr[iLength-
+(0x1dbc+663-0x2052)]&(0x11c3+3237-0x1e59);high=(in_ptr[iLength-
+(0x1796+370-0x1907)]&(0x924+7021-0x23a1))>>(0x409+3122-0x1037);out_ptr[
+(0x19f8+1109-0x1e4b)*iLength-(0x741+5704-0x1d88)]=g_zUfiSms_DigAscMap[low];
+out_ptr[(0x2ea+1755-0x9c3)*iLength-(0x11+5529-0x15a8)]=g_zUfiSms_DigAscMap[high]
+;iLength--;}return ZUFI_SUCC;}unsigned int zte_wms_convert_PORTUGUESE_To_UCS2(
+const unsigned char*gsmdef,unsigned char*ucs2,unsigned int len){unsigned int i=
+(0x86d+4217-0x18e6);unsigned int j=(0x4ba+6045-0x1c57);unsigned int k=
+(0x6dc+4386-0x17fe);unsigned int p=(0x1cf1+854-0x2047);unsigned int s=
+(0x1fc7+293-0x20ec);s=sizeof(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[(0x1339+4943-0x2688)]);for(i=
+(0x1521+2956-0x20ad);i<len;i++){j=gsmdef[i];if(j==(0x1a08+1595-0x2028)){i++;for(
+p=(0x5c3+6041-0x1d5c);p<s;p++){if(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][
+(0x101+7426-0x1e03)]==gsmdef[i]){ucs2[k]=
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0xb99+1715-0x124b)]>>
+(0x339+8570-0x24ab);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSM7_PORTUGUESE_To_UCS2_Table_Ex[p][(0x1e6+623-0x454)]);break;}}}else{
+ucs2[k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0xb20+1155-0xf9b);k++;ucs2[k]
+=(unsigned char)(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]);}k++;}ucs2[k]='\0';
return k;}unsigned int zte_wms_convert_PORTUGUESE_To_UCS2_USE_GSM7_SS_PORTU_LS(
const unsigned char*gsmdef,unsigned char*ucs2,unsigned int len){unsigned int i=
-(0x1def+778-0x20f9);unsigned int j=(0x1920+1405-0x1e9d);unsigned int k=
-(0xc6+5144-0x14de);unsigned int p=(0x12e7+1647-0x1956);unsigned int s=
-(0x1255+774-0x155b);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x3e4+3624-0x120c)]);for(i=
-(0x153a+3455-0x22b9);i<len;i++){j=gsmdef[i];if(j==(0x382+1135-0x7d6)){i++;for(p=
-(0x1da4+1416-0x232c);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x65+632-0x2dd)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x490+894-0x80d)]>>(0x663+6676-0x206f);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0xfda+5199-0x2428)]);break;}}}else{ucs2[
-k]=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x454+3458-0x11ce);k++;ucs2[k]=(
+(0x1495+973-0x1862);unsigned int j=(0x80b+4406-0x1941);unsigned int k=
+(0x1185+480-0x1365);unsigned int p=(0xd19+4580-0x1efd);unsigned int s=
+(0x204d+1500-0x2629);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x172d+2234-0x1fe7)]);for(i=
+(0xe53+1757-0x1530);i<len;i++){j=gsmdef[i];if(j==(0x19c8+2082-0x21cf)){i++;for(p
+=(0x11c5+1069-0x15f2);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x296+6932-0x1daa)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x542+3912-0x1489)]>>(0xe13+6204-0x2647);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x62a+137-0x6b2)]);break;}}}else{ucs2[k]
+=zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]>>(0x5f1+2380-0xf35);k++;ucs2[k]=(
unsigned char)(zte_sms_GSM7_PORTUGUESE_To_UCS2_Table[j]);}k++;}ucs2[k]='\0';
return k;}unsigned long zte_wms_convert_GSMDefault_to_UCS2(const unsigned char*
-gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=(0xf19+2417-0x188a)
-;unsigned long j=(0x6a3+3478-0x1439);unsigned long k=(0x42d+3250-0x10df);
-unsigned long p=(0x900+2788-0x13e4);unsigned long s=(0x1710+407-0x18a7);unsigned
- long is_find=(0x160c+695-0x18c3);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/
-sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x4a+3428-0xdae)]);for(i=
-(0x7e4+6431-0x2103);i<len;i++){j=gsmdef[i];if(j==(0x1d40+2524-0x2701)){i++;for(p
-=(0x670+1891-0xdd3);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x1093+662-0x1329)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
-(0x7f9+26-0x812)]>>(0x414+7683-0x220f);k++;ucs2[k]=(unsigned char)(
-zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x140d+2312-0x1d14)]);is_find=
-(0x1292+3706-0x210b);break;}}if(!is_find){at_print(LOG_DEBUG,
-"\x7a\x74\x65\x5f\x73\x6d\x73\x3a\x20\x64\x61\x74\x61\x20\x3d\x20\x25\x64\x20\x6e\x6f\x74\x20\x66\x69\x6e\x64\x20\x69\x6e\x20\x67\x73\x6d\x64\x65\x66\x61\x75\x6c\x74\x20\x65\x78\x74\x65\x6e\x73\x69\x6f\x6e\x20\x74\x61\x62\x6c\x65" "\n"
-,gsmdef[i]);i--;ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x9fd+5157-0x1e1a)
+gsmdef,unsigned char*ucs2,unsigned long len){unsigned long i=(0x3ad+2639-0xdfc);
+unsigned long j=(0x4a5+3168-0x1105);unsigned long k=(0xe20+3285-0x1af5);unsigned
+ long p=(0x728+3423-0x1487);unsigned long s=(0xadf+3845-0x19e4);unsigned long
+is_find=(0xb22+2619-0x155d);s=sizeof(zte_sms_GSMDefault_To_UCS2_Table_Ex)/sizeof
+(zte_sms_GSMDefault_To_UCS2_Table_Ex[(0x304+4240-0x1394)]);for(i=
+(0x16e2+3466-0x246c);i<len;i++){j=gsmdef[i];if(j==(0xa89+6866-0x2540)){i++;for(p
+=(0x594+1508-0xb78);p<s;p++){if(zte_sms_GSMDefault_To_UCS2_Table_Ex[p][
+(0x2019+1208-0x24d1)]==gsmdef[i]){ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table_Ex[p]
+[(0xd6d+3162-0x19c6)]>>(0x5a0+2173-0xe15);k++;ucs2[k]=(unsigned char)(
+zte_sms_GSMDefault_To_UCS2_Table_Ex[p][(0x5db+3081-0x11e3)]);is_find=
+(0x1512+3974-0x2497);break;}}if(!is_find){at_print(LOG_DEBUG,
+"\x73\x6d\x73\x3a\x20\x64\x61\x74\x61\x20\x3d\x20\x25\x64\x20\x6e\x6f\x74\x20\x66\x69\x6e\x64\x20\x69\x6e\x20\x67\x73\x6d\x64\x65\x66\x61\x75\x6c\x74\x20\x65\x78\x74\x65\x6e\x73\x69\x6f\x6e\x20\x74\x61\x62\x6c\x65" "\n"
+,gsmdef[i]);i--;ucs2[k]=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x639+8053-0x25a6)
;k++;ucs2[k]=(unsigned char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}}else{ucs2[k]
-=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x12ad+2843-0x1dc0);k++;ucs2[k]=(unsigned
- char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}k++;}ucs2[k]='\0';return k;}void
+=zte_sms_GSMDefault_To_UCS2_Table[j]>>(0x5d7+6022-0x1d55);k++;ucs2[k]=(unsigned
+char)(zte_sms_GSMDefault_To_UCS2_Table[j]);}k++;}ucs2[k]='\0';return k;}void
zUfiSms_ConvertUcs2(char*data,UINT16 sms_len,char*out_content){char
-ascii_content[(0x4f4+7581-0x228f)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
-(0x6d1+1610-0xd1a)]={(0x721+5503-0x1ca0)};UINT16 len=(0xa80+4843-0x1d6b);switch(
-g_zUfiSms_Language){case DCS_PORTUGUESE:if(g_zUfiSms_IsLanguageShift==
+ascii_content[(0x1f49+515-0x214a)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX+
+(0x874+4371-0x1986)]={(0x1d1d+686-0x1fcb)};UINT16 len=(0x1738+2785-0x2219);
+switch(g_zUfiSms_Language){case DCS_PORTUGUESE:if(g_zUfiSms_IsLanguageShift==
WMS_UDH_NAT_LANG_SS){len=zte_wms_convert_PORTUGUESE_To_UCS2((const UINT8*)data,(
UINT8*)ascii_content,sms_len);}else if(g_zUfiSms_IsLanguageShift==
WMS_UDH_NAT_LANG_LS){len=zte_wms_convert_PORTUGUESE_To_UCS2_USE_GSM7_SS_PORTU_LS
@@ -669,47 +674,47 @@
sms_len);break;}(void)zUfiSms_DispatchWtoi((char*)ascii_content,len,(char*)
out_content);}boolean zUfiSms_DecodeContent(char*msg_content,UINT16 sms_len,
boolean isEsc,char*out_content){boolean endEsc=FALSE;char*p=NULL;static char
-data[(0x10ed+595-0x133f)+(0x2027+1141-0x23fc)+(0xcf0+6057-0x2498)]={
-(0x1663+1784-0x1d5b)};int len=(0x6a5+6431-0x1fc4);if(msg_content==NULL||
-out_content==NULL||sms_len>(0xe65+21-0xd3a)||sms_len<(0x763+652-0x9ed)){return
-endEsc;}len=sms_len;memset(data,(0x393+7985-0x22c4),(0x26f+5981-0x192a));p=data;
-if(isEsc){*p=(0xcd3+3712-0x1b38);p++;}zUfiSms_Str2Bytes((unsigned char*)
-msg_content,len,(unsigned char*)p,(0x3a5+1751-0x9dc));if(p[len/
-(0x1e6d+247-0x1f62)-(0x123+7865-0x1fdb)]==(0x18c3+1246-0x1d86)){endEsc=TRUE;}
-zUfiSms_ConvertUcs2(data,len/(0x76f+5055-0x1b2c)+(isEsc?(0x515+7061-0x20a9):
-(0x12aa+1011-0x169d))-(endEsc?(0x6c9+6222-0x1f16):(0xfda+3156-0x1c2e)),
+data[(0xd29+2412-0x1694)+(0x223a+1137-0x260b)+(0xb5c+5765-0x21e0)]={
+(0x612+4915-0x1945)};int len=(0x14dc+64-0x151c);if(msg_content==NULL||
+out_content==NULL||sms_len>(0xaa7+6087-0x212e)||sms_len<(0x13d3+337-0x1522)){
+return endEsc;}len=sms_len;memset(data,(0x5f0+4937-0x1939),(0x399+2539-0xce2));p
+=data;if(isEsc){*p=(0x4e1+6147-0x1cc9);p++;}zUfiSms_Str2Bytes((unsigned char*)
+msg_content,len,(unsigned char*)p,(0x19c1+33-0x1942));if(p[len/
+(0x14b1+4187-0x250a)-(0xdd3+3498-0x1b7c)]==(0xd30+2585-0x172e)){endEsc=TRUE;}
+zUfiSms_ConvertUcs2(data,len/(0x335+5300-0x17e7)+(isEsc?(0x1328+297-0x1450):
+(0x12ac+1810-0x19be))-(endEsc?(0x744+6693-0x2168):(0x1b01+1800-0x2209)),
out_content);return endEsc;}byte*zUfiSms_SmsiUtilitoa(uint32 v,byte*s,UINT16 r){
-byte buf[(0x3f5+8841-0x265d)],c;int n;n=sizeof(buf)-(0x62b+3208-0x12b2);buf[n]=
-'\0';do{c=(byte)(v%r);if(n<=(0xed8+2689-0x1959)){printf(
+byte buf[(0x4f7+803-0x7f9)],c;int n;n=sizeof(buf)-(0xac2+3357-0x17de);buf[n]=
+'\0';do{c=(byte)(v%r);if(n<=(0x2587+240-0x2677)){printf(
"\x4f\x56\x45\x52\x46\x4c\x4f\x57\x20");break;}buf[--n]=(byte)((c>
-(0x18ac+131-0x1926))?c+((char)(0xbc+13-0x88))-(0xf1a+3778-0x1dd2):c+
-((char)(0x1a5d+3076-0x2631)));}while((v/=r)>(0x347+3475-0x10da));while((*s++=buf
-[n++])!=(0x1f8a+784-0x229a));return(s-(0x1416+3308-0x2101));}byte*
+(0x1e1b+1030-0x2218))?c+((char)(0x304+9114-0x265d))-(0xe58+860-0x11aa):c+
+((char)(0xfec+711-0x1283)));}while((v/=r)>(0xf5f+1946-0x16f9));while((*s++=buf[n
+++])!=(0xbe4+5958-0x232a));return(s-(0x14b2+1012-0x18a5));}byte*
zUfiSms_SmsiAddrToStr(wms_address_s_type addr,byte*res_ptr,UINT8*type_of_addr){
-byte bcd_idx=(0x350+2443-0xcdb);UINT8 temp=(0x181f+2765-0x22ec);*type_of_addr=
-(0x95b+4160-0x199b);temp=(UINT8)((uint32)addr.number_type&(0x13a4+147-0x1430));*
-type_of_addr=(UINT8)((*type_of_addr|temp)<<(0x953+5393-0x1e60));temp=(UINT8)((
-uint32)addr.number_plan&(0xdb7+4259-0x1e53));*type_of_addr=*type_of_addr|temp;*
-type_of_addr=*type_of_addr|(0x1bb9+2270-0x2417);while(bcd_idx<addr.
-number_of_digits){if(addr.digits[bcd_idx]==(0x1439+3827-0x2322)){addr.digits[
-bcd_idx]=(0xdf+2573-0xaec);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
-bcd_idx],res_ptr,(0xc22+2654-0x1670));bcd_idx++;}return res_ptr;}byte*
+byte bcd_idx=(0x1802+3522-0x25c4);UINT8 temp=(0x677+1859-0xdba);*type_of_addr=
+(0x1df+5466-0x1739);temp=(UINT8)((uint32)addr.number_type&(0xf27+2499-0x18e3));*
+type_of_addr=(UINT8)((*type_of_addr|temp)<<(0xb5a+1422-0x10e4));temp=(UINT8)((
+uint32)addr.number_plan&(0x822+4908-0x1b47));*type_of_addr=*type_of_addr|temp;*
+type_of_addr=*type_of_addr|(0x354+4940-0x1620);while(bcd_idx<addr.
+number_of_digits){if(addr.digits[bcd_idx]==(0x1b26+2807-0x2613)){addr.digits[
+bcd_idx]=(0x357+7414-0x204d);}res_ptr=zUfiSms_SmsiUtilitoa((uint32)addr.digits[
+bcd_idx],res_ptr,(0x123b+941-0x15d8));bcd_idx++;}return res_ptr;}byte*
zUfiSms_SmsiUtilitoaFill(word v,byte*rb_ptr){int n;byte c,*ptr;ptr=rb_ptr+
-(0x905+4748-0x1b8f);*ptr='\0';for(n=(0x141+6488-0x1a99);n<(0x69c+7492-0x23de);++
-n){c=(byte)(v%(0x17da+1708-0x1e7c));v/=(0xc34+5036-0x1fd6);*--ptr=(c+
-((char)(0x711+5872-0x1dd1)));}return rb_ptr+(0x244c+704-0x270a);}void
-zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x1003+1436-0x1595)){
+(0x297+2057-0xa9e);*ptr='\0';for(n=(0x2068+1384-0x25d0);n<(0x1586+493-0x1771);++
+n){c=(byte)(v%(0x1d74+132-0x1dee));v/=(0xeb0+3811-0x1d89);*--ptr=(c+
+((char)(0x4ac+3454-0x11fa)));}return rb_ptr+(0xa78+3187-0x16e9);}void
+zUfiSms_SprintfTime(char*str_time,int len,int t){if(t<(0x18fd+2595-0x2316)){
snprintf(str_time,len,"\x30\x25\x78",t);}else{snprintf(str_time,len,"\x25\x78",t
);}}static void zUfiSms_ParseDeliverConcat8(T_zUfiSms_UdhConcat8*concat_8,
-T_zUfiSms_DbStoreData*db_data){int mux=(0x677+6688-0x2097);concat_8->seq_num--;
+T_zUfiSms_DbStoreData*db_data){int mux=(0x4a7+6704-0x1ed7);concat_8->seq_num--;
if(concat_8->total_sm>ZTE_WMS_CONCAT_SMS_COUNT_MAX){mux=(concat_8->seq_num-
concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX)/ZTE_WMS_CONCAT_SMS_COUNT_MAX;}
-db_data->concat_sms=(0xf52+4110-0x1f5f);db_data->concat_info[
-(0x1350+1601-0x1991)]=(0x14f+4005-0xff5)*mux+concat_8->msg_ref;db_data->
-concat_info[(0x165a+1075-0x1a8b)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX
-+(0xa8d+5319-0x1f53);db_data->concat_info[(0x3bf+6228-0x1c12)]=concat_8->
-total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
-(0xc16+2110-0x1453)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
+db_data->concat_sms=(0x5b6+3208-0x123d);db_data->concat_info[
+(0x190f+1038-0x1d1d)]=(0x512+5474-0x1975)*mux+concat_8->msg_ref;db_data->
+concat_info[(0x5a5+4295-0x166a)]=concat_8->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX+
+(0x7ec+1390-0xd59);db_data->concat_info[(0x1887+2068-0x209a)]=concat_8->total_sm
+-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>ZTE_WMS_CONCAT_SMS_COUNT_MAX-
+(0x1f65+1944-0x26fc)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(concat_8->total_sm%
ZTE_WMS_CONCAT_SMS_COUNT_MAX);}static void zUfiSms_ParserLangSs(wms_udh_s_type*
user_data_header){if(user_data_header==NULL){return;}switch(user_data_header->u.
nat_lang_ss.nat_lang_id){case WMS_UDH_NAT_LANG_PORTUGUESE:g_zUfiSms_Language=
@@ -718,27 +723,27 @@
user_data_header->u.nat_lang_ss.nat_lang_id){case WMS_UDH_NAT_LANG_PORTUGUESE:
g_zUfiSms_Language=DCS_PORTUGUESE;break;default:break;}}static void
zUfiSms_ParseDeliverConcat16(T_zUfiSms_UdhConcat16*concat_16,
-T_zUfiSms_DbStoreData*db_data){int mux=(0xb9d+4964-0x1f01);concat_16->seq_num--;
-db_data->concat_sms=(0x424+4052-0x13f7);
-#if (0x1b32+2022-0x2318)
-db_data->concat_info[(0x1967+73-0x19b0)]=concat_16->msg_ref;db_data->concat_info
-[(0x3c4+3617-0x11e4)]=concat_16->total_sm;db_data->concat_info[
-(0x1fbb+537-0x21d2)]=concat_16->seq_num;
+T_zUfiSms_DbStoreData*db_data){int mux=(0xba1+5466-0x20fb);concat_16->seq_num--;
+db_data->concat_sms=(0x23a5+424-0x254c);
+#if (0x899+137-0x922)
+db_data->concat_info[(0x19fb+2394-0x2355)]=concat_16->msg_ref;db_data->
+concat_info[(0xeac+1664-0x152b)]=concat_16->total_sm;db_data->concat_info[
+(0x227c+338-0x23cc)]=concat_16->seq_num;
#endif
if(concat_16->total_sm>ZTE_WMS_CONCAT_SMS_COUNT_MAX){mux=(concat_16->seq_num-
concat_16->seq_num%ZTE_WMS_CONCAT_SMS_COUNT_MAX)/ZTE_WMS_CONCAT_SMS_COUNT_MAX;}
-db_data->concat_info[(0x9e1+5874-0x20d3)]=(0x111+2187-0x89d)*mux+concat_16->
-msg_ref;db_data->concat_info[(0x390+106-0x3f8)]=concat_16->seq_num%
-ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x1231+4008-0x21d8);db_data->concat_info[
-(0xb1+6868-0x1b84)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
-ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0x7e7+4282-0x18a0)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
+db_data->concat_info[(0x14b+2947-0xcce)]=(0xb47+5965-0x2195)*mux+concat_16->
+msg_ref;db_data->concat_info[(0x2155+1195-0x25fe)]=concat_16->seq_num%
+ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0xedd+1057-0x12fd);db_data->concat_info[
+(0x546+8649-0x270e)]=concat_16->total_sm-ZTE_WMS_CONCAT_SMS_COUNT_MAX*mux>
+ZTE_WMS_CONCAT_SMS_COUNT_MAX-(0xbb9+900-0xf3c)?ZTE_WMS_CONCAT_SMS_COUNT_MAX:(
concat_16->total_sm%ZTE_WMS_CONCAT_SMS_COUNT_MAX);}static int
zUfiSms_ParseUdhiData(T_zUfiSms_Udh*user_data_header,T_zUfiSms_DbStoreData*
db_data){if(NULL==user_data_header||NULL==db_data){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73\x2e");return ZUFI_FAIL
;}switch(user_data_header->header_id){case WMS_UDH_CONCAT_8:db_data->concat_sms=
-(0x1341+4417-0x2481);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8)
-,db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x80b+3747-0x16ad);
+(0x1c4+801-0x4e4);zUfiSms_ParseDeliverConcat8(&(user_data_header->u.concat_8),
+db_data);break;case WMS_UDH_CONCAT_16:db_data->concat_sms=(0x18aa+2066-0x20bb);
zUfiSms_ParseDeliverConcat16(&(user_data_header->u.concat_16),db_data);break;
case WMS_UDH_NAT_LANG_SS:g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;
zUfiSms_ParserLangSs(user_data_header);break;case WMS_UDH_NAT_LANG_LS:
@@ -748,156 +753,156 @@
);break;}return ZUFI_SUCC;}int zUfiSms_FormatDeliverDbdata(
T_zUfiSms_ClientTsData*ts_data_ptr,T_zUfiSms_DbStoreData*db_data){int result=
ZUFI_SUCC;wms_address_s_type*address_ptr=NULL;wms_gw_alphabet_e_type tp_dcs=
-WMS_GW_ALPHABET_MAX32;int i=(0x694+1516-0xc80);int ind=(0xf76+4310-0x204c);if((
+WMS_GW_ALPHABET_MAX32;int i=(0x12a1+4671-0x24e0);int ind=(0x176+1929-0x8ff);if((
NULL==ts_data_ptr)||(NULL==db_data)){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73\x2e");return ZUFI_FAIL
;}address_ptr=&(ts_data_ptr->u.gw_pp.u.deliver.address);if(
WMS_NUMBER_INTERNATIONAL==address_ptr->number_type){memset(db_data->number,
-(0x166d+400-0x17fd),ZTE_WMS_ADDRESS_LEN_MAX+(0x155b+3332-0x225e));db_data->
-number[(0x1601+976-0x19d1)]=((char)(0x1385+2755-0x1e1d));for(i=
-(0x33c+1028-0x740);i<address_ptr->number_of_digits;i++){if((0x568+6907-0x2059)==
-address_ptr->digits[i]){db_data->number[i+(0x939+600-0xb90)]=
-((char)(0x1332+2759-0x1dc9));}else{db_data->number[i+(0xbe1+17-0xbf1)]=
-((char)(0x23ca+304-0x24ca))+address_ptr->digits[i];}}}else if(
-WMS_NUMBER_ALPHANUMERIC==address_ptr->number_type){memcpy(db_data->number,
-address_ptr->digits,address_ptr->number_of_digits);}else{if(address_ptr->
-digit_mode==WMS_DIGIT_MODE_8_BIT){memcpy(&(db_data->number[(0x573+6720-0x1fb2)])
-,address_ptr->digits,address_ptr->number_of_digits);}else{for(i=
-(0x19bc+1888-0x211c);i<address_ptr->number_of_digits;i++){if(
-(0x1e45+1202-0x22ed)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x9c+9407-0x252b));}else{db_data->number[i]=((char)(0x860+1762-0xf12))+
-address_ptr->digits[i];}}}}(void)zUfiSms_UtilTimeStamp(ts_data_ptr->u.gw_pp.u.
-deliver.timestamp,db_data->tp_scts,&db_data->julian_date);if(ts_data_ptr->u.
-gw_pp.u.deliver.user_data_header_present){db_data->tp_udhi=(0x8a3+929-0xc43);}
-else{db_data->tp_udhi=(0x1ced+296-0x1e15);}if(db_data->tp_udhi==
-(0x5aa+4229-0x162e)){for(ind=(0xab0+3919-0x19ff);ind<ts_data_ptr->u.gw_pp.u.
-deliver.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(ts_data_ptr
-->u.gw_pp.u.deliver.user_data.headers[ind]),db_data);if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x7b4+5232-0x1c23)]){printf(
+(0x1+6249-0x186a),ZTE_WMS_ADDRESS_LEN_MAX+(0x14d6+1037-0x18e2));db_data->number[
+(0xe1a+3776-0x1cda)]=((char)(0xa04+7410-0x26cb));for(i=(0x1dfa+1202-0x22ac);i<
+address_ptr->number_of_digits;i++){if((0x9b+2273-0x972)==address_ptr->digits[i])
+{db_data->number[i+(0x282+2992-0xe31)]=((char)(0x749+2241-0xfda));}else{db_data
+->number[i+(0x448+3521-0x1208)]=((char)(0xd9d+4455-0x1ed4))+address_ptr->digits[
+i];}}}else if(WMS_NUMBER_ALPHANUMERIC==address_ptr->number_type){memcpy(db_data
+->number,address_ptr->digits,address_ptr->number_of_digits);}else{if(address_ptr
+->digit_mode==WMS_DIGIT_MODE_8_BIT){memcpy(&(db_data->number[(0x1ac+9293-0x25f8)
+]),address_ptr->digits,address_ptr->number_of_digits);}else{for(i=
+(0x101+5459-0x1654);i<address_ptr->number_of_digits;i++){if((0x1445+1012-0x182f)
+==address_ptr->digits[i]){db_data->number[i]=((char)(0x62f+6573-0x1fac));}else{
+db_data->number[i]=((char)(0x40a+6723-0x1e1d))+address_ptr->digits[i];}}}}(void)
+zUfiSms_UtilTimeStamp(ts_data_ptr->u.gw_pp.u.deliver.timestamp,db_data->tp_scts,
+&db_data->julian_date);if(ts_data_ptr->u.gw_pp.u.deliver.
+user_data_header_present){db_data->tp_udhi=(0x858+7115-0x2422);}else{db_data->
+tp_udhi=(0x215f+776-0x2467);}if(db_data->tp_udhi==(0x8b9+4175-0x1907)){for(ind=
+(0x646+6641-0x2037);ind<ts_data_ptr->u.gw_pp.u.deliver.user_data.num_headers;ind
+++){result=zUfiSms_ParseUdhiData(&(ts_data_ptr->u.gw_pp.u.deliver.user_data.
+headers[ind]),db_data);if(ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[
+(0x687+6449-0x1fb7)]){printf(
"\x74\x68\x65\x20\x63\x6f\x6e\x63\x61\x74\x20\x73\x6d\x73\x20\x73\x65\x67\x6d\x65\x6e\x74\x20\x69\x73\x20\x25\x64\x2c\x61\x6e\x64\x20\x6c\x61\x72\x67\x65\x72\x20\x74\x68\x65\x6e\x20\x74\x68\x65\x20\x20\x73\x75\x70\x70\x6f\x72\x74\x65\x64\x20\x25\x64\x20\x73\x65\x67\x6d\x65\x6e\x74\x73\x2c\x73\x6f\x20\x64\x69\x64\x20\x6e\x6f\x74\x20\x64\x65\x61\x6c\x20\x74\x68\x65\x20\x63\x6f\x6e\x63\x61\x74\x20\x73\x6d\x73\x2e\x20"
-,db_data->concat_info[(0x2141+444-0x22fc)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
+,db_data->concat_info[(0x369+4347-0x1463)],ZTE_WMS_CONCAT_SMS_COUNT_MAX);if(
WMS_STORAGE_TYPE_NV_V01==db_data->mem_store){zUfiSms_DelModemSms(db_data->index)
;}result=ZUFI_FAIL;}}}tp_dcs=ts_data_ptr->u.gw_pp.u.deliver.dcs.alphabet;db_data
->sms_class=ts_data_ptr->u.gw_pp.u.deliver.dcs.msg_class;if(
WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
-(0x104a+2455-0x19e0);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x159+2860-0xc83);}else{printf(
+(0x1c71+214-0x1d46);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
+unsigned char)(0x98f+1654-0x1003);}else{printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x74\x70\x5f\x64\x63\x73\x3d\x25\x64",tp_dcs);}
db_data->tp_pid=(unsigned char)ts_data_ptr->u.gw_pp.u.deliver.pid;if(ts_data_ptr
->u.gw_pp.u.deliver.dcs.alphabet==WMS_GW_ALPHABET_UCS2){result=
zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data,
ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_len,db_data->sms_content);db_data->
alphabet=WMS_GW_ALPHABET_UCS2;}else if(ts_data_ptr->u.gw_pp.u.deliver.dcs.
-alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x586+1428-0xb1a);ind<ts_data_ptr->u.
-gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[(0xbd4+6605-0x259d)
-*ind]=((char)(0xefb+5594-0x24a5));db_data->sms_content[(0xb6a+6452-0x249a)*ind+
-(0xb30+6869-0x2604)]=((char)(0x1d5b+1213-0x21e8));db_data->sms_content[
-(0x914+4504-0x1aa8)*ind+(0x265+1094-0x6a9)]=g_zUfiSms_DigAscMap[((ts_data_ptr->u
-.gw_pp.u.deliver.user_data.sm_data[ind]&(0xf94+4856-0x219c))>>(0x444+2517-0xe15)
-)];db_data->sms_content[(0x158c+126-0x1606)*ind+(0x1f2d+1076-0x235e)]=
-g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&
-(0xb1c+4558-0x1cdb))];db_data->alphabet=WMS_GW_ALPHABET_UCS2;}}else if(
-ts_data_ptr->u.gw_pp.u.deliver.dcs.alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){
-result=zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data,
-ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_len,db_data->sms_content);db_data->
-alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;db_data->tp_dcs=(unsigned char)
-(0xb22+5688-0x2158);}return result;}int zUfiSms_FormatSubmitDbdata(
-T_zUfiSms_ClientTsData*ts_data_ptr,T_zUfiSms_DbStoreData*db_data){int result=
-ZUFI_SUCC;wms_address_s_type*address_ptr=NULL;wms_gw_alphabet_e_type tp_dcs=
-WMS_GW_ALPHABET_MAX32;int i=(0x398+8710-0x259e);int ind=(0x517+542-0x735);if((
-NULL==ts_data_ptr)||(NULL==db_data)){printf(
-"\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73\x2e");return ZUFI_FAIL
-;}address_ptr=&(ts_data_ptr->u.gw_pp.u.submit.address);if((
+alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x1c6+3103-0xde5);ind<ts_data_ptr->u.
+gw_pp.u.deliver.user_data.sm_len;ind++){db_data->sms_content[
+(0x1100+2147-0x195f)*ind]=((char)(0x113+5433-0x161c));db_data->sms_content[
+(0x432+1146-0x8a8)*ind+(0x12f1+1444-0x1894)]=((char)(0x90a+5750-0x1f50));db_data
+->sms_content[(0x7ad+4588-0x1995)*ind+(0x1c27+2460-0x25c1)]=g_zUfiSms_DigAscMap[
+((ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_data[ind]&(0xf37+3339-0x1b52))>>
+(0x678+5714-0x1cc6))];db_data->sms_content[(0x96+8838-0x2318)*ind+
+(0x1ef6+66-0x1f35)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.gw_pp.u.deliver.
+user_data.sm_data[ind]&(0x7b3+6135-0x1f9b))];db_data->alphabet=
+WMS_GW_ALPHABET_UCS2;}}else if(ts_data_ptr->u.gw_pp.u.deliver.dcs.alphabet==
+WMS_GW_ALPHABET_7_BIT_DEFAULT){result=zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.
+u.deliver.user_data.sm_data,ts_data_ptr->u.gw_pp.u.deliver.user_data.sm_len,
+db_data->sms_content);db_data->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;db_data->
+tp_dcs=(unsigned char)(0x1b7f+829-0x1eba);}return result;}int
+zUfiSms_FormatSubmitDbdata(T_zUfiSms_ClientTsData*ts_data_ptr,
+T_zUfiSms_DbStoreData*db_data){int result=ZUFI_SUCC;wms_address_s_type*
+address_ptr=NULL;wms_gw_alphabet_e_type tp_dcs=WMS_GW_ALPHABET_MAX32;int i=
+(0x251+9329-0x26c2);int ind=(0x856+3873-0x1777);if((NULL==ts_data_ptr)||(NULL==
+db_data)){printf("\x69\x6e\x76\x61\x6c\x69\x64\x20\x69\x6e\x70\x75\x74\x73\x2e")
+;return ZUFI_FAIL;}address_ptr=&(ts_data_ptr->u.gw_pp.u.submit.address);if((
WMS_NUMBER_INTERNATIONAL==address_ptr->number_type)){db_data->number[
-(0xd3+2285-0x9c0)]=((char)(0x1545+2218-0x1dc4));for(i=(0x1e8f+1073-0x22c0);i<
-address_ptr->number_of_digits;i++){if((0xb40+3964-0x1ab2)==address_ptr->digits[i
-]){db_data->number[i+(0xc76+1564-0x1291)]=((char)(0x1203+5014-0x2569));}else{
-db_data->number[i+(0x68a+948-0xa3d)]=((char)(0xf5c+3139-0x1b6f))+address_ptr->
-digits[i];}}}else{for(i=(0x1126+4695-0x237d);i<address_ptr->number_of_digits;i++
-){if((0x440+1943-0xbcd)==address_ptr->digits[i]){db_data->number[i]=
-((char)(0x1218+2705-0x1c79));}else{db_data->number[i]=
-((char)(0x187b+2761-0x2314))+address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.
-gw_pp.u.submit.dcs.alphabet;db_data->sms_class=ts_data_ptr->u.gw_pp.u.submit.dcs
-.msg_class;if(WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)
-(0xf4b+306-0x107c);}else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(
-unsigned char)(0x1020+5684-0x2652);}else{printf(
+(0x56a+3311-0x1259)]=((char)(0x71a+6631-0x20d6));for(i=(0xe91+2212-0x1735);i<
+address_ptr->number_of_digits;i++){if((0xa03+3202-0x167b)==address_ptr->digits[i
+]){db_data->number[i+(0xac3+246-0xbb8)]=((char)(0x8ac+5668-0x1ea0));}else{
+db_data->number[i+(0x138+5568-0x16f7)]=((char)(0x1de2+189-0x1e6f))+address_ptr->
+digits[i];}}}else{for(i=(0x3ff+2588-0xe1b);i<address_ptr->number_of_digits;i++){
+if((0x6b6+2294-0xfa2)==address_ptr->digits[i]){db_data->number[i]=
+((char)(0x76f+5179-0x1b7a));}else{db_data->number[i]=((char)(0x104+5106-0x14c6))
++address_ptr->digits[i];}}}tp_dcs=ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet;
+db_data->sms_class=ts_data_ptr->u.gw_pp.u.submit.dcs.msg_class;if(
+WMS_GW_ALPHABET_8_BIT>=tp_dcs){db_data->tp_dcs=(unsigned char)(0x3+37-0x27);}
+else if(WMS_GW_ALPHABET_UCS2==tp_dcs){db_data->tp_dcs=(unsigned char)
+(0x19d7+2927-0x2544);}else{printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x74\x70\x5f\x64\x63\x73\x3d\x25\x64",tp_dcs);}
db_data->tp_pid=(unsigned char)ts_data_ptr->u.gw_pp.u.submit.pid;db_data->
msg_ref=(unsigned char)ts_data_ptr->u.gw_pp.u.submit.message_reference;if(
ts_data_ptr->u.gw_pp.u.submit.user_data_header_present){db_data->tp_udhi=
-(0xbc0+1494-0x1195);}else{db_data->tp_udhi=(0x245+2603-0xc70);}if(db_data->
-tp_udhi==(0xd52+5841-0x2422)){for(ind=(0xeb0+829-0x11ed);ind<ts_data_ptr->u.
+(0x5ef+1596-0xc2a);}else{db_data->tp_udhi=(0x5b2+3697-0x1423);}if(db_data->
+tp_udhi==(0xfc9+5420-0x24f4)){for(ind=(0xd81+1956-0x1525);ind<ts_data_ptr->u.
gw_pp.u.submit.user_data.num_headers;ind++){result=zUfiSms_ParseUdhiData(&(
ts_data_ptr->u.gw_pp.u.submit.user_data.headers[ind]),db_data);if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0x2208+887-0x257e)]){printf(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<db_data->concat_info[(0xfec+3956-0x1f5f)]){printf(
"\x74\x68\x65\x20\x63\x6f\x6e\x63\x61\x74\x20\x73\x6d\x73\x20\x73\x65\x67\x6d\x65\x6e\x74\x20\x69\x73\x20\x6c\x61\x72\x67\x65\x72\x20\x74\x68\x65\x6e\x20\x74\x68\x65\x20\x20\x73\x75\x70\x70\x6f\x72\x74\x65\x64\x20\x73\x65\x67\x6d\x65\x6e\x74\x73\x2c\x73\x6f\x20\x64\x69\x64\x20\x6e\x6f\x74\x20\x64\x65\x61\x6c\x20\x74\x68\x65\x20\x63\x6f\x6e\x63\x61\x74\x20\x73\x6d\x73\x2e"
);if(WMS_STORAGE_TYPE_NV_V01==db_data->mem_store){zUfiSms_DelModemSms(db_data->
index);}result=ZUFI_FAIL;}}}if(ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet==
WMS_GW_ALPHABET_UCS2){result=zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.u.submit.
user_data.sm_data,ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len,db_data->
sms_content);db_data->alphabet=WMS_GW_ALPHABET_UCS2;}else if(ts_data_ptr->u.
-gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0x3b1+4694-0x1607);
-ind<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
-(0x100c+664-0x12a0)*ind]=((char)(0x60c+7043-0x215f));db_data->sms_content[
-(0x11da+5040-0x2586)*ind+(0x735+5370-0x1c2e)]=((char)(0x1a66+2444-0x23c2));
-db_data->sms_content[(0x9b7+2089-0x11dc)*ind+(0x12db+4315-0x23b4)]=
+gw_pp.u.submit.dcs.alphabet==WMS_GW_ALPHABET_8_BIT){for(ind=(0xcd+409-0x266);ind
+<ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len;ind++){db_data->sms_content[
+(0x107+1658-0x77d)*ind]=((char)(0x547+2424-0xe8f));db_data->sms_content[
+(0xeb6+1150-0x1330)*ind+(0x11eb+2395-0x1b45)]=((char)(0x8ab+2226-0x112d));
+db_data->sms_content[(0x1496+3785-0x235b)*ind+(0xfb+3120-0xd29)]=
g_zUfiSms_DigAscMap[((ts_data_ptr->u.gw_pp.u.submit.user_data.sm_data[ind]&
-(0x115f+347-0x11ca))>>(0x3b8+3271-0x107b))];db_data->sms_content[
-(0x75a+5893-0x1e5b)*ind+(0x3fd+2497-0xdbb)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.
-gw_pp.u.submit.user_data.sm_data[ind]&(0x42c+276-0x531))];db_data->alphabet=
+(0x8fc+3103-0x142b))>>(0x6e4+5742-0x1d4e))];db_data->sms_content[
+(0x8aa+284-0x9c2)*ind+(0x109+978-0x4d8)]=g_zUfiSms_DigAscMap[(ts_data_ptr->u.
+gw_pp.u.submit.user_data.sm_data[ind]&(0x74b+829-0xa79))];db_data->alphabet=
WMS_GW_ALPHABET_UCS2;}}else if(ts_data_ptr->u.gw_pp.u.submit.dcs.alphabet==
WMS_GW_ALPHABET_7_BIT_DEFAULT){result=zUfiSms_DispatchWtoi(ts_data_ptr->u.gw_pp.
u.submit.user_data.sm_data,ts_data_ptr->u.gw_pp.u.submit.user_data.sm_len,
db_data->sms_content);db_data->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;db_data->
-tp_dcs=(unsigned char)(0x305+5054-0x16c1);}return result;}int InvertNumbers(
+tp_dcs=(unsigned char)(0x116a+362-0x12d2);}return result;}int InvertNumbers(
const char*pSrc,char*pDst,int nSrcLength){int nDstLength;char ch;int i=
-(0x476+7571-0x2209);if(pSrc==NULL||pDst==NULL||nSrcLength<(0x1bd7+2606-0x2605)){
-return-(0xb28+1854-0x1265);}nDstLength=nSrcLength;for(i=(0x1ad6+2288-0x23c6);i<
-nSrcLength;i+=(0xf1c+5122-0x231c)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
-nSrcLength&(0x1e2+8795-0x243c)){*(pDst-(0x7cd+3500-0x1577))=
-((char)(0x1c77+1116-0x208d));nDstLength++;}*pDst='\0';return nDstLength;}int
+(0x391+7594-0x213b);if(pSrc==NULL||pDst==NULL||nSrcLength<(0xde2+1173-0x1277)){
+return-(0xeb7+802-0x11d8);}nDstLength=nSrcLength;for(i=(0x12a0+1567-0x18bf);i<
+nSrcLength;i+=(0x14a0+1933-0x1c2b)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(
+nSrcLength&(0x1ffd+1631-0x265b)){*(pDst-(0x17cb+2151-0x2030))=
+((char)(0x14da+896-0x1814));nDstLength++;}*pDst='\0';return nDstLength;}int
code_is_gsm7(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){if(pSrc->
-TP_UDHI==(0x183+9141-0x2537)){buf[(0x145+3389-0xe7f)]=(unsigned char)nLength;buf
-[(0x177b+1376-0x1cd7)]=(unsigned char)pSrc->TP_UD[(0x1e31+1071-0x2260)];buf[
-(0x1d3a+100-0x1d99)]=(0x58c+2268-0xe68);buf[(0x17f1+2028-0x1fd7)]=(unsigned char
-)pSrc->TP_UD[(0x2341+805-0x2664)];buf[(0xc59+6708-0x2686)]=(unsigned char)pSrc->
-TP_UD[(0x95+7824-0x1f22)];buf[(0x1068+861-0x13bd)]=(unsigned char)pSrc->TP_UD[
-(0x5a7+6060-0x1d4f)];buf[(0x1795+2297-0x2085)]=(unsigned char)pSrc->TP_UD[
-(0x247+1729-0x903)];buf[(0x7cb+340-0x915)]=(unsigned char)pSrc->TP_UD[
-(0x3f7+7808-0x2270)];buf[(0x1b28+2866-0x2650)]=(unsigned char)(buf[
-(0xe3f+1205-0x12ea)]<<(0x1199+4562-0x236a));nLength=nLength-(0x739+4463-0x18a1);
-nLength=Encode7bit(&(pSrc->TP_UD[(0x1afb+928-0x1e93)]),&buf[(0x12a+2996-0xcd3)],
-nLength+(0x1ab3+2904-0x260a))+(0xb9c+971-0xf63)+(0x103c+5403-0x2551);
-#if (0x846+742-0xb2c)
-nLength+=(0x1669+2591-0x2086);
+TP_UDHI==(0x697+6325-0x1f4b)){buf[(0x97b+2991-0x1527)]=(unsigned char)nLength;
+buf[(0x1d99+373-0x1f0a)]=(unsigned char)pSrc->TP_UD[(0x263+4514-0x1405)];buf[
+(0x1fd+8663-0x23cf)]=(0x162f+2770-0x2101);buf[(0xbcb+5728-0x2225)]=(unsigned
+char)pSrc->TP_UD[(0x298+950-0x64c)];buf[(0xf99+803-0x12b5)]=(unsigned char)pSrc
+->TP_UD[(0x13a6+339-0x14f6)];buf[(0x1161+5185-0x259a)]=(unsigned char)pSrc->
+TP_UD[(0x16c5+3002-0x227b)];buf[(0xd95+4376-0x1ea4)]=(unsigned char)pSrc->TP_UD[
+(0x15d+3895-0x108f)];buf[(0xac1+5269-0x1f4c)]=(unsigned char)pSrc->TP_UD[
+(0x38c+2739-0xe38)];buf[(0x155+4486-0x12d1)]=(unsigned char)(buf[
+(0x18a1+3540-0x266b)]<<(0x1095+5671-0x26bb));nLength=nLength-
+(0x1801+3673-0x2653);nLength=Encode7bit(&(pSrc->TP_UD[(0x341+2174-0xbb7)]),&buf[
+(0x26b+637-0x4dd)],nLength+(0x14db+2160-0x1d4a))+(0x399+2738-0xe47)+
+(0x10b3+4797-0x236a);
+#if (0x41a+3762-0x12cc)
+nLength+=(0x1761+1885-0x1ebc);
#endif
-}else{nLength=pSrc->TP_UDLength;buf[(0x15c5+605-0x181f)]=nLength;nLength=
-Encode7bit(pSrc->TP_UD,&buf[(0x9a2+4580-0x1b82)],nLength+(0x1e4+8768-0x2423))+
-(0x553+2621-0xf8c);}at_print(LOG_DEBUG,
+}else{nLength=pSrc->TP_UDLength;buf[(0xc9b+4922-0x1fd2)]=nLength;nLength=
+Encode7bit(pSrc->TP_UD,&buf[(0x1a8a+1112-0x1ede)],nLength+(0x1c85+559-0x1eb3))+
+(0xa67+2989-0x1610);}at_print(LOG_DEBUG,
"\x62\x75\x66\x20\x69\x73\x20\x25\x73" "\n",buf);return nLength;}int
code_is_ucs2(const SMS_PARAM*pSrc,unsigned char buf[],int nLength){nLength=
-strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0x203+927-0x5a1)){buf[
-(0x1f5b+1973-0x270d)]=(unsigned char)nLength;buf[(0x1454+3343-0x215f)]=(unsigned
- char)pSrc->TP_UD[(0xd18+6554-0x26b2)];buf[(0xcaf+838-0xff0)]=
-(0x2c9+6518-0x1c3f);buf[(0xba3+3560-0x1985)]=(unsigned char)pSrc->TP_UD[
-(0x1283+3231-0x1f20)];buf[(0x42c+2619-0xe60)]=(unsigned char)pSrc->TP_UD[
-(0x88+1195-0x530)];buf[(0x26a+4811-0x152d)]=(unsigned char)pSrc->TP_UD[
-(0x1e5+131-0x264)];buf[(0x1a47+1351-0x1f85)]=(unsigned char)pSrc->TP_UD[
-(0x1215+4520-0x23b8)];buf[(0x89c+7346-0x254b)]=(unsigned char)(EncodeUcs2(&(pSrc
-->TP_UD[(0x105d+3684-0x1ebb)]),&buf[(0x835+824-0xb63)],nLength-
-(0xddf+5098-0x21c3))+(0x4f8+7965-0x240f));nLength=buf[(0x24c+501-0x43e)]+
-(0x1a6c+2118-0x22ae);}else{buf[(0x16c+8317-0x21e6)]=EncodeUcs2(pSrc->TP_UD,&buf[
-(0x117c+1691-0x1813)],nLength);nLength=buf[(0x78b+4180-0x17dc)]+
-(0x870+3221-0x1501);}return nLength;}int Encode8bit(const char*pSrc,unsigned
+strlen(pSrc->TP_UD);if(pSrc->TP_UDHI==(0x1669+48-0x1698)){buf[
+(0x185a+2248-0x211f)]=(unsigned char)nLength;buf[(0xc92+1995-0x1459)]=(unsigned
+char)pSrc->TP_UD[(0x982+4563-0x1b55)];buf[(0x149d+776-0x17a0)]=
+(0x9ad+2122-0x11f7);buf[(0x95b+5492-0x1ec9)]=(unsigned char)pSrc->TP_UD[
+(0x4d8+7635-0x22a9)];buf[(0x1b4+5023-0x154c)]=(unsigned char)pSrc->TP_UD[
+(0x21c6+1198-0x2671)];buf[(0x1b4a+1893-0x22a7)]=(unsigned char)pSrc->TP_UD[
+(0xf1f+4212-0x1f8f)];buf[(0xf9+8633-0x22a9)]=(unsigned char)pSrc->TP_UD[
+(0x1f88+721-0x2254)];buf[(0x289+1704-0x92e)]=(unsigned char)(EncodeUcs2(&(pSrc->
+TP_UD[(0x1683+2119-0x1ec4)]),&buf[(0x1a3f+3048-0x261d)],nLength-
+(0x25c+5834-0x1920))+(0xb11+1919-0x128a));nLength=buf[(0x8d2+7670-0x26c5)]+
+(0x15d1+4242-0x265f);}else{buf[(0x158+8927-0x2434)]=EncodeUcs2(pSrc->TP_UD,&buf[
+(0xbc3+2080-0x13df)],nLength);nLength=buf[(0x13dc+1986-0x1b9b)]+
+(0x70a+3134-0x1344);}return nLength;}int Encode8bit(const char*pSrc,unsigned
char*pDst,int nSrcLength){if(pSrc==NULL||pDst==NULL||nSrcLength<
-(0x670+5535-0x1c0f)){return-(0xc21+5452-0x216c);}memcpy(pDst,pSrc,nSrcLength);
+(0x8ea+7224-0x2522)){return-(0x3eb+8800-0x264a);}memcpy(pDst,pSrc,nSrcLength);
return nSrcLength;}int EncodePdu_Submit(const SMS_PARAM*pSrc,char*pDst){int
-nLength=(0x44+4366-0x1152);int nDstLength=(0xf35+2171-0x17b0);unsigned char buf[
-(0x14f8+1573-0x1a1d)]={(0x8f3+916-0xc87)};char tmpSCA[(0x507+6727-0x1f2a)]={
-(0x3ed+1602-0xa2f)};int check_udl=(0x2086+1324-0x25b2);memset(tmpSCA,
-(0x1396+3173-0x1ffb),sizeof(tmpSCA));if(pSrc==NULL||pDst==NULL){return-
-(0x2325+782-0x2632);}
-#if (0x36c+5715-0x19be)
+nLength=(0x27b+557-0x4a8);int nDstLength=(0x2271+649-0x24fa);unsigned char buf[
+(0x298+8084-0x212c)]={(0x12f8+4891-0x2613)};char tmpSCA[(0x11d+8373-0x21ae)]={
+(0xccf+3686-0x1b35)};int check_udl=(0xfd5+1613-0x1622);memset(tmpSCA,
+(0x18d+2413-0xafa),sizeof(tmpSCA));if(pSrc==NULL||pDst==NULL){return-
+(0xdf0+4997-0x2174);}
+#if (0xdf2+4893-0x210e)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x45\x6e\x63\x6f\x64\x65\x50\x64\x75\x5f\x53\x75\x62\x6d\x69\x74\x20\x6d\x61\x6b\x65\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf(
@@ -908,394 +913,392 @@
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x73\x63\x61\x3a\x25\x73" "\n",pSrc->
SCA);
#endif
-nLength=strlen(pSrc->SCA);buf[(0x83a+6956-0x2366)]=(char)(((nLength)&
-(0x11a+9345-0x259a))==(0x6d4+6873-0x21ad)?(nLength):nLength+(0x3d4+8933-0x26b8))
-/(0x12b1+1044-0x16c3)+(0xafc+2182-0x1381);buf[(0xe74+2997-0x1a28)]=
-(0x155f+4363-0x25e9);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)-(0x1bf+9114-0x2558)
-);if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",(0xbd0+6850-0x268e)))){memset(tmpSCA
-,(0x8a9+6853-0x236e),sizeof(tmpSCA));nLength=nLength-(0x8fc+952-0xcb3);
-#if (0x60+3400-0xda7)
-nLength=nLength-(0x1287+378-0x1400);strncpy(tmpSCA,&(pSrc->SCA[
-(0x15e0+1268-0x1ad2)]),sizeof(tmpSCA)-(0x1e6d+1996-0x2638));
+nLength=strlen(pSrc->SCA);buf[(0x1672+3434-0x23dc)]=(char)(((nLength)&
+(0x17bc+3808-0x269b))==(0x107d+2305-0x197e)?(nLength):nLength+
+(0x14bd+1705-0x1b65))/(0x1592+2970-0x212a)+(0x2d6+873-0x63e);buf[
+(0x1a89+637-0x1d05)]=(0x95a+4437-0x1a2e);strncpy(tmpSCA,pSrc->SCA,sizeof(tmpSCA)
+-(0x11d3+3559-0x1fb9));if(!(strncmp(pSrc->SCA,"\x30\x30\x38\x36",
+(0x22+9183-0x23fd)))){memset(tmpSCA,(0x15af+1024-0x19af),sizeof(tmpSCA));nLength
+=nLength-(0x790+7810-0x2611);
+#if (0xcea+1290-0x11f3)
+nLength=nLength-(0x5a0+8366-0x264d);strncpy(tmpSCA,&(pSrc->SCA[
+(0x1401+635-0x167a)]),sizeof(tmpSCA)-(0xca7+1507-0x1289));
#else
-tmpSCA[(0xb+2082-0x82d)]=((char)(0xe16+2923-0x1956));strcpy(&(tmpSCA[
-(0x657+5985-0x1db7)]),&(pSrc->SCA[(0x3cd+3901-0x1308)]));
+tmpSCA[(0x166+8138-0x2130)]=((char)(0x1651+516-0x182a));strcpy(&(tmpSCA[
+(0x1515+1127-0x197b)]),&(pSrc->SCA[(0x3aa+710-0x66e)]));
#endif
-buf[(0x16d1+211-0x17a4)]=(char)((nLength&(0x1595+3186-0x2206))==
-(0xaac+3336-0x17b4)?nLength:nLength+(0x1b36+1345-0x2076))/(0x1a06+2774-0x24da)+
-(0x11e2+4185-0x223a);buf[(0x2698+16-0x26a7)]=(0x1ab0+83-0x1a72);}else if(
-((char)(0x3ad+4189-0x13df))==pSrc->SCA[(0x2b1+4778-0x155b)]){memset(tmpSCA,
-(0xcda+2517-0x16af),sizeof(tmpSCA));
-#if (0x15ad+2951-0x2133)
-nLength=nLength-(0x688+7315-0x231a);strncpy(tmpSCA,&(pSrc->SCA[
-(0x106f+2003-0x1841)]),sizeof(tmpSCA)-(0x286+6697-0x1cae));
+buf[(0x9f3+7134-0x25d1)]=(char)((nLength&(0x1718+2965-0x22ac))==
+(0x27f+7766-0x20d5)?nLength:nLength+(0xfaf+2989-0x1b5b))/(0x139f+1709-0x1a4a)+
+(0xe81+2426-0x17fa);buf[(0x3c2+4039-0x1388)]=(0x501+3473-0x1201);}else if(
+((char)(0x199b+2866-0x24a2))==pSrc->SCA[(0x6e2+5484-0x1c4e)]){memset(tmpSCA,
+(0x1498+2651-0x1ef3),sizeof(tmpSCA));
+#if (0x7e4+3024-0x13b3)
+nLength=nLength-(0x8d6+7573-0x266a);strncpy(tmpSCA,&(pSrc->SCA[(0xb1f+357-0xc83)
+]),sizeof(tmpSCA)-(0x10b4+2230-0x1969));
#else
strcpy(tmpSCA,pSrc->SCA);
#endif
-buf[(0xae7+1707-0x1192)]=(char)((nLength&(0x10cb+3583-0x1ec9))==
-(0x413+7706-0x222d)?(nLength):nLength+(0x2069+1320-0x2590))/(0xd97+5456-0x22e5)+
-(0x436+6776-0x1ead);buf[(0x1da1+2213-0x2645)]=(0x7f1+6013-0x1edd);}
-#if (0x13b1+2934-0x1f26)
+buf[(0xb16+6549-0x24ab)]=(char)((nLength&(0x107d+2428-0x19f8))==
+(0xe9f+2884-0x19e3)?(nLength):nLength+(0x1fac+413-0x2148))/(0x2b4+5010-0x1644)+
+(0xa2c+2161-0x129c);buf[(0xb79+3032-0x1750)]=(0x441+2412-0xd1c);}
+#if (0x176+4106-0x117f)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x32\x3a\x25\x73" "\n",
pDst);
#endif
-if(nLength<(0xd07+6388-0x25fa)||nLength>=sizeof(tmpSCA))return-
-(0x880+1588-0xeb3);nDstLength=Bytes2String(buf,pDst,(0x15d9+585-0x1820));
+if(nLength<(0xccf+4809-0x1f97)||nLength>=sizeof(tmpSCA))return-
+(0xecb+2068-0x16de);nDstLength=Bytes2String(buf,pDst,(0x439+3544-0x120f));
nDstLength+=InvertNumbers(tmpSCA,&pDst[nDstLength],nLength);
-#if (0x1329+261-0x142d)
+#if (0x648+191-0x706)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x33\x3a\x25\x73" "\n",
pDst);
#endif
-if(pSrc->TPA[(0x755+7609-0x250e)]==((char)(0x108f+3584-0x1e64))){nLength=strlen(
-&(pSrc->TPA[(0x518+3646-0x1355)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
-TP_UDHI==(0xc42+3053-0x182f)){if(pSrc->TP_SRR==(0x6bd+4756-0x1951)){buf[
-(0x26f+5468-0x17cb)]=(0x1327+4389-0x243b);}if(pSrc->TP_SRR==(0xdef+4222-0x1e6c))
-{buf[(0x4b4+1456-0xa64)]=(0x667+784-0x946);}}if(pSrc->TP_UDHI==
-(0x52a+7051-0x20b4)){if(pSrc->TP_SRR==(0x868+1316-0xd8c)){buf[
-(0x5ef+2690-0x1071)]=(0x1fe1+288-0x20b0);}if(pSrc->TP_SRR==(0x2529+160-0x25c8)){
-buf[(0x72f+419-0x8d2)]=(0x1f8d+263-0x2023);}}buf[(0x1ccf+797-0x1feb)]=
-(0xcb+4288-0x118b);buf[(0xe6d+3677-0x1cc8)]=(char)nLength;if(pSrc->TPA[
-(0x1ed6+667-0x2171)]==((char)(0x4e3+3715-0x133b))){buf[(0xea8+3875-0x1dc8)]=
-(0x31a+4410-0x13c3);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
-(0xdf+3104-0xcfb));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x1b65+1990-0x232a)]),
-&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
-(0x687+206-0x751)))){buf[(0xef+2541-0xada)]=(char)nLength-(0x156f+4032-0x252d);
-buf[(0x1f32+159-0x1fce)]=(0x1a25+3201-0x2615);nDstLength+=Bytes2String(buf,&pDst
-[nDstLength],(0x5ea+252-0x6e2));nDstLength+=InvertNumbers(&(pSrc->TPA[
-(0x1e06+1408-0x2384)]),&pDst[nDstLength],nLength-(0x1797+1468-0x1d51));}else{buf
-[(0x192+8315-0x220a)]=(0xfa+1362-0x5cb);nDstLength+=Bytes2String(buf,&pDst[
-nDstLength],(0x1ced+2291-0x25dc));nDstLength+=InvertNumbers(pSrc->TPA,&pDst[
-nDstLength],nLength);}
-#if (0x16b8+737-0x1998)
+if(pSrc->TPA[(0xca7+1984-0x1467)]==((char)(0x31+8658-0x21d8))){nLength=strlen(&(
+pSrc->TPA[(0x436+8173-0x2422)]));}else{nLength=strlen(pSrc->TPA);}if(pSrc->
+TP_UDHI==(0x1554+3379-0x2287)){if(pSrc->TP_SRR==(0xbe2+1932-0x136e)){buf[
+(0x6b7+6634-0x20a1)]=(0xb37+6670-0x2534);}if(pSrc->TP_SRR==(0xd50+744-0x1037)){
+buf[(0x1631+235-0x171c)]=(0xd91+2569-0x1769);}}if(pSrc->TP_UDHI==
+(0xcbd+1429-0x1251)){if(pSrc->TP_SRR==(0x1260+2632-0x1ca8)){buf[
+(0x12e3+1957-0x1a88)]=(0x14f3+2743-0x1f59);}if(pSrc->TP_SRR==(0x1e58+64-0x1e97))
+{buf[(0xc0d+308-0xd41)]=(0xa4+6589-0x19f0);}}buf[(0x1cac+649-0x1f34)]=
+(0x1103+1627-0x175e);buf[(0x431+5467-0x198a)]=(char)nLength;if(pSrc->TPA[
+(0xf61+216-0x1039)]==((char)(0xd3b+1286-0x1216))){buf[(0x5d5+7803-0x244d)]=
+(0x17f8+3200-0x23e7);nDstLength+=Bytes2String(buf,&pDst[nDstLength],
+(0x1771+777-0x1a76));nDstLength+=InvertNumbers(&(pSrc->TPA[(0x1edc+414-0x2079)])
+,&pDst[nDstLength],nLength);}else if(!(strncmp(pSrc->TPA,"\x30\x30\x38\x36",
+(0x1a1f+2331-0x2336)))){buf[(0x1459+4444-0x25b3)]=(char)nLength-
+(0x5f9+8024-0x254f);buf[(0x1aad+691-0x1d5d)]=(0x1821+2407-0x20f7);nDstLength+=
+Bytes2String(buf,&pDst[nDstLength],(0x99b+2477-0x1344));nDstLength+=
+InvertNumbers(&(pSrc->TPA[(0xbd3+3376-0x1901)]),&pDst[nDstLength],nLength-
+(0x6f7+3909-0x163a));}else{buf[(0x9a8+2169-0x121e)]=(0x82b+3412-0x14fe);
+nDstLength+=Bytes2String(buf,&pDst[nDstLength],(0x13b3+1090-0x17f1));nDstLength
++=InvertNumbers(pSrc->TPA,&pDst[nDstLength],nLength);}
+#if (0x3d4+1310-0x8f1)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x34\x3a\x25\x73" "\n",
pDst);
#endif
-nLength=(int)pSrc->TP_UDLength;buf[(0x10fd+4622-0x230b)]=pSrc->TP_PID;buf[
-(0x15ad+4135-0x25d3)]=pSrc->TP_DCS;buf[(0x1533+1286-0x1a37)]=pSrc->TP_VP;if(pSrc
-->TP_DCS==CODE_GSM7){nLength=code_is_gsm7(pSrc,buf,nLength);}else if(pSrc->
-TP_DCS==CODE_UCS2){nLength=code_is_ucs2(pSrc,buf,nLength);}else{nLength=strlen(
-pSrc->TP_UD);if(pSrc->TP_UDHI==(0x6e4+6398-0x1fe1)){buf[(0xf63+2840-0x1a78)]=(
-unsigned char)nLength;buf[(0x97d+644-0xbfd)]=(unsigned char)pSrc->TP_UD[
-(0x4fb+6613-0x1ed0)];buf[(0x16f0+1429-0x1c80)]=(0x10e5+2811-0x1be0);buf[
-(0x140+4492-0x12c6)]=(unsigned char)pSrc->TP_UD[(0x110d+4144-0x213b)];buf[
-(0x4b7+5435-0x19eb)]=(unsigned char)pSrc->TP_UD[(0x11dd+3939-0x213d)];buf[
-(0xacf+754-0xdb9)]=(unsigned char)pSrc->TP_UD[(0xb36+1470-0x10f0)];buf[
-(0xb69+4478-0x1cde)]=(unsigned char)pSrc->TP_UD[(0x2157+1229-0x261f)];if(nLength
--(0x59+3205-0xcd8)<=(0x150a+2919-0x2071)||nLength-(0x1020+2277-0x18ff)>=sizeof(
-buf)-(0x2120+1273-0x260f))return-(0x8c7+2571-0x12d1);buf[(0x4f4+2885-0x1036)]=(
-unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x1fe6+518-0x21e6)]),&buf[
-(0x1df5+567-0x2022)],(unsigned short)(nLength-(0xc81+4286-0x1d39)))+
-(0x970+6084-0x212e));nLength=buf[(0x8d6+5261-0x1d60)]+(0x12f+8923-0x2406);}else{
-if(nLength<=(0x1ba+6691-0x1bdd)||nLength>=sizeof(buf)-(0x2c+6697-0x1a51))return-
-(0x1e4+6478-0x1b31);buf[(0x5fa+2304-0xef7)]=Encode8bit(pSrc->TP_UD,&buf[
-(0x2086+168-0x212a)],nLength);nLength=buf[(0x213+8112-0x21c0)]+
-(0x1822+301-0x194b);}}check_udl=nLength-(0xd02+480-0xede);nDstLength+=
+nLength=(int)pSrc->TP_UDLength;buf[(0xf94+187-0x104f)]=pSrc->TP_PID;buf[
+(0x157f+435-0x1731)]=pSrc->TP_DCS;buf[(0x455+201-0x51c)]=pSrc->TP_VP;if(pSrc->
+TP_DCS==CODE_GSM7){nLength=code_is_gsm7(pSrc,buf,nLength);}else if(pSrc->TP_DCS
+==CODE_UCS2){nLength=code_is_ucs2(pSrc,buf,nLength);}else{nLength=strlen(pSrc->
+TP_UD);if(pSrc->TP_UDHI==(0x9ea+1936-0x1179)){buf[(0xa3d+3810-0x191c)]=(unsigned
+ char)nLength;buf[(0x45+4420-0x1185)]=(unsigned char)pSrc->TP_UD[
+(0x137d+1917-0x1afa)];buf[(0x1887+1986-0x2044)]=(0xc8d+1152-0x110d);buf[
+(0x978+5612-0x1f5e)]=(unsigned char)pSrc->TP_UD[(0x1060+535-0x1275)];buf[
+(0xe2d+501-0x101b)]=(unsigned char)pSrc->TP_UD[(0x1497+3920-0x23e4)];buf[
+(0xf+8635-0x21c2)]=(unsigned char)pSrc->TP_UD[(0x3d5+1781-0xac6)];buf[
+(0x1996+2417-0x22fe)]=(unsigned char)pSrc->TP_UD[(0x45a+4064-0x1435)];if(nLength
+-(0xbad+234-0xc91)<=(0xa46+691-0xcf9)||nLength-(0x117+4577-0x12f2)>=sizeof(buf)-
+(0x1c6+7767-0x2013))return-(0x15bc+3366-0x22e1);buf[(0x124c+3489-0x1fea)]=(
+unsigned char)(Encode8bit(&(pSrc->TP_UD[(0x579+5802-0x1c1d)]),&buf[
+(0x449+5626-0x1a39)],(unsigned short)(nLength-(0xb41+160-0xbdb)))+
+(0x22af+320-0x23e9));nLength=buf[(0x112c+4373-0x223e)]+(0x1c33+1479-0x21f6);}
+else{if(nLength<=(0xe86+3658-0x1cd0)||nLength>=sizeof(buf)-(0x9a5+3765-0x1856))
+return-(0x1227+4762-0x24c0);buf[(0x4f+837-0x391)]=Encode8bit(pSrc->TP_UD,&buf[
+(0x55c+7577-0x22f1)],nLength);nLength=buf[(0x19f3+207-0x1abf)]+
+(0xdf+6643-0x1ace);}}check_udl=nLength-(0x1cec+1419-0x2273);nDstLength+=
Bytes2String(buf,&pDst[nDstLength],nLength);sc_cfg_set(NV_CHECK_UDL,"");if(
-check_udl>(0x155c+4633-0x26e9)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");
-}
-#if (0x1635+840-0x197c)
+check_udl>(0x694+3006-0x11c6)){sc_cfg_set(NV_CHECK_UDL,"\x65\x72\x72\x6f\x72");}
+#if (0x38a+4756-0x161d)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x45\x6e\x63\x6f\x64\x65\x50\x64\x75\x5f\x53\x75\x62\x6d\x69\x74\x20\x65\x6e\x64\x20\x6d\x61\x6b\x65\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x6c\x65\x6e\x3a\x25\x64\x2c\x20\x74\x70\x75\x64\x3a\x25\x73" "\n"
,nDstLength,pSrc->TP_UD);
#endif
-#if (0x140c+841-0x1754)
+#if (0x5d2+4268-0x167d)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x70\x64\x73\x74\x35\x3a\x25\x73" "\n",
pDst);
#endif
return nDstLength;}int Decode7bit(const unsigned char*pSrc,char*pDst,int
nSrcLength){int nSrc;int nDst;int nByte;unsigned char nLeft;if(pSrc==NULL||pDst
-==NULL||nSrcLength<(0x1455+2939-0x1fd0)){return-(0x21ba+100-0x221d);}nSrc=
-(0x1e7d+1267-0x2370);nDst=(0x1082+2694-0x1b08);nByte=(0x4cf+2095-0xcfe);nLeft=
-(0x6d0+2007-0xea7);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
-(0x557+6097-0x1ca9);nLeft=*pSrc>>((0x13a2+583-0x15e2)-nByte);pDst++;nDst++;nByte
-++;if(nByte==(0xd98+654-0x101f)){*pDst=nLeft;pDst++;nDst++;nByte=
-(0x4b7+3446-0x122d);nLeft=(0x1b48+1015-0x1f3f);}pSrc++;nSrc++;}*pDst='\0';return
- nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
-(0xbeb+6740-0x263f);unsigned char tmp=(0xbdf+4256-0x1c7f);int ud_length=
-(0x1652+3429-0x23b7);unsigned char buf[(0x1591+4282-0x254b)]={
-(0x415+5214-0x1873)};char temp_num[(0x205b+1073-0x2428)]={(0x1333+3925-0x2288)};
-unsigned char first_octet=(0x4d8+2520-0xeb0);unsigned char udhl=
-(0x1f0+3350-0xf06);unsigned int halftmp=(0xbab+1196-0x1057);char tp_ra[
-(0xab7+1510-0x109a)]={(0x717+7950-0x2625)};int tmplen=(0x49c+2106-0xcd6);
-unsigned char IEIDL;int pushType=(0xa30+1367-0xf87);const char*pSrc=pSrcPdu;if(
-pSrcPdu==NULL||pDst==NULL){printf(
+==NULL||nSrcLength<(0x712+2847-0x1231)){return-(0x21c7+444-0x2382);}nSrc=
+(0x68b+4339-0x177e);nDst=(0x2b+7690-0x1e35);nByte=(0x431+3321-0x112a);nLeft=
+(0xb37+914-0xec9);while(nSrc<nSrcLength){*pDst=((*pSrc<<nByte)|nLeft)&
+(0x18e1+445-0x1a1f);nLeft=*pSrc>>((0x89a+1283-0xd96)-nByte);pDst++;nDst++;nByte
+++;if(nByte==(0x142f+3635-0x225b)){*pDst=nLeft;pDst++;nDst++;nByte=
+(0x19c+8302-0x220a);nLeft=(0x6c0+8210-0x26d2);}pSrc++;nSrc++;}*pDst='\0';return
+nDst;}int DecodePushPdu(const char*pSrcPdu,SMS_PARAM*pDst){int nDstLength=
+(0x2283+176-0x2333);unsigned char tmp=(0x18ef+1319-0x1e16);int ud_length=
+(0xfd8+4566-0x21ae);unsigned char buf[(0x1f70+1416-0x23f8)]={(0x884+5429-0x1db9)
+};char temp_num[(0x1077+3755-0x1ebe)]={(0x1120+5346-0x2602)};unsigned char
+first_octet=(0xd81+4110-0x1d8f);unsigned char udhl=(0x215d+662-0x23f3);unsigned
+int halftmp=(0x2109+1513-0x26f2);char tp_ra[(0x106c+908-0x13f5)]={
+(0x163+3636-0xf97)};int tmplen=(0x1ba0+2732-0x264c);unsigned char IEIDL;int
+pushType=(0x16af+2725-0x2154);const char*pSrc=pSrcPdu;if(pSrcPdu==NULL||pDst==
+NULL){printf(
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x70\x61\x72\x61\x20\x6e\x75\x6c\x6c\x2e\x20" "\n"
-);return-(0xe39+5159-0x225f);}String2Bytes(pSrc,&tmp,(0x1218+792-0x152e));
+);return-(0xf80+2036-0x1773);}String2Bytes(pSrc,&tmp,(0x5fa+3603-0x140b));
at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x74\x6d\x70\x20\x3d\x20\x25\x64\x2e" "\n"
-,tmp);if(tmp==(0x1036+4905-0x235f)){pSrc+=(0xa30+6210-0x2270);}else{tmp=(tmp-
-(0xa89+5157-0x1ead))*(0xf39+5901-0x2644);pSrc+=(0x124f+1472-0x180b);if(tmp>
-(0x1bda+884-0x1f2e)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x7c5+796-0xac1));tmp=
-(0x1d04+1893-0x2449);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=tmp;}
-String2Bytes(pSrc,&tmp,(0x1643+826-0x197b));first_octet=tmp;pSrc+=
-(0xb9+1665-0x738);String2Bytes(pSrc,&tmp,(0x233+3292-0xf0d));halftmp=tmp;if(tmp&
-(0xfff+486-0x11e4))tmp+=(0x7d1+1503-0xdaf);pSrc+=(0x1290+3607-0x20a5);memset(
-tp_ra,(0x23a+9376-0x26da),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
-(0x11dc+672-0x147a));pSrc+=(0x1966+1418-0x1eee);if((tp_ra[(0xda+9215-0x24d9)]&
-(0x3c9+1499-0x954))==(0x30d+623-0x52c)){char tempra[(0x9d+7244-0x1c69)];char
-acAsc[(0x5bf+6188-0x1d6b)];if(halftmp>=(0xfb5+3985-0x1f38)){halftmp=(tmp/
-(0x108a+261-0x118d))/(0x4f5+4283-0x15a9)+(tmp/(0x79a+2267-0x1073));}else{halftmp
-=tmp/(0x1776+3678-0x25d2);}memset(tempra,(0xdc2+3170-0x1a24),sizeof(tempra));
-memcpy(tempra,pSrc,tmp);memset(acAsc,(0x65d+4333-0x174a),sizeof(acAsc));
-nDstLength=String2Bytes(tempra,buf,halftmp&(0xf+6860-0x1ad4)?(int)halftmp*
-(0x594+5865-0x1c76)/(0xa21+6201-0x2256)+(0x43d+4012-0x13e7):(int)halftmp*
-(0x6d2+7122-0x229d)/(0xfc3+5539-0x2562));halftmp=Decode7bit(buf,acAsc,nDstLength
-);memset(pDst->TPA,(0x101+602-0x35b),sizeof(pDst->TPA));if(halftmp>
-(0xdeb+5151-0x21ea)){memcpy(pDst->TPA,acAsc,(0x136a+4246-0x23e0));tmp=
-(0x12bc+2819-0x1d9f);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
-(0x13a4+2166-0x1bfa)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x8d3+5065-0x1c7c));}
-else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x55c+5701-0x1ba1)]&
-(0x1fba+748-0x2215))==(0xff7+4260-0x200a)){memset(temp_num,(0x477+6515-0x1dea),
-sizeof(temp_num));if(pDst->TPA[(0xf61+5765-0x25e6)]!=((char)(0x62f+8059-0x257f))
-){snprintf(temp_num,sizeof(temp_num),"\x25\x73\x25\x73","\x2b",pDst->TPA);if(
-strlen(temp_num)>(0x530+6609-0x1ee1)){snprintf(pDst->TPA,sizeof(pDst->TPA),
-"\x25\x33\x32\x73",temp_num);}else{snprintf(pDst->TPA,sizeof(pDst->TPA),
-"\x25\x73",temp_num);}}}}pSrc+=tmp;String2Bytes(pSrc,(unsigned char*)&pDst->
-TP_PID,(0x13ab+965-0x176e));pSrc+=(0x9cd+5591-0x1fa2);String2Bytes(pSrc,(
-unsigned char*)&pDst->TP_DCS,(0x109a+2929-0x1c09));pSrc+=(0xaf4+6140-0x22ee);
-SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x1171+1003-0x154e));pSrc+=
-(0xc49+2939-0x17b6);String2Bytes(pSrc,&tmp,(0x10f5+4420-0x2237));pSrc+=
-(0x322+5683-0x1953);memset(pDst->TP_UD,(0x707+629-0x97c),sizeof(pDst->TP_UD));
+,tmp);if(tmp==(0x1f5+442-0x3af)){pSrc+=(0x10c+6433-0x1a2b);}else{tmp=(tmp-
+(0x3ad+1471-0x96b))*(0x8ff+7265-0x255e);pSrc+=(0x1a47+1554-0x2055);if(tmp>
+(0x1798+1342-0x1cb6)){SerializeNumbers_sms(pSrc,pDst->SCA,(0x368+7451-0x2063));
+tmp=(0x6ec+7062-0x2262);}else{SerializeNumbers_sms(pSrc,pDst->SCA,tmp);}pSrc+=
+tmp;}String2Bytes(pSrc,&tmp,(0x1009+4528-0x21b7));first_octet=tmp;pSrc+=
+(0x48f+8252-0x24c9);String2Bytes(pSrc,&tmp,(0x1686+1200-0x1b34));halftmp=tmp;if(
+tmp&(0x452+1441-0x9f2))tmp+=(0x627+5894-0x1d2c);pSrc+=(0x2017+129-0x2096);memset
+(tp_ra,(0x369+4443-0x14c4),sizeof(tp_ra));String2Bytes(pSrc,tp_ra,
+(0x1885+1980-0x203f));pSrc+=(0xc30+5103-0x201d);if((tp_ra[(0xa50+6744-0x24a8)]&
+(0x98b+1977-0x10f4))==(0xe01+3956-0x1d25)){char tempra[(0x4a8+3699-0x129b)];char
+ acAsc[(0x17c0+472-0x1918)];if(halftmp>=(0x781+4579-0x1956)){halftmp=(tmp/
+(0x4c3+3581-0x12be))/(0x3b4+688-0x65d)+(tmp/(0x652+5103-0x1a3f));}else{halftmp=
+tmp/(0xba+5250-0x153a);}memset(tempra,(0x1d7c+633-0x1ff5),sizeof(tempra));memcpy
+(tempra,pSrc,tmp);memset(acAsc,(0x1f31+601-0x218a),sizeof(acAsc));nDstLength=
+String2Bytes(tempra,buf,halftmp&(0x643+2302-0xf3a)?(int)halftmp*
+(0x146+5023-0x14de)/(0x13a4+121-0x1419)+(0x87c+952-0xc32):(int)halftmp*
+(0x13fb+3346-0x2106)/(0x2149+859-0x24a0));halftmp=Decode7bit(buf,acAsc,
+nDstLength);memset(pDst->TPA,(0xa53+394-0xbdd),sizeof(pDst->TPA));if(halftmp>
+(0x2a8+8527-0x23d7)){memcpy(pDst->TPA,acAsc,(0x840+3308-0x150c));tmp=
+(0xae8+1401-0x1041);}else{memcpy(pDst->TPA,acAsc,halftmp);}}else{if(tmp>
+(0x4f7+5316-0x199b)){SerializeNumbers_sms(pSrc,pDst->TPA,(0x842+6976-0x2362));}
+else{SerializeNumbers_sms(pSrc,pDst->TPA,tmp);}if((tp_ra[(0x1055+726-0x132b)]&
+(0x15b+2034-0x8bc))==(0xa82+1284-0xef5)){memset(temp_num,(0x1819+307-0x194c),
+sizeof(temp_num));if(pDst->TPA[(0x18a1+2616-0x22d9)]!=
+((char)(0x567+7246-0x218a))){snprintf(temp_num,sizeof(temp_num),
+"\x25\x73\x25\x73","\x2b",pDst->TPA);if(strlen(temp_num)>(0x171c+2741-0x21b1)){
+snprintf(pDst->TPA,sizeof(pDst->TPA),"\x25\x33\x32\x73",temp_num);}else{snprintf
+(pDst->TPA,sizeof(pDst->TPA),"\x25\x73",temp_num);}}}}pSrc+=tmp;String2Bytes(
+pSrc,(unsigned char*)&pDst->TP_PID,(0x128+7116-0x1cf2));pSrc+=(0x997+1267-0xe88)
+;String2Bytes(pSrc,(unsigned char*)&pDst->TP_DCS,(0x745+2487-0x10fa));pSrc+=
+(0x1233+4338-0x2323);SerializeNumbers_sms(pSrc,pDst->TP_SCTS,(0x436+2074-0xc42))
+;pSrc+=(0xa40+531-0xc45);String2Bytes(pSrc,&tmp,(0xbc9+6227-0x241a));pSrc+=
+(0xd4b+563-0xf7c);memset(pDst->TP_UD,(0xe3c+4598-0x2032),sizeof(pDst->TP_UD));
at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x66\x69\x72\x73\x74\x5f\x6f\x63\x74\x65\x74\x20\x3d\x20\x30\x78\x25\x30\x32\x78\x2e" "\n"
-,first_octet);if(first_octet&(0x814+7422-0x24d2)){const char*temp=pSrc;unsigned
-char pduType;unsigned char wspLen;unsigned char udhLen;unsigned char DestPort1;
+,first_octet);if(first_octet&(0x103b+1813-0x1710)){const char*temp=pSrc;unsigned
+ char pduType;unsigned char wspLen;unsigned char udhLen;unsigned char DestPort1;
unsigned char DestPort2;unsigned char RefNum1;unsigned char RefNum2;pushType=
-SMS_NO_PUSH;String2Bytes(temp,&udhl,(0xda2+6382-0x268e));temp+=
-(0x3a3+4931-0x16e4);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x10e4+2920-0x1c4a))
-;at_print(LOG_DEBUG,
+SMS_NO_PUSH;String2Bytes(temp,&udhl,(0x1594+645-0x1817));temp+=
+(0x499+4725-0x170c);tmplen=String2Bytes(temp,&pDst->TP_IEI,(0x2307+589-0x2552));
+at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x54\x50\x5f\x49\x45\x49\x20\x3d\x20\x30\x78\x25\x30\x32\x78\x2e" "\n"
-,pDst->TP_IEI);if(pDst->TP_IEI==(0x1ab+2248-0xa6e)){temp+=(0x784+4118-0x1798)*
-tmplen+(0x7e2+4558-0x19ae);tmplen=String2Bytes(temp,&DestPort1,
-(0x1389+1779-0x1a7a));at_print(LOG_DEBUG,
+,pDst->TP_IEI);if(pDst->TP_IEI==(0xaf8+5321-0x1fbc)){temp+=(0xa60+871-0xdc5)*
+tmplen+(0x49c+8404-0x256e);tmplen=String2Bytes(temp,&DestPort1,
+(0x141a+3746-0x22ba));at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x44\x65\x73\x74\x50\x6f\x72\x74\x31\x20\x3d\x20\x30\x78\x25\x30\x32\x78\x2e" "\n"
-,DestPort1);temp+=(0x868+6062-0x2014)*tmplen;tmplen=String2Bytes(temp,&DestPort2
-,(0xe18+4818-0x20e8));at_print(LOG_DEBUG,
+,DestPort1);temp+=(0x10a3+4684-0x22ed)*tmplen;tmplen=String2Bytes(temp,&
+DestPort2,(0xad5+2261-0x13a8));at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x44\x65\x73\x74\x50\x6f\x72\x74\x32\x20\x3d\x20\x30\x78\x25\x30\x32\x78\x2e" "\n"
-,DestPort2);if((DestPort1==(0xd66+1647-0x13ca))&&((DestPort2==
-(0x8e9+4650-0x1a8f))||(DestPort2==(0x626+967-0x968)))){pushType=SMS_PUSH;}}if(
-SMS_PUSH!=pushType){return pushType;}temp=pSrc+udhl*(0x5f2+7043-0x2173)+
-(0x13b1+2630-0x1df3);tmplen=String2Bytes(temp,&pduType,(0x1d05+414-0x1ea1));if(
-pduType==(0xb59+4227-0x1bd6)){pushType=SMS_PUSH;temp+=(0x42f+4208-0x149b);tmplen
-=String2Bytes(temp,&pduType,(0x12b3+4645-0x24d6));if(pduType==
-(0xa17+2047-0x1152)){pushType=SMS_NOTIFICATION;}else{temp+=(0x254c+63-0x2587);
-tmplen=String2Bytes(temp,&pduType,(0x897+4174-0x18e3));if((pduType==
-(0x7aa+1723-0xda3))||(pduType==(0x14b5+740-0x16e3))){pushType=SMS_BOOTSTRAP;}}}
-if((pDst->TP_IEI==(0x40+5246-0x14ba))||(pDst->TP_IEI==(0x1928+2066-0x2135))||(
-pDst->TP_IEI==(0x2db+8476-0x23ef))){temp=pSrc+(0x1e47+1797-0x2548);tmplen=
-String2Bytes(temp,&IEIDL,(0x6a0+5836-0x1d6a));if(IEIDL==(udhl-(0x34d+751-0x63a))
-){}else{temp+=(0x11a+8091-0x20b3)*(0x100c+1869-0x1753);tmplen=String2Bytes(temp,
-&udhLen,(0x16bc+3001-0x2273));if(udhLen==(0x37+4604-0x1230)){temp+=
-(0x1478+2659-0x1ed9)*tmplen;tmplen=String2Bytes(temp,&RefNum1,
-(0x600+6378-0x1ee8));pDst->TP_ReferNum=RefNum1;temp+=(0x72+2972-0xc0c)*tmplen;
-tmplen=String2Bytes(temp,&pDst->TP_AllPieceNum,(0x1067+4794-0x231f));temp+=
-(0x14da+3870-0x23f6)*tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,
-(0x12b1+4803-0x2572));temp+=(0xc31+4224-0x1caf)*tmplen;}else if(udhLen==
-(0x301+980-0x6d1)){temp+=(0x9b3+6473-0x22fa)*tmplen;tmplen=String2Bytes(temp,&
-RefNum1,(0xc3c+5682-0x226c));temp+=(0x3+528-0x211)*tmplen;tmplen=String2Bytes(
-temp,&RefNum2,(0x872+4204-0x18dc));int ReferNum=RefNum2+RefNum1*
-(0xb30+2183-0x12b7);pDst->TP_ReferNum=ReferNum;temp+=(0x1080+4426-0x21c8)*tmplen
-;tmplen=String2Bytes(temp,&pDst->TP_AllPieceNum,(0xa30+2129-0x127f));temp+=
-(0x896+2552-0x128c)*tmplen;tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,
-(0xd53+1054-0x116f));temp+=(0x9b3+1911-0x1128)*tmplen;}}}at_print(LOG_DEBUG,
+,DestPort2);if((DestPort1==(0xa48+679-0xce4))&&((DestPort2==(0x8b6+951-0xbe9))||
+(DestPort2==(0x1157+378-0x124c)))){pushType=SMS_PUSH;}}if(SMS_PUSH!=pushType){
+return pushType;}temp=pSrc+udhl*(0x63c+263-0x741)+(0x18ba+2646-0x230c);tmplen=
+String2Bytes(temp,&pduType,(0x1332+4769-0x25d1));if(pduType==(0x187+7235-0x1dc4)
+){pushType=SMS_PUSH;temp+=(0x1d46+1308-0x225e);tmplen=String2Bytes(temp,&pduType
+,(0xa78+3381-0x17ab));if(pduType==(0x14cb+4685-0x2654)){pushType=
+SMS_NOTIFICATION;}else{temp+=(0xaef+1762-0x11cd);tmplen=String2Bytes(temp,&
+pduType,(0x886+2959-0x1413));if((pduType==(0x13ed+3350-0x2041))||(pduType==
+(0xc78+1412-0x1146))){pushType=SMS_BOOTSTRAP;}}}if((pDst->TP_IEI==
+(0x10c2+4988-0x243a))||(pDst->TP_IEI==(0xa33+2066-0x1240))||(pDst->TP_IEI==
+(0xeba+5953-0x25f3))){temp=pSrc+(0x10d5+1503-0x16b0);tmplen=String2Bytes(temp,&
+IEIDL,(0x166b+2087-0x1e90));if(IEIDL==(udhl-(0x1670+2455-0x2005))){}else{temp+=
+(0xbc2+5266-0x2052)*(0x1bc7+1946-0x235b);tmplen=String2Bytes(temp,&udhLen,
+(0x2d2+1245-0x7ad));if(udhLen==(0x1fe5+917-0x2377)){temp+=(0x1ec4+1173-0x2357)*
+tmplen;tmplen=String2Bytes(temp,&RefNum1,(0x641+5892-0x1d43));pDst->TP_ReferNum=
+RefNum1;temp+=(0x13b5+2267-0x1c8e)*tmplen;tmplen=String2Bytes(temp,&pDst->
+TP_AllPieceNum,(0x59d+7622-0x2361));temp+=(0x1020+2609-0x1a4f)*tmplen;tmplen=
+String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0xe90+4797-0x214b));temp+=
+(0x23c7+662-0x265b)*tmplen;}else if(udhLen==(0x1496+2176-0x1d12)){temp+=
+(0x8b9+7100-0x2473)*tmplen;tmplen=String2Bytes(temp,&RefNum1,(0xef8+4367-0x2005)
+);temp+=(0x112c+1879-0x1881)*tmplen;tmplen=String2Bytes(temp,&RefNum2,
+(0x3bf+19-0x3d0));int ReferNum=RefNum2+RefNum1*(0x2c9+6335-0x1a88);pDst->
+TP_ReferNum=ReferNum;temp+=(0x664+6586-0x201c)*tmplen;tmplen=String2Bytes(temp,&
+pDst->TP_AllPieceNum,(0x30b+3396-0x104d));temp+=(0x3f7+4389-0x151a)*tmplen;
+tmplen=String2Bytes(temp,&pDst->TP_CurrentPieceNum,(0x560+4115-0x1571));temp+=
+(0x517+650-0x79f)*tmplen;}}}at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x52\x65\x66\x65\x72\x4e\x75\x6d\x20\x3d\x20\x25\x64\x2c\x41\x6c\x6c\x4e\x75\x6d\x20\x3d\x25\x64\x2c\x43\x75\x72\x4e\x75\x6d\x20\x3d\x25\x64\x2e" "\n"
,pDst->TP_ReferNum,pDst->TP_AllPieceNum,pDst->TP_CurrentPieceNum);if(
-SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0x1d97+1462-0x234b)+
-(0x11b6+4150-0x21e6);tmplen=String2Bytes(temp,&wspLen,(0x20e6+873-0x244d));temp=
-temp+wspLen*(0xe93+4623-0x20a0)+(0x186c+937-0x1c13);}else{temp=pSrc+udhl*
-(0x6e9+5660-0x1d03)+(0x3e7+6949-0x1f0a);}nDstLength=((strlen(temp)<sizeof(pDst->
-TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0xe4b+6279-0x26d1)));memcpy(pDst->
+SMS_NOTIFICATION==pushType){temp=pSrc+udhl*(0x1398+3430-0x20fc)+
+(0xa2a+7287-0x269b);tmplen=String2Bytes(temp,&wspLen,(0x7dd+639-0xa5a));temp=
+temp+wspLen*(0x7cc+1799-0xed1)+(0x1e4d+904-0x21d3);}else{temp=pSrc+udhl*
+(0x1430+3667-0x2281)+(0x448+1126-0x8ac);}nDstLength=((strlen(temp)<sizeof(pDst->
+TP_UD))?strlen(temp):(sizeof(pDst->TP_UD)-(0x1436+1903-0x1ba4)));memcpy(pDst->
TP_UD,temp,nDstLength);at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x70\x44\x73\x74\x2d\x3e\x54\x50\x5f\x55\x44\x20\x3d\x20\x25\x73\x2e" "\n"
,pDst->TP_UD);}at_print(LOG_DEBUG,
"\x44\x65\x63\x6f\x64\x65\x50\x75\x73\x68\x50\x64\x75\x20\x70\x75\x73\x68\x54\x79\x70\x65\x20\x3d\x20\x25\x64\x2e" "\n"
,pushType);return pushType;}static int SerializeNumbers_sms(const char*pSrc,char
-*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x1a0+6731-0x1beb);if(pSrc==
-NULL||pDst==NULL||nSrcLength<(0xaa6+6514-0x2418)){return-(0x8e5+2446-0x1272);}
-nDstLength=nSrcLength;for(i=(0x4f4+7110-0x20ba);i<nSrcLength;i+=
-(0xda1+1852-0x14db)){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-
-(0x172f+1071-0x1b5d))==((char)(0x72c+7256-0x233e))){pDst--;nDstLength--;}*pDst=
-'\0';return nDstLength;}UINT16 wms_ts_pack_gw_7_bit_chars(const UINT8*in,UINT16
-in_len,UINT16 shift,UINT16 out_len_max,UINT8*out){UINT16 i=(0x67c+1448-0xc24);
-UINT16 pos=(0xb75+2375-0x14bc);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+*pDst,int nSrcLength){int nDstLength;char ch;int i=(0x54b+4822-0x1821);if(pSrc==
+NULL||pDst==NULL||nSrcLength<(0x7ef+5405-0x1d0c)){return-(0xf67+2443-0x18f1);}
+nDstLength=nSrcLength;for(i=(0x6c9+5873-0x1dba);i<nSrcLength;i+=(0x8d+126-0x109)
+){ch=*pSrc++;*pDst++=*pSrc++;*pDst++=ch;}if(*(pDst-(0x1a7b+1906-0x21ec))==
+((char)(0x1c86+1322-0x216a))){pDst--;nDstLength--;}*pDst='\0';return nDstLength;
+}UINT16 wms_ts_pack_gw_7_bit_chars(const UINT8*in,UINT16 in_len,UINT16 shift,
+UINT16 out_len_max,UINT8*out){UINT16 i=(0x9a+1393-0x60b);UINT16 pos=
+(0x1ded+445-0x1faa);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x70\x61\x63\x6b\x5f\x67\x77\x5f\x37\x5f\x62\x69\x74\x5f\x63\x68\x61\x72\x73"
-);return(0x12c+3785-0xff5);}shift%=(0x124b+1529-0x183d);if(shift!=
-(0x5ed+6630-0x1fd3)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x87b+5499-0x1def)-
-shift)+(0x1bfd+1708-0x22a8);if(shift==(0x35d+1585-0x987)){shift=
-(0x19b+3525-0xf60);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[pos
-]=in[i]>>shift;if(i+(0x1314+5024-0x26b3)<in_len){out[pos]|=(UINT8)(in[i+
-(0x350+4704-0x15af)]<<((0xada+7171-0x26d6)-shift));shift++;if(shift==
-(0x13a4+3297-0x207e)){shift=(0x626+1531-0xc21);i++;}}}return pos;}UINT8
+);return(0x1a03+1678-0x2091);}shift%=(0x394+4083-0x1380);if(shift!=
+(0x218b+865-0x24ec)){out[pos]|=(UINT8)(in[i]<<shift);shift=((0x11f7+3120-0x1e20)
+-shift)+(0x779+7753-0x25c1);if(shift==(0x8c3+2833-0x13cd)){shift=
+(0xbd7+2375-0x151e);i++;}pos++;}for(;pos<out_len_max&&i<in_len;pos++,i++){out[
+pos]=in[i]>>shift;if(i+(0x473+1695-0xb11)<in_len){out[pos]|=(UINT8)(in[i+
+(0xba3+6864-0x2672)]<<((0x191a+2171-0x218e)-shift));shift++;if(shift==
+(0x7d6+5887-0x1ece)){shift=(0x176f+3805-0x264c);i++;}}}return pos;}UINT8
wms_ts_encode_address(const wms_address_s_type*addr,UINT8*data){UINT8 i,pos=
-(0xe13+3675-0x1c6e);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
+(0xc95+5900-0x23a1);if(addr->number_of_digits>WMS_GW_ADDRESS_MAX){at_print(
LOG_DEBUG,
"\x41\x64\x64\x72\x20\x6c\x65\x6e\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x20\x25\x64"
-,addr->number_of_digits);return(0xa79+7224-0x26b1);}if(addr->number_type==
+,addr->number_of_digits);return(0x257+373-0x3cc);}if(addr->number_type==
WMS_NUMBER_ALPHANUMERIC){data[pos]=(UINT8)((addr->number_of_digits*
-(0xa0d+2110-0x1244)+(0x1841+955-0x1bf9))/(0x900+460-0xac8));}else{data[pos]=addr
-->number_of_digits;}pos++;data[pos]=(0x114+8527-0x21e3);data[pos]|=(UINT8)((
-UINT8)addr->number_type<<(0x1fb2+1488-0x257e));data[pos]|=(UINT8)addr->
-number_plan;pos++;if(addr->number_type==WMS_NUMBER_ALPHANUMERIC){pos+=(UINT8)
-wms_ts_pack_gw_7_bit_chars(addr->digits,addr->number_of_digits,
-(0xdb2+2064-0x15c2),WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=
-(0x1239+1826-0x195b);i<addr->number_of_digits;i++){data[pos]=(UINT8)(addr->
-digits[i++]&(0x859+2657-0x12ab));{data[pos]|=(UINT8)(addr->digits[i]<<
-(0x68a+5662-0x1ca4));}pos++;}}return pos;}UINT8 wms_ts_encode_dcs(const
-wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=(0x1579+3808-0x2459);if(dcs->
-msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs->is_compressed?
-(0x1349+1042-0x173b):(0x12dd+28-0x12f9);data[pos]|=(dcs->msg_class!=
-WMS_MESSAGE_CLASS_NONE)?(0x96b+2364-0x1297):(0xeb8+140-0xf44);data[pos]|=dcs->
-alphabet<<(0x19e5+597-0x1c38);data[pos]|=dcs->msg_class&(0x1959+1920-0x20d6);}
-else if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){data[pos]=
-(0x2a2+1888-0x912);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]|=
-(0x19a3+2356-0x22d3);data[pos]|=dcs->msg_class&(0x16ef+3178-0x2356);}else{if(dcs
-->msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x79a+2575-0x10e9);}else
-if(dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0xadc+613-0xc71);}else{data[pos]=
-(0x1314+1068-0x1660);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
-(0x1f0+6333-0x1aa5):(0x12c+8649-0x22f5);data[pos]|=dcs->msg_waiting_kind&
-(0x1615+2482-0x1fc4);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
-UINT8*result){unsigned char low_bit=(bcd&(0x1e09+733-0x20d7));unsigned char
-high_bit=((bcd&(0x2b2+2328-0xada))>>(0x5ff+5048-0x19b3));if(low_bit>
-(0x3b5+187-0x467)||high_bit>(0x231+5654-0x183e)){at_print(LOG_DEBUG,
+(0x732+2196-0xfbf)+(0x59d+2843-0x10b5))/(0x17bf+3319-0x24b2));}else{data[pos]=
+addr->number_of_digits;}pos++;data[pos]=(0x533+3365-0x11d8);data[pos]|=(UINT8)((
+UINT8)addr->number_type<<(0x1e0+1422-0x76a));data[pos]|=(UINT8)addr->number_plan
+;pos++;if(addr->number_type==WMS_NUMBER_ALPHANUMERIC){pos+=(UINT8)
+wms_ts_pack_gw_7_bit_chars(addr->digits,addr->number_of_digits,(0x550+208-0x620)
+,WMS_GW_ADDRESS_MAX,&data[pos]);}else{for(i=(0x167+4534-0x131d);i<addr->
+number_of_digits;i++){data[pos]=(UINT8)(addr->digits[i++]&(0x1526+1327-0x1a46));
+{data[pos]|=(UINT8)(addr->digits[i]<<(0x180+8045-0x20e9));}pos++;}}return pos;}
+UINT8 wms_ts_encode_dcs(const wms_gw_dcs_s_type*dcs,UINT8*data){UINT8 pos=
+(0xad9+1649-0x114a);if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE){data[pos]=dcs
+->is_compressed?(0x1ea0+374-0x1ff6):(0xad5+1985-0x1296);data[pos]|=(dcs->
+msg_class!=WMS_MESSAGE_CLASS_NONE)?(0x7f+7215-0x1c9e):(0xf46+877-0x12b3);data[
+pos]|=dcs->alphabet<<(0x1eaf+1928-0x2635);data[pos]|=dcs->msg_class&
+(0x303+7551-0x207f);}else if(dcs->msg_waiting==WMS_GW_MSG_WAITING_NONE_1111){
+data[pos]=(0x17c3+4063-0x26b2);if(dcs->alphabet==WMS_GW_ALPHABET_8_BIT)data[pos]
+|=(0x1633+1670-0x1cb5);data[pos]|=dcs->msg_class&(0x412+3398-0x1155);}else{if(
+dcs->msg_waiting==WMS_GW_MSG_WAITING_DISCARD){data[pos]=(0x1879+3602-0x25cb);}
+else if(dcs->msg_waiting==WMS_GW_MSG_WAITING_STORE&&dcs->alphabet==
+WMS_GW_ALPHABET_7_BIT_DEFAULT){data[pos]=(0xa76+6620-0x2382);}else{data[pos]=
+(0x1b1+6617-0x1aaa);}data[pos]|=(dcs->msg_waiting_active==TRUE)?
+(0x843+5510-0x1dc1):(0x295+2381-0xbe2);data[pos]|=dcs->msg_waiting_kind&
+(0x1417+3719-0x229b);}pos++;return pos;}UINT8 wms_ts_bcd_to_int(const UINT8 bcd,
+UINT8*result){unsigned char low_bit=(bcd&(0x272+7801-0x20dc));unsigned char
+high_bit=((bcd&(0x148+8516-0x219c))>>(0xbdc+199-0xc9f));if(low_bit>
+(0x1c0+9138-0x2569)||high_bit>(0x79b+4849-0x1a83)){at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x64\x69\x67\x69\x74\x21");*
-result=(0x164+1674-0x7ee);return FALSE;}else{*result=((bcd&(0x11d9+1332-0x16fe))
-+(((bcd&(0x49c+1349-0x8f1))>>(0x1b6a+1115-0x1fc1))*(0x1d5a+1781-0x2445)));return
+result=(0x638+6712-0x2070);return FALSE;}else{*result=((bcd&(0x7b2+4259-0x1846))
++(((bcd&(0x2093+725-0x2278))>>(0x181f+1861-0x1f60))*(0x4d0+6916-0x1fca)));return
TRUE;}}UINT8 wms_ts_encode_timestamp(const wms_timestamp_s_type*timestamp,UINT8
-*data){sint7 i;UINT8 pos=(0x6c7+266-0x7d1),j;if(!wms_ts_bcd_to_int(timestamp->
-year,&j)){return(0xd65+3022-0x1933);}data[pos]=((timestamp->year&
-(0x1786+2312-0x207f))<<(0x156c+2125-0x1db5))+((timestamp->year&
-(0x18f0+1222-0x1cc6))>>(0x228f+173-0x2338));pos++;if(wms_ts_bcd_to_int(timestamp
-->month,&j)){if(j>(0x38d+7089-0x1f32)||j<(0x498+7463-0x21be)){at_print(LOG_DEBUG
-,
+*data){sint7 i;UINT8 pos=(0x52b+6451-0x1e5e),j;if(!wms_ts_bcd_to_int(timestamp->
+year,&j)){return(0x1a10+3260-0x26cc);}data[pos]=((timestamp->year&
+(0xbe9+2191-0x1469))<<(0xa02+5279-0x1e9d))+((timestamp->year&(0x119+1224-0x4f1))
+>>(0x89a+4756-0x1b2a));pos++;if(wms_ts_bcd_to_int(timestamp->month,&j)){if(j>
+(0xda3+5690-0x23d1)||j<(0x4c1+8216-0x24d8)){at_print(LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0xd67+3029-0x193c);}}else{return(0xf94+1517-0x1581);}data[pos]=((
-timestamp->month&(0x2217+162-0x22aa))<<(0x1b2+334-0x2fc))+((timestamp->month&
-(0x934+2967-0x13db))>>(0xa71+2197-0x1302));pos++;if(wms_ts_bcd_to_int(timestamp
-->day,&j)){if(j>(0x1d80+342-0x1eb7)||j<(0x3b4+8876-0x265f)){at_print(LOG_DEBUG,
+,j);return(0x1c3+1626-0x81d);}}else{return(0x33+6660-0x1a37);}data[pos]=((
+timestamp->month&(0xefd+3626-0x1d18))<<(0xa3c+7021-0x25a5))+((timestamp->month&
+(0xfb+1629-0x668))>>(0x351+3434-0x10b7));pos++;if(wms_ts_bcd_to_int(timestamp->
+day,&j)){if(j>(0x1f5c+1588-0x2571)||j<(0x19a4+3208-0x262b)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);
-return(0xf10+5361-0x2401);}}else{return(0x5a0+6759-0x2007);}data[pos]=((
-timestamp->day&(0x1377+131-0x13eb))<<(0x366+6254-0x1bd0))+((timestamp->day&
-(0x13ea+4169-0x2343))>>(0xb00+5277-0x1f99));pos++;if(wms_ts_bcd_to_int(timestamp
-->hour,&j)){if(j>(0x847+3179-0x149b)){at_print(LOG_DEBUG,
+return(0x1353+2408-0x1cbb);}}else{return(0x1ebd+1490-0x248f);}data[pos]=((
+timestamp->day&(0x3a6+8364-0x2443))<<(0x607+8305-0x2674))+((timestamp->day&
+(0x1922+2174-0x20b0))>>(0x1233+3314-0x1f21));pos++;if(wms_ts_bcd_to_int(
+timestamp->hour,&j)){if(j>(0x11fb+1473-0x17a5)){at_print(LOG_DEBUG,
"\x48\x6f\x75\x72\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j
-);return(0x15a+2520-0xb32);}}else{return(0x1474+2960-0x2004);}data[pos]=((
-timestamp->hour&(0x1026+1850-0x1751))<<(0xf38+5784-0x25cc))+((timestamp->hour&
-(0xc41+4727-0x1dc8))>>(0xbb5+6837-0x2666));pos++;if(wms_ts_bcd_to_int(timestamp
-->minute,&j)){if(j>(0x10f0+4935-0x23fc)){at_print(LOG_DEBUG,
+);return(0xa81+168-0xb29);}}else{return(0x40b+3473-0x119c);}data[pos]=((
+timestamp->hour&(0x287+3112-0xea0))<<(0x1bf2+1110-0x2044))+((timestamp->hour&
+(0x54b+6881-0x1f3c))>>(0x638+3013-0x11f9));pos++;if(wms_ts_bcd_to_int(timestamp
+->minute,&j)){if(j>(0xd96+4219-0x1dd6)){at_print(LOG_DEBUG,
"\x4d\x69\x6e\x75\x74\x65\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0x697+2340-0xfbb);}}else{return(0xf5a+1680-0x15ea);}data[pos]=((
-timestamp->minute&(0x5e0+6797-0x205e))<<(0x191c+1577-0x1f41))+((timestamp->
-minute&(0x1399+2454-0x1c3f))>>(0xca9+3482-0x1a3f));pos++;if(wms_ts_bcd_to_int(
-timestamp->second,&j)){if(j>(0x1321+4764-0x2582)){at_print(LOG_DEBUG,
+,j);return(0x17d4+885-0x1b49);}}else{return(0xa90+5647-0x209f);}data[pos]=((
+timestamp->minute&(0x9eb+2784-0x14bc))<<(0x1d7b+866-0x20d9))+((timestamp->minute
+&(0x2e6+9464-0x26ee))>>(0x1ce0+2164-0x2550));pos++;if(wms_ts_bcd_to_int(
+timestamp->second,&j)){if(j>(0x1bc+7550-0x1eff)){at_print(LOG_DEBUG,
"\x53\x65\x63\x6f\x6e\x64\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);return(0x957+4630-0x1b6d);}}else{return(0x329+508-0x525);}data[pos]=((
-timestamp->second&(0xf56+1900-0x16b3))<<(0x1864+1871-0x1faf))+((timestamp->
-second&(0x49d+538-0x5c7))>>(0x4ab+3814-0x138d));pos++;i=(sint7)timestamp->
-timezone;if(i>(0x79b+3370-0x1495)||i<-(0x61d+5255-0x1a74)){at_print(LOG_DEBUG,
+,j);return(0x2198+275-0x22ab);}}else{return(0x4d6+5964-0x1c22);}data[pos]=((
+timestamp->second&(0x7e1+6037-0x1f67))<<(0x949+3518-0x1703))+((timestamp->second
+&(0x43f+5404-0x186b))>>(0x111c+4820-0x23ec));pos++;i=(sint7)timestamp->timezone;
+if(i>(0x8d9+6157-0x20b6)||i<-(0xb49+4486-0x1c9f)){at_print(LOG_DEBUG,
"\x54\x69\x6d\x65\x7a\x6f\x6e\x65\x20\x69\x73\x20\x6f\x75\x74\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64\x3a\x20\x25\x64"
-,i);return(0xf86+85-0xfdb);}if(i>=(0x1d4f+727-0x2026)){data[pos]=(UINT8)(((UINT8
-)(i%(0x588+1582-0xbac)))<<(0x853+2390-0x11a5));data[pos]|=(i/(0x320+3765-0x11cb)
-);}else{i*=(-(0xd80+3297-0x1a60));data[pos]=(UINT8)(((UINT8)(i%
-(0x2f2+9052-0x2644)))<<(0x1db+320-0x317));data[pos]|=(i/(0x905+1529-0xef4));data
-[pos]|=(0x547+5741-0x1bac);}pos++;return pos;}UINT8 wms_ts_get_udh_length(const
-wms_udh_s_type*udh){UINT8 length=(0x222a+1246-0x2708);if(udh!=NULL){switch(udh->
-header_id){case WMS_UDH_CONCAT_8:length=(0x9e3+17-0x9f3)+(0x69f+7153-0x228f)+
-WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=(0x126b+4535-0x2421)+
-(0x246+1846-0x97b)+WMS_UDH_OCTETS_CONCAT16;break;case WMS_UDH_SPECIAL_SM:length=
-(0x5e9+6449-0x1f19)+(0x80b+2993-0x13bb)+WMS_UDH_OCTETS_SPECIAL_SM;break;case
-WMS_UDH_PORT_8:length=(0xba8+37-0xbcc)+(0x3ba+3435-0x1124)+WMS_UDH_OCTETS_PORT8;
-break;case WMS_UDH_PORT_16:length=(0x1e2c+322-0x1f6d)+(0x773+7527-0x24d9)+
-WMS_UDH_OCTETS_PORT16;break;case WMS_UDH_SMSC_CONTROL:length=
-(0x10fd+3676-0x1f58)+(0x4dc+6553-0x1e74)+udh->u.other.header_length;break;case
-WMS_UDH_SOURCE:length=(0xfd6+1241-0x14ae)+(0xa84+4142-0x1ab1)+udh->u.other.
-header_length;break;case WMS_UDH_WCMP:length=(0x705+4727-0x197b)+
-(0xc3+8232-0x20ea)+udh->u.other.header_length;break;case WMS_UDH_TEXT_FORMATING:
-if(!udh->u.text_formating.is_color_present){length=(0xb08+3970-0x1a89)+
-(0x10b+8267-0x2155)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{length=
-(0xfc8+1734-0x168d)+(0x824+3768-0x16db)+WMS_UDH_OCTETS_TEXT_FORMATTING+
-(0x1cc3+2221-0x256f);}break;case WMS_UDH_PRE_DEF_SOUND:length=
-(0x96c+5471-0x1eca)+(0x425+3928-0x137c)+WMS_UDH_OCTETS_PRE_DEF;break;case
-WMS_UDH_USER_DEF_SOUND:length=(0xbb0+5375-0x20ae)+(0x657+3623-0x147d)+udh->u.
-user_def_sound.data_length+(0x896+906-0xc1f);break;case WMS_UDH_PRE_DEF_ANIM:
-length=(0x17eb+20-0x17fe)+(0x102+9146-0x24bb)+WMS_UDH_OCTETS_PRE_DEF;break;case
-WMS_UDH_LARGE_ANIM:length=(0x8b4+4832-0x1b93)+(0x1607+3492-0x23aa)+
-WMS_UDH_LARGE_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x133f+3498-0x20e8);break;
-case WMS_UDH_SMALL_ANIM:length=(0xaa4+5699-0x20e6)+(0x98d+3558-0x1772)+
-WMS_UDH_SMALL_BITMAP_SIZE*WMS_UDH_ANIM_NUM_BITMAPS+(0x1c7d+487-0x1e63);break;
-case WMS_UDH_LARGE_PICTURE:length=(0x2295+317-0x23d1)+(0x901+6140-0x20fc)+
-WMS_UDH_LARGE_PIC_SIZE+(0x975+3904-0x18b4);break;case WMS_UDH_SMALL_PICTURE:
-length=(0x254+5555-0x1806)+(0x1ac0+70-0x1b05)+WMS_UDH_SMALL_PIC_SIZE+
-(0x9e0+3082-0x15e9);break;case WMS_UDH_VAR_PICTURE:length=(0x1a40+3116-0x266b)+
-(0x20ad+735-0x238b)+(UINT8)(udh->u.var_picture.height*udh->u.var_picture.width/
-(0xcf3+6305-0x258c))+(0x1fc+1286-0x6ff);break;case WMS_UDH_RFC822:length=
-(0xdff+2876-0x193a)+(0x2d3+3708-0x114e)+WMS_UDH_OCTETS_RFC822;break;case
-WMS_UDH_NAT_LANG_SS:length=(0x16dc+3236-0x237f)+(0xf2d+587-0x1177)+
+,i);return(0x10f+8881-0x23c0);}if(i>=(0x759+4508-0x18f5)){data[pos]=(UINT8)(((
+UINT8)(i%(0x227+4814-0x14eb)))<<(0x700+7461-0x2421));data[pos]|=(i/
+(0xd9+618-0x339));}else{i*=(-(0xf2c+2062-0x1739));data[pos]=(UINT8)(((UINT8)(i%
+(0x212+6888-0x1cf0)))<<(0x1fc6+472-0x219a));data[pos]|=(i/(0xac3+2076-0x12d5));
+data[pos]|=(0xac+7342-0x1d52);}pos++;return pos;}UINT8 wms_ts_get_udh_length(
+const wms_udh_s_type*udh){UINT8 length=(0x1e2c+473-0x2005);if(udh!=NULL){switch(
+udh->header_id){case WMS_UDH_CONCAT_8:length=(0x605+129-0x685)+
+(0x13f4+1218-0x18b5)+WMS_UDH_OCTETS_CONCAT8;break;case WMS_UDH_CONCAT_16:length=
+(0x1aaf+2194-0x2340)+(0x1b3c+2672-0x25ab)+WMS_UDH_OCTETS_CONCAT16;break;case
+WMS_UDH_SPECIAL_SM:length=(0x130b+5042-0x26bc)+(0xe0a+165-0xeae)+
+WMS_UDH_OCTETS_SPECIAL_SM;break;case WMS_UDH_PORT_8:length=(0xad7+1960-0x127e)+
+(0x16f3+3246-0x23a0)+WMS_UDH_OCTETS_PORT8;break;case WMS_UDH_PORT_16:length=
+(0x54d+8242-0x257e)+(0x13ef+1810-0x1b00)+WMS_UDH_OCTETS_PORT16;break;case
+WMS_UDH_SMSC_CONTROL:length=(0x1518+1334-0x1a4d)+(0x811+7924-0x2704)+udh->u.
+other.header_length;break;case WMS_UDH_SOURCE:length=(0x1cb4+228-0x1d97)+
+(0x15bb+2782-0x2098)+udh->u.other.header_length;break;case WMS_UDH_WCMP:length=
+(0xb50+6762-0x25b9)+(0xb66+2609-0x1596)+udh->u.other.header_length;break;case
+WMS_UDH_TEXT_FORMATING:if(!udh->u.text_formating.is_color_present){length=
+(0xa56+564-0xc89)+(0x1db+2736-0xc8a)+WMS_UDH_OCTETS_TEXT_FORMATTING;}else{length
+=(0x8fd+4866-0x1bfe)+(0x32+525-0x23e)+WMS_UDH_OCTETS_TEXT_FORMATTING+
+(0xa68+5118-0x1e65);}break;case WMS_UDH_PRE_DEF_SOUND:length=(0x8ea+3678-0x1747)
++(0x1a13+3223-0x26a9)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_USER_DEF_SOUND:
+length=(0x2030+622-0x229d)+(0x8e7+6293-0x217b)+udh->u.user_def_sound.data_length
++(0x1ef4+352-0x2053);break;case WMS_UDH_PRE_DEF_ANIM:length=(0x10ef+2584-0x1b06)
++(0x305+4030-0x12c2)+WMS_UDH_OCTETS_PRE_DEF;break;case WMS_UDH_LARGE_ANIM:length
+=(0x15e3+2428-0x1f5e)+(0x2b5+7593-0x205d)+WMS_UDH_LARGE_BITMAP_SIZE*
+WMS_UDH_ANIM_NUM_BITMAPS+(0x121a+5256-0x26a1);break;case WMS_UDH_SMALL_ANIM:
+length=(0x1f1+5515-0x177b)+(0x285+7937-0x2185)+WMS_UDH_SMALL_BITMAP_SIZE*
+WMS_UDH_ANIM_NUM_BITMAPS+(0xc9+9577-0x2631);break;case WMS_UDH_LARGE_PICTURE:
+length=(0xaf6+4096-0x1af5)+(0x69+5397-0x157d)+WMS_UDH_LARGE_PIC_SIZE+
+(0x1169+4097-0x2169);break;case WMS_UDH_SMALL_PICTURE:length=
+(0x1733+2736-0x21e2)+(0x136f+1848-0x1aa6)+WMS_UDH_SMALL_PIC_SIZE+
+(0xab+5843-0x177d);break;case WMS_UDH_VAR_PICTURE:length=(0xef+7119-0x1cbd)+
+(0x1b29+2119-0x236f)+(UINT8)(udh->u.var_picture.height*udh->u.var_picture.width/
+(0x23a6+723-0x2671))+(0x24f+1858-0x98e);break;case WMS_UDH_RFC822:length=
+(0x98b+6410-0x2294)+(0x682+1915-0xdfc)+WMS_UDH_OCTETS_RFC822;break;case
+WMS_UDH_NAT_LANG_SS:length=(0x387+2075-0xba1)+(0x1087+3289-0x1d5f)+
WMS_UDH_OCTETS_NAT_LANG_SS;break;case WMS_UDH_NAT_LANG_LS:length=
-(0x1f15+366-0x2082)+(0x10a+204-0x1d5)+WMS_UDH_OCTETS_NAT_LANG_LS;break;case
-WMS_UDH_USER_PROMPT:length=(0x1733+1531-0x1d2d)+(0x1aeb+2140-0x2346)+
+(0xb49+4197-0x1bad)+(0x1369+534-0x157e)+WMS_UDH_OCTETS_NAT_LANG_LS;break;case
+WMS_UDH_USER_PROMPT:length=(0x336+4235-0x13c0)+(0x12bd+2187-0x1b47)+
WMS_UDH_OCTETS_USER_PROMPT;break;case WMS_UDH_EXTENDED_OBJECT:length=
-(0x1f20+1566-0x253d)+(0x1afd+2555-0x24f7)+udh->u.eo.content.length;if(udh->u.eo.
+(0x71d+4995-0x1a9f)+(0x77+7538-0x1de8)+udh->u.eo.content.length;if(udh->u.eo.
first_segment==TRUE){length+=WMS_UDH_OCTETS_EO_HEADER;}break;default:length=
-(0x60f+5580-0x1bda)+(0x10da+3573-0x1ece)+udh->u.other.header_length;break;}}
-return length;}uint32 wms_ts_compute_user_data_header_length(const UINT8
-num_headers,const wms_udh_s_type*headers){uint32 length=(0x1531+2748-0x1fed);
-uint32 i;if(headers==NULL){at_print(LOG_DEBUG,
+(0x6b8+1343-0xbf6)+(0x814+929-0xbb4)+udh->u.other.header_length;break;}}return
+length;}uint32 wms_ts_compute_user_data_header_length(const UINT8 num_headers,
+const wms_udh_s_type*headers){uint32 length=(0x1a44+1740-0x2110);uint32 i;if(
+headers==NULL){at_print(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x63\x6f\x6d\x70\x75\x74\x65\x5f\x75\x73\x65\x72\x5f\x64\x61\x74\x61\x5f\x68\x65\x61\x64\x65\x72\x5f\x6c\x65\x6e\x67\x74\x68\x21"
-);return(0xa2+7303-0x1d29);}if(num_headers>(0x119+8888-0x23d1)){length+=
-(0x13a5+3232-0x2044);for(i=(0x20df+529-0x22f0);i<num_headers&&i<
-WMS_MAX_UD_HEADERS;i++){length+=(uint32)wms_ts_get_udh_length(&headers[i]);}}
-return length;}uint32 wms_ts_compute_gw_user_data_length(const wms_gw_dcs_s_type
-*dcs,const wms_gw_user_data_s_type*user_data){uint32 length=(0x1094+3095-0x1cab)
-;if(dcs==NULL||user_data==NULL){at_print(LOG_DEBUG,
+);return(0x180a+2132-0x205e);}if(num_headers>(0x70a+6806-0x21a0)){length+=
+(0x125+2987-0xccf);for(i=(0xbd7+1546-0x11e1);i<num_headers&&i<WMS_MAX_UD_HEADERS
+;i++){length+=(uint32)wms_ts_get_udh_length(&headers[i]);}}return length;}uint32
+ wms_ts_compute_gw_user_data_length(const wms_gw_dcs_s_type*dcs,const
+wms_gw_user_data_s_type*user_data){uint32 length=(0x1a3+1994-0x96d);if(dcs==NULL
+||user_data==NULL){at_print(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x63\x6f\x6d\x70\x75\x74\x65\x5f\x67\x77\x5f\x75\x73\x65\x72\x5f\x64\x61\x74\x61\x5f\x6c\x65\x6e\x67\x74\x68\x21"
-);return(0x6c6+3503-0x1475);}length+=wms_ts_compute_user_data_header_length(
+);return(0x1204+4627-0x2417);}length+=wms_ts_compute_user_data_header_length(
user_data->num_headers,user_data->headers);if(dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){length+=((user_data->sm_len*(0x1286+5262-0x270d))
-+(0x4b8+3470-0x123f))/(0x1849+2720-0x22e1);}else{length+=user_data->sm_len;}
+WMS_GW_ALPHABET_7_BIT_DEFAULT){length+=((user_data->sm_len*(0x52b+8356-0x25c8))+
+(0x1bc5+383-0x1d3d))/(0x102a+2199-0x18b9);}else{length+=user_data->sm_len;}
return length;}static int wms_ts_encode_udh_concat_8(UINT8*udh){int pos=
-(0x14d+6946-0x1c6f);if(const_header->u.concat_8.total_sm==(0x11b2+2444-0x1b3e)||
-const_header->u.concat_8.seq_num==(0x1d1+913-0x562)||const_header->u.concat_8.
+(0x69a+3006-0x1258);if(const_header->u.concat_8.total_sm==(0x2257+728-0x252f)||
+const_header->u.concat_8.seq_num==(0x2632+84-0x2686)||const_header->u.concat_8.
seq_num>const_header->u.concat_8.total_sm){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x69\x64\x20\x25\x64\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x6e\x6f\x20\x44\x61\x74\x61"
-,const_header->header_id);return(0x1cc4+2121-0x250d);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x1c4b+377-0x1dc4);}udh[pos++]=(UINT8)
WMS_UDH_CONCAT_8;udh[pos++]=(UINT8)WMS_UDH_OCTETS_CONCAT8;udh[pos++]=
const_header->u.concat_8.msg_ref;udh[pos++]=const_header->u.concat_8.total_sm;
udh[pos++]=const_header->u.concat_8.seq_num;return pos;}static int
-wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0x8e4+6197-0x2119);if(
-const_header->u.concat_16.total_sm==(0x1c4a+2630-0x2690)||const_header->u.
-concat_16.seq_num==(0x1361+1988-0x1b25)||const_header->u.concat_16.seq_num>
+wms_ts_encode_udh_concat16(UINT8*udh){int pos=(0xe99+3851-0x1da4);if(
+const_header->u.concat_16.total_sm==(0x3c0+3359-0x10df)||const_header->u.
+concat_16.seq_num==(0x143f+3981-0x23cc)||const_header->u.concat_16.seq_num>
const_header->u.concat_16.total_sm){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x69\x64\x20\x25\x64\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x6e\x6f\x20\x44\x61\x74\x61"
-,const_header->header_id);return(0xef3+4558-0x20c1);}udh[pos++]=(UINT8)
+,const_header->header_id);return(0x8a0+2683-0x131b);}udh[pos++]=(UINT8)
WMS_UDH_CONCAT_16;udh[pos++]=(UINT8)WMS_UDH_OCTETS_CONCAT16;udh[pos++]=(UINT8)((
-const_header->u.concat_16.msg_ref&65280)>>(0x1e21+1314-0x233b));udh[pos++]=(
-UINT8)(const_header->u.concat_16.msg_ref&(0x35c+1279-0x75c));udh[pos++]=
-const_header->u.concat_16.total_sm;udh[pos++]=const_header->u.concat_16.seq_num;
-return pos;}int wms_ts_encode_udh_nat_lang_ss(UINT8*udh){int pos=
-(0xa08+495-0xbf7);udh[pos++]=(UINT8)WMS_UDH_NAT_LANG_SS;udh[pos++]=(UINT8)
-WMS_UDH_OCTETS_NAT_LANG_SS;udh[pos++]=(UINT8)const_header->u.nat_lang_ss.
-nat_lang_id;return pos;}int wms_ts_encode_udh_nat_lang_ls(UINT8*udh){int pos=
-(0xc03+830-0xf41);udh[pos++]=(UINT8)WMS_UDH_NAT_LANG_LS;udh[pos++]=(UINT8)
-WMS_UDH_OCTETS_NAT_LANG_LS;udh[pos++]=(UINT8)const_header->u.nat_lang_ls.
-nat_lang_id;return pos;}int wms_ts_encode_udh_other(UINT8*udh,wms_udh_id_e_type
-header_id){int i=(0x76c+5749-0x1de1);int pos=(0x393+2552-0xd8b);udh[pos++]=(
-UINT8)const_header->u.other.header_id;udh[pos++]=const_header->u.other.
-header_length;for(i=(0x6d+5561-0x1626);i<const_header->u.other.header_length;i++
-){udh[pos++]=const_header->u.other.data[i];}return pos;}UINT8
-wms_ts_encode_user_data_header(UINT8 num_headers,const wms_udh_s_type*headers,
-UINT8*data){int i,pos=(0x59a+7992-0x24d2);if(num_headers==(0x9d3+300-0xaff))
-return(0x32c+698-0x5e6);++pos;for(i=(0xa15+6533-0x239a);i<WMS_MAX_UD_HEADERS&&i<
+const_header->u.concat_16.msg_ref&65280)>>(0x419+5521-0x19a2));udh[pos++]=(UINT8
+)(const_header->u.concat_16.msg_ref&(0xb4c+2512-0x141d));udh[pos++]=const_header
+->u.concat_16.total_sm;udh[pos++]=const_header->u.concat_16.seq_num;return pos;}
+int wms_ts_encode_udh_nat_lang_ss(UINT8*udh){int pos=(0x485+7320-0x211d);udh[pos
+++]=(UINT8)WMS_UDH_NAT_LANG_SS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_SS;udh[
+pos++]=(UINT8)const_header->u.nat_lang_ss.nat_lang_id;return pos;}int
+wms_ts_encode_udh_nat_lang_ls(UINT8*udh){int pos=(0x701+29-0x71e);udh[pos++]=(
+UINT8)WMS_UDH_NAT_LANG_LS;udh[pos++]=(UINT8)WMS_UDH_OCTETS_NAT_LANG_LS;udh[pos++
+]=(UINT8)const_header->u.nat_lang_ls.nat_lang_id;return pos;}int
+wms_ts_encode_udh_other(UINT8*udh,wms_udh_id_e_type header_id){int i=
+(0x2448+642-0x26ca);int pos=(0x237+1424-0x7c7);udh[pos++]=(UINT8)const_header->u
+.other.header_id;udh[pos++]=const_header->u.other.header_length;for(i=
+(0x622+4915-0x1955);i<const_header->u.other.header_length;i++){udh[pos++]=
+const_header->u.other.data[i];}return pos;}UINT8 wms_ts_encode_user_data_header(
+UINT8 num_headers,const wms_udh_s_type*headers,UINT8*data){int i,pos=
+(0x11b8+5443-0x26fb);if(num_headers==(0x5cf+5724-0x1c2b))return
+(0x1c3c+851-0x1f8f);++pos;for(i=(0x204f+711-0x2316);i<WMS_MAX_UD_HEADERS&&i<
num_headers;i++){const_header=&headers[i];switch(const_header->header_id){case
WMS_UDH_CONCAT_8:pos+=wms_ts_encode_udh_concat_8(data+pos);break;case
WMS_UDH_CONCAT_16:pos+=wms_ts_encode_udh_concat16(data+pos);break;
-#if (0x11e3+2222-0x1a91)
+#if (0x15d6+91-0x1631)
case WMS_UDH_SPECIAL_SM:pos+=wms_ts_encode_udh_special_sm(data+pos);break;case
WMS_UDH_PORT_8:pos+=wms_ts_encode_udh_port_8(data+pos);break;case
WMS_UDH_PORT_16:pos+=wms_ts_encode_udh_port16(data+pos);break;case
@@ -1315,49 +1318,49 @@
case WMS_UDH_NAT_LANG_SS:pos+=wms_ts_encode_udh_nat_lang_ss(data+pos);break;case
WMS_UDH_NAT_LANG_LS:pos+=wms_ts_encode_udh_nat_lang_ls(data+pos);break;default:
pos+=wms_ts_encode_udh_other(data+pos,const_header->header_id);}}data[
-(0xc93+2853-0x17b8)]=(UINT8)(pos-(0x23d+4804-0x1500));return((UINT8)(pos-
-(0xfe8+4739-0x226a)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type*
+(0x996+2429-0x1313)]=(UINT8)(pos-(0xe58+2345-0x1780));return((UINT8)(pos-
+(0x926+1391-0xe94)));}UINT8 wms_ts_encode_gw_user_data(const wms_gw_dcs_s_type*
dcs,const wms_gw_user_data_s_type*user_data,UINT8*data){UINT16 i,pos=
-(0x1186+1836-0x18b2);UINT8 fill_bits=(0x12da+3396-0x201e);UINT16
+(0xbd2+5877-0x22c7);UINT8 fill_bits=(0x268+1967-0xa17);UINT16
total_bits_occupied;UINT8 user_data_header_length;UINT16 user_data_length;data[
pos]=(UINT8)user_data->sm_len;pos++;if(dcs->alphabet==
-WMS_GW_ALPHABET_7_BIT_DEFAULT){if(user_data->num_headers>(0x64f+355-0x7b2)){if(
+WMS_GW_ALPHABET_7_BIT_DEFAULT){if(user_data->num_headers>(0x1e8+1928-0x970)){if(
wms_ts_compute_user_data_header_length(user_data->num_headers,user_data->headers
)<=WMS_SMS_UDL_MAX_8_BIT){user_data_header_length=wms_ts_encode_user_data_header
(user_data->num_headers,user_data->headers,data+pos);pos+=
-user_data_header_length+(0xc13+3059-0x1805);total_bits_occupied=(
-user_data_header_length+(0x1262+1943-0x19f8))*(0x57d+4308-0x1649);fill_bits=(
-total_bits_occupied%(0x1f57+1173-0x23e5));if(fill_bits!=(0x2a7+3395-0xfea)){
-fill_bits=(0x1bc2+2171-0x2436)-fill_bits;}user_data_length=(total_bits_occupied+
-fill_bits+(user_data->sm_len*(0xc28+5060-0x1fe5)))/(0x555+6339-0x1e11);data[
-(0x1a8+5185-0x15e9)]=(UINT8)user_data_length;data[(0x48f+5787-0x1b29)]=
+user_data_header_length+(0x4f1+1552-0xb00);total_bits_occupied=(
+user_data_header_length+(0x17db+114-0x184c))*(0xbdc+2215-0x147b);fill_bits=(
+total_bits_occupied%(0xf8+759-0x3e8));if(fill_bits!=(0x1878+473-0x1a51)){
+fill_bits=(0xbdb+1281-0x10d5)-fill_bits;}user_data_length=(total_bits_occupied+
+fill_bits+(user_data->sm_len*(0x12c+5512-0x16ad)))/(0x4f8+2603-0xf1c);data[
+(0xf05+185-0xfbe)]=(UINT8)user_data_length;data[(0xcf5+4242-0x1d86)]=
user_data_header_length;}else{at_print(LOG_DEBUG,
"\x45\x6e\x63\x6f\x64\x65\x20\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x48\x65\x61\x64\x65\x72\x20\x45\x78\x63\x65\x65\x64\x73\x20\x43\x61\x70\x61\x63\x69\x74\x79\x20\x2d\x20\x53\x6b\x69\x70\x70\x69\x6e\x67\x20\x55\x44\x48"
);}}i=wms_ts_pack_gw_7_bit_chars(user_data->sm_data,user_data->sm_len,fill_bits,
(UINT16)(WMS_MAX_LEN-pos),&data[pos]);pos+=i;}else{if(user_data->num_headers>
-(0x2aa+7856-0x215a)){if(wms_ts_compute_user_data_header_length(user_data->
+(0xa78+2226-0x132a)){if(wms_ts_compute_user_data_header_length(user_data->
num_headers,user_data->headers)<=WMS_SMS_UDL_MAX_8_BIT){user_data_header_length=
wms_ts_encode_user_data_header(user_data->num_headers,user_data->headers,data+
-pos);data[(0x668+7491-0x23ab)]=(UINT8)(user_data->sm_len+user_data_header_length
-+(0x121c+591-0x146a));pos+=user_data_header_length+(0x2191+582-0x23d6);}else{
+pos);data[(0x3ab+2653-0xe08)]=(UINT8)(user_data->sm_len+user_data_header_length+
+(0x14cb+3914-0x2414));pos+=user_data_header_length+(0x1740+1377-0x1ca0);}else{
at_print(LOG_DEBUG,
"\x45\x6e\x63\x6f\x64\x65\x20\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x48\x65\x61\x64\x65\x72\x20\x45\x78\x63\x65\x65\x64\x73\x20\x43\x61\x70\x61\x63\x69\x74\x79\x20\x2d\x20\x53\x6b\x69\x70\x70\x69\x6e\x67\x20\x55\x44\x48"
);}}memcpy(&data[pos],user_data->sm_data,user_data->sm_len);pos+=user_data->
sm_len;}return(UINT8)pos;}wms_status_e_type wms_ts_encode_deliver(const
wms_gw_deliver_s_type*deliver,T_zUfiSms_RawTsData*raw_ts_data_ptr){
-wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0xe0f+2507-0x17da),i;if(
+wms_status_e_type st=WMS_OK_S;UINT8*data;UINT8 pos=(0x2c9+3776-0x1189),i;if(
deliver==NULL||raw_ts_data_ptr==NULL){at_print(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x65\x6e\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72\x21"
);return WMS_NULL_PTR_S;}data=raw_ts_data_ptr->data;(void)memset(data,
-(0x16ad+3119-0x22dc),WMS_MAX_LEN);data[pos]=(0x5d7+5819-0x1c92);data[pos]|=
-deliver->more?(0xa82+2662-0x14e8):(0x15d2+4319-0x26ad);data[pos]|=deliver->
-status_report_enabled?(0xe30+5740-0x247c):(0xdd7+3657-0x1c20);data[pos]|=deliver
-->user_data_header_present?(0x978+5851-0x2013):(0x7aa+7156-0x239e);data[pos]|=
-deliver->reply_path_present?(0xef8+4042-0x1e42):(0x18a+5931-0x18b5);pos++;i=
-wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x3cd+6505-0x1d36)){
+(0x736+8084-0x26ca),WMS_MAX_LEN);data[pos]=(0x307+7238-0x1f4d);data[pos]|=
+deliver->more?(0x232+5785-0x18cb):(0x16e7+734-0x19c1);data[pos]|=deliver->
+status_report_enabled?(0x3a6+8003-0x22c9):(0x542+7366-0x2208);data[pos]|=deliver
+->user_data_header_present?(0xb61+6798-0x25af):(0x127+994-0x509);data[pos]|=
+deliver->reply_path_present?(0x8ea+2158-0x10d8):(0x1601+1386-0x1b6b);pos++;i=
+wms_ts_encode_address(&deliver->address,&data[pos]);if(i==(0x1435+3205-0x20ba)){
return WMS_INVALID_PARM_SIZE_S;}pos+=i;data[pos]=deliver->pid;pos++;pos+=
wms_ts_encode_dcs(&deliver->dcs,data+pos);i=wms_ts_encode_timestamp(&deliver->
-timestamp,data+pos);if(i==(0x195+1842-0x8c7)){return WMS_INVALID_PARM_VALUE_S;}
+timestamp,data+pos);if(i==(0x277+5238-0x16ed)){return WMS_INVALID_PARM_VALUE_S;}
pos+=i;if(wms_ts_compute_gw_user_data_length(&deliver->dcs,&deliver->user_data)>
WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79"
@@ -1365,54 +1368,54 @@
dcs,&deliver->user_data,data+pos);pos+=i;}raw_ts_data_ptr->tpdu_type=
WMS_TPDU_DELIVER;raw_ts_data_ptr->len=pos;return st;}UINT8
wms_ts_encode_relative_time(const wms_timestamp_s_type*timestamp){uint32 i;UINT8
- v=(0x652+4365-0x175f),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
+ v=(0x2a+6315-0x18d5),j;if(timestamp!=NULL){if(!wms_ts_bcd_to_int(timestamp->
year,&j)){at_print(LOG_DEBUG,
"\x59\x65\x61\x72\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j
-);}i=j*(0x1185+4029-0x1fd5);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print
-(LOG_DEBUG,
+);}i=j*(0x1c68+273-0x1c0c);if(!wms_ts_bcd_to_int(timestamp->month,&j)){at_print(
+LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);}i=i+j*(0x5f8+6944-0x20fa);if(!wms_ts_bcd_to_int(timestamp->day,&j)){
+,j);}i=i+j*(0x9f0+4386-0x1af4);if(!wms_ts_bcd_to_int(timestamp->day,&j)){
at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);}i
-+=j;if(i>(0x759+3501-0x14e8)){v=(UINT8)((i+(0x5df+816-0x909))/
-(0xeea+1863-0x162a)+(0x132c+2003-0x1a3f));}else if(i>=(0x759+436-0x90c)){v=(
-UINT8)(i+(0x1641+3667-0x23ee));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
++=j;if(i>(0x15a0+315-0x16bd)){v=(UINT8)((i+(0x93d+4859-0x1c32))/
+(0x127c+2163-0x1ae8)+(0xdc6+4338-0x1df8));}else if(i>=(0x183+6128-0x1972)){v=(
+UINT8)(i+(0x1206+4548-0x2324));}else{if(!wms_ts_bcd_to_int(timestamp->day,&j)){
at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);}i
-=j*(0x1102+2955-0x1c75)*(0xd3c+344-0xe58);if(!wms_ts_bcd_to_int(timestamp->hour,
-&j)){at_print(LOG_DEBUG,
+=j*(0x575+5997-0x1cca)*(0x8b9+4921-0x1bb6);if(!wms_ts_bcd_to_int(timestamp->hour
+,&j)){at_print(LOG_DEBUG,
"\x48\x6f\x75\x72\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j
-);}i=i+j*(0x81a+6332-0x209a);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
+);}i=i+j*(0x760+3609-0x153d);if(!wms_ts_bcd_to_int(timestamp->minute,&j)){
at_print(LOG_DEBUG,
"\x4d\x69\x6e\x75\x74\x65\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);}i+=j;if(i>(0x13a8+4664-0x25d4)*(0xb38+2367-0x143b)){v=(UINT8)((i-((
-(0x972+2902-0x14bc)*(0xc64+3121-0x1859))+(0x14e1+4532-0x2678)))/
-(0x1d38+2086-0x2540)+(0xdf+8901-0x2315));}else{v=(UINT8)((i+(0xf43+1098-0x1389))
-/(0xc41+3780-0x1b00)-(0xee0+97-0xf40));}}}else{at_print(LOG_DEBUG,
+,j);}i+=j;if(i>(0x1641+3557-0x241a)*(0x4fc+8601-0x2659)){v=(UINT8)((i-((
+(0x1bf0+1166-0x2072)*(0x176d+3913-0x267a))+(0xf66+4375-0x2060)))/
+(0xb11+3607-0x190a)+(0xa3b+478-0xb8a));}else{v=(UINT8)((i+(0x7b2+5065-0x1b77))/
+(0xd7c+4793-0x2030)-(0x9c8+6411-0x22d2));}}}else{at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x65\x6e\x63\x6f\x64\x65\x5f\x72\x65\x6c\x61\x74\x69\x76\x65\x5f\x74\x69\x6d\x65"
);}return v;}UINT8 wms_ts_encode_gw_validity(const wms_gw_validity_s_type*
-validity,UINT8*data){UINT8 i,pos=(0x10dd+243-0x11d0);switch(validity->format){
-case WMS_GW_VALIDITY_NONE:break;case WMS_GW_VALIDITY_RELATIVE:data[pos]=
+validity,UINT8*data){UINT8 i,pos=(0x4d3+588-0x71f);switch(validity->format){case
+ WMS_GW_VALIDITY_NONE:break;case WMS_GW_VALIDITY_RELATIVE:data[pos]=
wms_ts_encode_relative_time(&validity->u.time);pos++;break;case
WMS_GW_VALIDITY_ABSOLUTE:i=wms_ts_encode_timestamp(&validity->u.time,data+pos);
-if(i==(0x81+1511-0x668)){at_print(LOG_DEBUG,
+if(i==(0x4d9+3275-0x11a4)){at_print(LOG_DEBUG,
"\x45\x72\x72\x6f\x72\x20\x77\x68\x69\x6c\x65\x20\x44\x65\x63\x6f\x64\x69\x6e\x67\x20\x41\x62\x73\x6f\x6c\x75\x74\x65\x20\x56\x61\x6c\x69\x64\x69\x74\x79\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70"
);}pos+=i;break;case WMS_GW_VALIDITY_ENHANCED:break;default:break;}return pos;}
wms_status_e_type wms_ts_encode_submit(const wms_gw_submit_s_type*submit,
T_zUfiSms_RawTsData*raw_ts_data_ptr){wms_status_e_type st=WMS_OK_S;UINT8*data;
-UINT8 pos=(0x65+2352-0x995),i;if(submit==NULL||raw_ts_data_ptr==NULL){at_print(
-LOG_DEBUG,
+UINT8 pos=(0x23f+5982-0x199d),i;if(submit==NULL||raw_ts_data_ptr==NULL){at_print
+(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x65\x6e\x63\x6f\x64\x65\x5f\x73\x75\x62\x6d\x69\x74\x21"
);return WMS_NULL_PTR_S;}data=raw_ts_data_ptr->data;(void)memset(data,
-(0x1a43+325-0x1b88),WMS_MAX_LEN);data[pos]=(0x3ea+80-0x439);data[pos]|=submit->
-reject_duplicates?(0xfc9+5898-0x26cf):(0xd85+2117-0x15ca);if(submit->validity.
-format>(0xced+5303-0x21a1)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data[pos]|=
-submit->validity.format<<(0x9df+1040-0xdec);data[pos]|=submit->
-status_report_enabled?(0x1d64+76-0x1d90):(0x178b+1084-0x1bc7);data[pos]|=submit
-->user_data_header_present?(0xb12+4802-0x1d94):(0x9cd+4790-0x1c83);data[pos]|=
-submit->reply_path_present?(0xa63+6871-0x24ba):(0x1ec1+1911-0x2638);pos++;data[
-pos]=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit->
-address,&data[pos]);if(i==(0x1c33+76-0x1c7f)){return WMS_INVALID_PARM_SIZE_S;}
+(0x111b+3749-0x1fc0),WMS_MAX_LEN);data[pos]=(0xf0c+4920-0x2243);data[pos]|=
+submit->reject_duplicates?(0x1613+2083-0x1e32):(0x651+7819-0x24dc);if(submit->
+validity.format>(0xe1c+477-0xff6)){return st=WMS_INVALID_VALIDITY_FORMAT_S;}data
+[pos]|=submit->validity.format<<(0xabf+336-0xc0c);data[pos]|=submit->
+status_report_enabled?(0x1a3d+2318-0x232b):(0x213d+1024-0x253d);data[pos]|=
+submit->user_data_header_present?(0x7a4+7742-0x25a2):(0x189a+341-0x19ef);data[
+pos]|=submit->reply_path_present?(0x6cc+3002-0x1206):(0x16b4+1782-0x1daa);pos++;
+data[pos]=(UINT8)submit->message_reference;pos++;i=wms_ts_encode_address(&submit
+->address,&data[pos]);if(i==(0x2+9311-0x2461)){return WMS_INVALID_PARM_SIZE_S;}
pos+=i;data[pos]=submit->pid;pos++;pos+=wms_ts_encode_dcs(&submit->dcs,data+pos)
;pos+=wms_ts_encode_gw_validity(&submit->validity,data+pos);if(
wms_ts_compute_gw_user_data_length(&submit->dcs,&submit->user_data)>
@@ -1423,21 +1426,21 @@
WMS_TPDU_SUBMIT;raw_ts_data_ptr->len=pos;return st;}wms_status_e_type
wms_ts_encode_status_report(const wms_gw_status_report_s_type*status_report,
T_zUfiSms_RawTsData*raw_ts_data_ptr){wms_status_e_type st=WMS_OK_S;UINT8*data;
-UINT8 pos=(0x555+7767-0x23ac),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
+UINT8 pos=(0xc7+5533-0x1664),i;if(status_report==NULL||raw_ts_data_ptr==NULL){
at_print(LOG_DEBUG,
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x65\x6e\x63\x6f\x64\x65\x5f\x73\x74\x61\x74\x75\x73\x5f\x72\x65\x70\x6f\x72\x74\x21"
);return WMS_NULL_PTR_S;}data=raw_ts_data_ptr->data;(void)memset(data,
-(0x1cb9+363-0x1e24),WMS_MAX_LEN);data[pos]=(0x107d+1491-0x1640);data[pos]|=
-status_report->more?(0x84c+2630-0x1292):(0x2240+1026-0x263e);data[pos]|=
-status_report->status_report_qualifier?(0x7ba+523-0x9a5):(0x186+8020-0x20da);
-data[pos]|=status_report->user_data_header_present?(0x7d8+3021-0x1365):
-(0x11e5+3088-0x1df5);pos++;data[pos]=(UINT8)status_report->message_reference;pos
+(0x334+5457-0x1885),WMS_MAX_LEN);data[pos]=(0x29d+4360-0x1395);data[pos]|=
+status_report->more?(0x1157+5396-0x266b):(0x1640+1854-0x1d7a);data[pos]|=
+status_report->status_report_qualifier?(0x15c+5848-0x1814):(0x1603+1844-0x1d37);
+data[pos]|=status_report->user_data_header_present?(0xbf1+231-0xc98):
+(0xb96+5844-0x226a);pos++;data[pos]=(UINT8)status_report->message_reference;pos
++;i=wms_ts_encode_address(&status_report->address,&data[pos]);if(i==
-(0x925+2460-0x12c1)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x172+378-0x2ec)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->timestamp,data+pos);if(i==
-(0x158f+4030-0x254d)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x16ff+1369-0x1c58)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_encode_timestamp(&status_report->discharge_time,data+pos);if(i==
-(0x1acf+69-0x1b14)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
+(0x2d4+7487-0x2013)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;data[pos]=
status_report->tp_status;pos++;data[pos]=(UINT8)status_report->mask;pos++;if(
status_report->mask&WMS_TPDU_MASK_PID){data[pos]=status_report->pid;pos++;}if(
status_report->mask&WMS_TPDU_MASK_DCS){pos+=wms_ts_encode_dcs(&status_report->
@@ -1452,7 +1455,7 @@
T_zUfiSms_RawTsData*ptRawTsData){wms_status_e_type st=WMS_OK_S;const
wms_gw_pp_ts_data_s_type*msg;if(ptClientTsData==NULL||ptRawTsData==NULL){return
WMS_NULL_PTR_S;}msg=&ptClientTsData->u.gw_pp;switch(ptClientTsData->format){
-#if (0x4e8+5743-0x1b57)
+#if (0xea7+2829-0x19b4)
case WMS_FORMAT_CDMA:case WMS_FORMAT_ANALOG_AWISMS:case WMS_FORMAT_ANALOG_CLI:
case WMS_FORMAT_ANALOG_VOICE_MAIL:case WMS_FORMAT_ANALOG_SMS:case WMS_FORMAT_MWI
:st=wms_ts_encode_bearer_data(&ptClientTsData->u.cdma,ptRawTsData);break;
@@ -1462,7 +1465,7 @@
ptRawTsData);break;case WMS_TPDU_SUBMIT:st=wms_ts_encode_submit(&msg->u.submit,
ptRawTsData);break;case WMS_TPDU_STATUS_REPORT:st=wms_ts_encode_status_report(&
msg->u.status_report,ptRawTsData);break;
-#if (0x1c14+427-0x1dbf)
+#if (0x9c2+5324-0x1e8e)
case WMS_TPDU_SUBMIT_REPORT_ACK:st=wms_ts_encode_submit_report_ack(&msg->u.
submit_report_ack,ptRawTsData);break;case WMS_TPDU_SUBMIT_REPORT_ERROR:st=
wms_ts_encode_submit_report_error(&msg->u.submit_report_error,ptRawTsData);break
@@ -1479,360 +1482,361 @@
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x66\x6f\x72\x6d\x61\x74\x3a\x20\x25\x64",
ptClientTsData->format);break;}ptRawTsData->format=ptClientTsData->format;return
st;}UINT8 wms_ts_unpack_gw_7_bit_chars(const UINT8*in,UINT8 in_len,UINT8
-out_len_max,UINT16 shift,UINT8*out){int i=(0xbd2+3328-0x18d2);UINT16 pos=
-(0x174+3603-0xf87);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
+out_len_max,UINT16 shift,UINT8*out){int i=(0x11ca+4781-0x2477);UINT16 pos=
+(0x19c1+2188-0x224d);if(in==NULL||out==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x75\x6e\x70\x61\x63\x6b\x5f\x67\x77\x5f\x37\x5f\x62\x69\x74\x5f\x63\x68\x61\x72\x73"
-);return(0x87c+6108-0x2058);}if(shift!=(0xf2+801-0x413))pos=pos+
-(0x88+9862-0x270d);if(shift==(0xc0d+6693-0x262b)){out[(0x6b4+129-0x735)]=in[
-(0x2d6+8888-0x258e)]>>(0x1475+1420-0x1a00);shift=(0x14c5+3146-0x210f);i=
-(0xa83+5602-0x2064);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
-<<shift)&(0xa45+1922-0x1148);if(pos!=(0x89a+3898-0x17d4)){
-#if (0x3b3+3306-0x109c)
-if(shift==(0x402+8092-0x239e)){out[i]|=(0x11f+7221-0x1d54);}else{out[i]|=in[pos-
-(0xdc6+1041-0x11d6)]>>((0x126f+3193-0x1ee0)-shift);}
+);return(0x168b+248-0x1783);}if(shift!=(0x387+1331-0x8ba))pos=pos+
+(0x5b2+715-0x87c);if(shift==(0xae3+4566-0x1cb2)){out[(0xa12+2915-0x1575)]=in[
+(0x57f+7011-0x20e2)]>>(0x243d+617-0x26a5);shift=(0x1a09+2129-0x225a);i=
+(0xdfc+4361-0x1f04);}for(i=i;i<out_len_max&&i<in_len;i++,pos++){out[i]=(in[pos]
+<<shift)&(0xf72+1930-0x167d);if(pos!=(0x1306+4447-0x2465)){
+#if (0x615+6133-0x1e09)
+if(shift==(0xba5+1407-0x1124)){out[i]|=(0xc1a+6082-0x23dc);}else{out[i]|=in[pos-
+(0x1c4+8741-0x23e8)]>>((0x873+1931-0xff6)-shift);}
#else
-out[i]|=in[pos-(0x983+3660-0x17ce)]>>((0x848+2067-0x1053)-shift);
+out[i]|=in[pos-(0x17c8+1798-0x1ecd)]>>((0x15cd+3195-0x2240)-shift);
#endif
-}shift++;if(shift==(0xabc+6026-0x223f)){shift=(0x1274+3268-0x1f38);i++;if(i>=
+}shift++;if(shift==(0x1607+2956-0x218c)){shift=(0x2db+8844-0x2567);i++;if(i>=
out_len_max){at_print(LOG_DEBUG,
"\x4e\x6f\x74\x20\x65\x6e\x6f\x75\x67\x68\x20\x6f\x75\x74\x70\x75\x74\x20\x62\x75\x66\x66\x65\x72\x20\x66\x6f\x72\x20\x75\x6e\x70\x61\x63\x6b\x69\x6e\x67\x21"
-);break;}out[i]=in[pos]>>(0x19b9+2521-0x2391);}}return(UINT8)(pos);}UINT8
+);break;}out[i]=in[pos]>>(0x1a0+6380-0x1a8b);}}return(UINT8)(pos);}UINT8
wms_ts_decode_address(const UINT8*data,wms_address_s_type*addr){UINT8 i,pos=
-(0xa49+610-0xcab);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
+(0x44c+2195-0xcdf);i=data[pos];if(i>WMS_GW_ADDRESS_MAX){at_print(LOG_DEBUG,
"\x41\x64\x64\x72\x20\x6c\x65\x6e\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x20\x25\x64"
-,i);return(0x282+1232-0x752);}addr->number_of_digits=i;pos++;addr->digit_mode=
+,i);return(0xc33+6364-0x250f);}addr->number_of_digits=i;pos++;addr->digit_mode=
WMS_DIGIT_MODE_4_BIT;addr->number_type=(wms_number_type_e_type)((data[pos]&
-(0x280+2623-0xc4f))>>(0xab5+2728-0x1559));addr->number_plan=(
-wms_number_plan_e_type)(data[pos]&(0x442+115-0x4a6));pos++;if(addr->number_type
-==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0x565+828-0x8a1);addr->
-digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
-(0xbe0+891-0xf5a))/(0x741+1842-0xe71);addr->number_of_digits=(UINT8)(addr->
-number_of_digits*(0x1e70+1607-0x24b3)/(0x703+6666-0x2106));(void)
+(0x1cba+2712-0x26e2))>>(0x1c2b+1675-0x22b2));addr->number_plan=(
+wms_number_plan_e_type)(data[pos]&(0xb7c+3639-0x19a4));pos++;if(addr->
+number_type==WMS_NUMBER_ALPHANUMERIC){UINT8 bytes_increment=(0xddc+4860-0x20d8);
+addr->digit_mode=WMS_DIGIT_MODE_8_BIT;bytes_increment=(addr->number_of_digits+
+(0x76c+1117-0xbc8))/(0x9d4+93-0xa2f);addr->number_of_digits=(UINT8)(addr->
+number_of_digits*(0x20c8+308-0x21f8)/(0x50d+3075-0x1109));(void)
wms_ts_unpack_gw_7_bit_chars(&data[pos],addr->number_of_digits,
-WMS_GW_ADDRESS_MAX,(0x203d+278-0x2153),addr->digits);pos+=bytes_increment;}else{
-for(i=(0xa6+2292-0x99a);i<addr->number_of_digits;i++){addr->digits[i++]=data[pos
-]&(0xc08+4513-0x1d9a);addr->digits[i]=(data[pos]&(0x1613+4002-0x24c5))>>
-(0x182+3279-0xe4d);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data,
-wms_gw_dcs_s_type*dcs){UINT8 pos=(0x4e3+1775-0xbd2);UINT8 i;if(data==NULL||dcs==
+WMS_GW_ADDRESS_MAX,(0x16a5+945-0x1a56),addr->digits);pos+=bytes_increment;}else{
+for(i=(0xaa8+6618-0x2482);i<addr->number_of_digits;i++){addr->digits[i++]=data[
+pos]&(0x2e2+1726-0x991);addr->digits[i]=(data[pos]&(0x332+9391-0x26f1))>>
+(0x4b3+1237-0x984);pos++;}}return pos;}UINT8 wms_ts_decode_dcs(const UINT8*data,
+wms_gw_dcs_s_type*dcs){UINT8 pos=(0x7ec+1193-0xc95);UINT8 i;if(data==NULL||dcs==
NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x63\x73"
-);return(0xf16+4173-0x1f63);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
+);return(0x1257+386-0x13d9);}dcs->msg_class=WMS_MESSAGE_CLASS_NONE;dcs->
msg_waiting=WMS_GW_MSG_WAITING_NONE;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;
-dcs->is_compressed=FALSE;i=(data[pos]&(0x1b7f+1660-0x213b))>>(0x1439+188-0x14ef)
-;switch(i){case(0xfcb+622-0x1239):dcs->is_compressed=data[pos]&
-(0x60b+7108-0x21af);if(data[pos]&(0x208a+704-0x233a)){dcs->msg_class=(
-wms_message_class_e_type)(data[pos]&(0x252+8598-0x23e5));}else{dcs->msg_class=
+dcs->is_compressed=FALSE;i=(data[pos]&(0x23d+9594-0x26f7))>>(0x8f4+7529-0x2657);
+switch(i){case(0x1901+2071-0x2118):dcs->is_compressed=data[pos]&
+(0x8c0+3773-0x175d);if(data[pos]&(0x1842+2690-0x22b4)){dcs->msg_class=(
+wms_message_class_e_type)(data[pos]&(0x18bb+2159-0x2127));}else{dcs->msg_class=
WMS_MESSAGE_CLASS_NONE;}dcs->alphabet=(wms_gw_alphabet_e_type)((data[pos]&
-(0xbd6+6913-0x26cb))>>(0x84c+7214-0x2478));break;case(0x12cc+3792-0x2199):if((
-data[pos]&(0x13a9+4239-0x2408))==(0x402+4230-0x1458)){dcs->alphabet=(data[pos]&
-(0x10ca+4938-0x2410))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
-msg_class=(wms_message_class_e_type)(data[pos]&(0x726+7495-0x246a));dcs->
+(0x1144+2232-0x19f0))>>(0x58c+4255-0x1629));break;case(0xe88+2002-0x1657):if((
+data[pos]&(0x269+5869-0x1926))==(0xe33+5162-0x222d)){dcs->alphabet=(data[pos]&
+(0x6c3+2638-0x110d))?WMS_GW_ALPHABET_8_BIT:WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->
+msg_class=(wms_message_class_e_type)(data[pos]&(0x3db+3331-0x10db));dcs->
is_compressed=FALSE;dcs->msg_waiting=WMS_GW_MSG_WAITING_NONE_1111;}else{dcs->
is_compressed=FALSE;dcs->msg_class=WMS_MESSAGE_CLASS_NONE;if((data[pos]&
-(0x1365+4158-0x2373))==(0x591+8211-0x25a4)){dcs->msg_waiting=
+(0x705+5807-0x1d84))==(0x1ac6+1397-0x203b)){dcs->msg_waiting=
WMS_GW_MSG_WAITING_DISCARD;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else if(
-(data[pos]&(0x185d+2768-0x22fd))==(0x483+1557-0xa88)){dcs->msg_waiting=
+(data[pos]&(0x1d1f+63-0x1d2e))==(0x446+2893-0xf83)){dcs->msg_waiting=
WMS_GW_MSG_WAITING_STORE;dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}else{dcs->
msg_waiting=WMS_GW_MSG_WAITING_STORE;dcs->alphabet=WMS_GW_ALPHABET_UCS2;}dcs->
-msg_waiting_active=(data[pos]&(0x169c+626-0x1906))?TRUE:FALSE;dcs->
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x589+4119-0x159d))
-;}break;default:at_print(LOG_DEBUG,
+msg_waiting_active=(data[pos]&(0xa10+3810-0x18ea))?TRUE:FALSE;dcs->
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(data[pos]&(0x4ab+678-0x74e));}
+break;default:at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x44\x43\x53\x3a\x20\x25\x78",data[pos]);dcs->
alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;dcs->is_compressed=FALSE;dcs->msg_waiting
=WMS_GW_MSG_WAITING_NONE;dcs->msg_class=WMS_MESSAGE_CLASS_NONE;break;}if(dcs->
alphabet>WMS_GW_ALPHABET_UCS2){dcs->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}dcs
->raw_dcs_data=data[pos];pos++;return pos;}UINT8 wms_ts_decode_timestamp(const
-UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0xe2b+345-0xf84),i,j;if(
+UINT8*data,wms_timestamp_s_type*timestamp){UINT8 pos=(0x80c+4767-0x1aab),i,j;if(
data==NULL||timestamp==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x74\x69\x6d\x65\x73\x74\x61\x6d\x70"
-);return(0x153f+689-0x17f0);}i=((data[pos]&(0x11+8801-0x2263))<<
-(0x118f+37-0x11b0))+((data[pos]&(0x4d8+3821-0x12d5))>>(0x2dd+986-0x6b3));if(!
+);return(0x29a+7146-0x1e84);}i=((data[pos]&(0x1369+202-0x1424))<<
+(0x1e96+1981-0x264f))+((data[pos]&(0xd22+3491-0x19d5))>>(0x7f3+594-0xa41));if(!
wms_ts_bcd_to_int(i,&j)){at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x59\x65\x61\x72\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x1914+2373-0x2259);}timestamp->year=i;pos++;i=((data[pos]&
-(0x55a+2900-0x109f))<<(0x910+4950-0x1c62))+((data[pos]&(0x6aa+122-0x634))>>
-(0xc43+4454-0x1da5));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x15d5+423-0x1770)||j<
-(0x7d7+4715-0x1a41)){at_print(LOG_DEBUG,
+,data[pos]);i=(0x188f+1801-0x1f98);}timestamp->year=i;pos++;i=((data[pos]&
+(0x32d+6140-0x1b1a))<<(0x11d3+4438-0x2325))+((data[pos]&(0xb63+6571-0x241e))>>
+(0x82+7452-0x1d9a));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x87d+3582-0x166f)||j<
+(0xf94+5534-0x2531)){at_print(LOG_DEBUG,
"\x4d\x6f\x6e\x74\x68\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64"
-,j);i=(0x1a4c+390-0x1bd1);}}else{at_print(LOG_DEBUG,
+,j);i=(0x9e4+3494-0x1789);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x4d\x6f\x6e\x74\x68\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x545+2979-0x10e7);}timestamp->month=i;pos++;i=((data[pos]&
-(0x913+3127-0x153b))<<(0xf59+4611-0x2158))+((data[pos]&(0x22aa+846-0x2508))>>
-(0xb39+3836-0x1a31));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x3d8+3619-0x11dc)||j<
-(0x43a+8148-0x240d)){at_print(LOG_DEBUG,
+,data[pos]);i=(0xbb+8185-0x20b3);}timestamp->month=i;pos++;i=((data[pos]&
+(0x10c9+1694-0x1758))<<(0x87d+5158-0x1c9f))+((data[pos]&(0x11c7+492-0x12c3))>>
+(0x1a1a+3182-0x2684));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1c6+441-0x360)||j<
+(0x5ad+6105-0x1d85)){at_print(LOG_DEBUG,
"\x44\x61\x79\x20\x69\x73\x20\x69\x6e\x76\x61\x6c\x69\x64\x3a\x20\x25\x64",j);i=
-(0x182b+904-0x1bb2);}}else{at_print(LOG_DEBUG,
+(0x11e3+4985-0x255b);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x44\x61\x79\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0xe1f+1786-0x1518);}timestamp->day=i;pos++;i=((data[pos]&
-(0x12f1+2260-0x1bb6))<<(0x16af+411-0x1846))+((data[pos]&(0x436+8694-0x253c))>>
-(0x694+4748-0x191c));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x45b+709-0x709)){
+,data[pos]);i=(0x68c+697-0x944);}timestamp->day=i;pos++;i=((data[pos]&
+(0x9a3+1712-0x1044))<<(0x20c6+53-0x20f7))+((data[pos]&(0xc23+1731-0x11f6))>>
+(0x726+1018-0xb1c));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1e6d+932-0x21fa)){
at_print(LOG_DEBUG,
"\x48\x6f\x75\x72\x20\x69\x73\x20\x74\x6f\x6f\x20\x6c\x61\x72\x67\x65\x3a\x20\x25\x64"
-,j);i=(0x4b8+2680-0xf30);}}else{at_print(LOG_DEBUG,
+,j);i=(0x1043+1168-0x14d3);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x48\x6f\x75\x72\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x9e9+6016-0x2169);}timestamp->hour=i;pos++;i=((data[pos]&
-(0x1a92+519-0x1c8a))<<(0x1648+1361-0x1b95))+((data[pos]&(0x1517+1743-0x1af6))>>
-(0x1545+1809-0x1c52));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1000+4459-0x2130)){
+,data[pos]);i=(0x1864+7-0x186b);}timestamp->hour=i;pos++;i=((data[pos]&
+(0x907+4339-0x19eb))<<(0x152+2577-0xb5f))+((data[pos]&(0xe60+6388-0x2664))>>
+(0x1399+1963-0x1b40));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x1d9a+855-0x20b6)){
at_print(LOG_DEBUG,
"\x4d\x69\x6e\x75\x74\x65\x20\x69\x73\x20\x74\x6f\x6f\x20\x6c\x61\x72\x67\x65\x3a\x20\x25\x64"
-,j);i=(0x1b67+239-0x1c56);}}else{at_print(LOG_DEBUG,
+,j);i=(0xb20+3558-0x1906);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x4d\x69\x6e\x75\x74\x65\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0x88+4379-0x11a3);}timestamp->minute=i;pos++;i=((data[pos]&
-(0x6f3+4974-0x1a52))<<(0xe99+2723-0x1938))+((data[pos]&(0xcc5+839-0xf1c))>>
-(0xbfd+3218-0x188b));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x5e9+3341-0x12bb)){
+,data[pos]);i=(0x1092+4536-0x224a);}timestamp->minute=i;pos++;i=((data[pos]&
+(0x1098+2203-0x1924))<<(0x407+1746-0xad5))+((data[pos]&(0x1546+304-0x1586))>>
+(0x17a+6065-0x1927));if(wms_ts_bcd_to_int(i,&j)){if(j>(0x692+1413-0xbdc)){
at_print(LOG_DEBUG,
"\x53\x65\x63\x6f\x6e\x64\x20\x69\x73\x20\x74\x6f\x6f\x20\x6c\x61\x72\x67\x65\x3a\x20\x25\x64"
-,i);i=(0xf8b+3909-0x1ed0);}}else{at_print(LOG_DEBUG,
+,i);i=(0xfc+4157-0x1139);}}else{at_print(LOG_DEBUG,
"\x49\x6e\x76\x61\x6c\x69\x64\x20\x42\x43\x44\x20\x44\x69\x67\x69\x74\x73\x20\x69\x6e\x20\x45\x6e\x63\x6f\x64\x65\x64\x20\x54\x69\x6d\x65\x73\x74\x61\x6d\x70\x20\x53\x65\x63\x6f\x6e\x64\x20\x3a\x20\x25\x64"
-,data[pos]);i=(0xd7+7143-0x1cbe);}timestamp->second=i;pos++;if(data[pos]&
-(0x1efa+1861-0x2637)){timestamp->timezone=(data[pos]&(0x305+1855-0xa3d))*
-(0xf92+1314-0x14aa)+((data[pos]&(0x97b+285-0x9a8))>>(0xa5a+6071-0x220d));
-timestamp->timezone*=(-(0x8da+2994-0x148b));}else{timestamp->timezone=(sint7)((
-data[pos]&(0x227+5836-0x18e4))*(0x11da+5411-0x26f3)+((data[pos]&
-(0x19f1+2072-0x2119))>>(0xa73+6210-0x22b1)));}if(timestamp->timezone>
-(0x974+6786-0x23c6)||timestamp->timezone<-(0x4e8+3557-0x129d)){at_print(
-LOG_DEBUG,
+,data[pos]);i=(0x110+640-0x390);}timestamp->second=i;pos++;if(data[pos]&
+(0xb84+1756-0x1258)){timestamp->timezone=(data[pos]&(0x1eda+303-0x2002))*
+(0x419+5147-0x182a)+((data[pos]&(0x1503+4135-0x243a))>>(0x11e3+4622-0x23ed));
+timestamp->timezone*=(-(0xde0+2024-0x15c7));}else{timestamp->timezone=(sint7)((
+data[pos]&(0x79c+2047-0xf8c))*(0x1cca+1043-0x20d3)+((data[pos]&
+(0x842+6842-0x220c))>>(0x532+371-0x6a1)));}if(timestamp->timezone>
+(0x530+1620-0xb54)||timestamp->timezone<-(0xb27+3215-0x1786)){at_print(LOG_DEBUG
+,
"\x54\x69\x6d\x65\x7a\x6f\x6e\x65\x20\x69\x73\x20\x6f\x75\x74\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64\x3a\x20\x25\x64"
-,timestamp->timezone);timestamp->timezone=(0x1baf+740-0x1e93);}pos++;return pos;
-}static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0xb41+5205-0x1f96);if(udh==NULL||header_ptr==NULL){
+,timestamp->timezone);timestamp->timezone=(0xd1c+309-0xe51);}pos++;return pos;}
+static UINT8 wms_ts_decode_udh_concat_8(const UINT8*udh,wms_udh_s_type*
+header_ptr){UINT8 pos=(0xc4+4080-0x10b4);if(udh==NULL||header_ptr==NULL){
at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x16a+6590-0x1b28);}if(udh[pos]<(0x3ec+7336-0x2091)){at_print(LOG_DEBUG,
+(0x2c6+239-0x3b5);}if(udh[pos]<(0xa4c+4025-0x1a02)){at_print(LOG_DEBUG,
"\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x43\x6f\x6e\x63\x61\x74\x20\x38\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x753+6678-0x2169);}if(udh[pos+(0xa8d+4652-0x1cb7)]==
-(0x2539+64-0x2579)||udh[pos+(0x1749+702-0x1a04)]>udh[pos+(0xcb5+6525-0x2630)]){
-at_print(LOG_DEBUG,
+,udh[pos]);return(0x19b6+2117-0x21fb);}if(udh[pos+(0x16bf+3726-0x254b)]==
+(0x1eaf+261-0x1fb4)||udh[pos+(0xbc0+2060-0x13c9)]>udh[pos+(0x14d8+3192-0x214e)])
+{at_print(LOG_DEBUG,
"\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x43\x6f\x6e\x74\x61\x63\x74\x20\x38\x20\x77\x69\x74\x68\x20\x6f\x75\x74\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64\x20\x6d\x61\x78\x20\x6d\x65\x73\x73\x61\x67\x65\x73"
-);return(0x1ac+5022-0x154a);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
+);return(0xe86+2563-0x1889);}pos++;header_ptr->header_id=WMS_UDH_CONCAT_8;
header_ptr->u.concat_8.msg_ref=udh[pos++];header_ptr->u.concat_8.total_sm=udh[
-pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0x95d+1086-0xd9b)]+
-(0x4b2+4922-0x17eb));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x27+9074-0x2399);if(udh==NULL||header_ptr
-==NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");
-return(0x1745+3097-0x235e);}if(udh[pos]<(0xf28+2024-0x170c)){at_print(LOG_DEBUG,
+pos++];header_ptr->u.concat_8.seq_num=udh[pos++];return(udh[(0xd11+2743-0x17c8)]
++(0x1013+2985-0x1bbb));}static UINT8 wms_ts_decode_udh_concat16(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0x8b9+3980-0x1845);if(udh==NULL||
+header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1b61+2200-0x23f9);}if(
+udh[pos]<(0x2b0+5750-0x1922)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x43\x6f\x6e\x63\x61\x74\x31\x36\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x7f+1232-0x54f);}if(udh[pos+(0x1410+1532-0x1a09)]==
-(0x9ab+7445-0x26c0)||udh[pos+(0x1f58+949-0x2309)]==(0xf30+818-0x1262)||udh[pos+
-(0x1765+2267-0x203c)]>udh[pos+(0x2d0+6983-0x1e14)])return(0x90b+4146-0x193d);
-header_ptr->header_id=WMS_UDH_CONCAT_16;pos++;header_ptr->u.concat_16.msg_ref=
+,udh[pos]);return(0x171d+2051-0x1f20);}if(udh[pos+(0x8f6+3603-0x1706)]==
+(0x19f7+2579-0x240a)||udh[pos+(0x1d5b+194-0x1e19)]==(0x120b+5163-0x2636)||udh[
+pos+(0x1a16+1244-0x1eee)]>udh[pos+(0x9a2+4823-0x1c76)])return(0x24a6+563-0x26d9)
+;header_ptr->header_id=WMS_UDH_CONCAT_16;pos++;header_ptr->u.concat_16.msg_ref=
udh[pos++];header_ptr->u.concat_16.msg_ref=(UINT16)(header_ptr->u.concat_16.
-msg_ref<<(0x233c+31-0x2353))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[pos
-++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0x76a+2454-0x1100)]+
-(0x971+4594-0x1b62));}static UINT8 wms_ts_udh_decode_first_seg_check(const UINT8
- len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=(0xab2+4489-0x1c3b);
-UINT8 num_headers=(0xf14+5784-0x25ac);UINT8 udhl=(0xeb+6084-0x18af);UINT8 iedl=
-(0x542+6941-0x205f);UINT8 iei=(0x1b1c+1840-0x224c);*is_first_segment_ptr=TRUE;if
-(data==NULL||data[pos]==(0x7d7+2371-0x111a)||len==(0xb1+8654-0x227f)){at_print(
-LOG_DEBUG,
+msg_ref<<(0x10d0+4803-0x238b))|udh[pos++];header_ptr->u.concat_16.total_sm=udh[
+pos++];header_ptr->u.concat_16.seq_num=udh[pos++];return(udh[(0xb40+2158-0x13ae)
+]+(0x783+2045-0xf7f));}static UINT8 wms_ts_udh_decode_first_seg_check(const
+UINT8 len,const UINT8*data,UINT8*is_first_segment_ptr){UINT8 pos=
+(0xf21+2019-0x1704);UINT8 num_headers=(0x44b+7435-0x2156);UINT8 udhl=
+(0x1067+182-0x111d);UINT8 iedl=(0x7b5+4155-0x17f0);UINT8 iei=
+(0x1018+2553-0x1a11);*is_first_segment_ptr=TRUE;if(data==NULL||data[pos]==
+(0x14f+3671-0xfa6)||len==(0xb6+3749-0xf5b)){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x75\x64\x68\x5f\x64\x65\x63\x6f\x64\x65\x5f\x66\x69\x72\x73\x74\x5f\x73\x65\x67\x5f\x63\x68\x65\x63\x6b"
);return FALSE;}udhl=data[pos];pos++;while((pos<udhl)&&(num_headers<
-WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0x770+6262-0x1fe5)];if(iei==
-WMS_UDH_CONCAT_16){if(data[pos+(0xd22+2837-0x1832)]!=(0x5df+6465-0x1f1f)){
+WMS_MAX_UD_HEADERS)){iei=data[pos];iedl=data[pos+(0x85a+6189-0x2086)];if(iei==
+WMS_UDH_CONCAT_16){if(data[pos+(0x461+1224-0x924)]!=(0x666+6866-0x2137)){
at_print(LOG_DEBUG,
"\x57\x4d\x53\x5f\x55\x44\x48\x5f\x43\x4f\x4e\x43\x41\x54\x5f\x31\x36\x20\x6e\x6f\x74\x20\x66\x69\x72\x73\x74\x20\x73\x65\x67\x6d\x65\x6e\x74\x21"
);*is_first_segment_ptr=FALSE;return TRUE;}else{return TRUE;}}else{num_headers++
-;pos+=((0x720+3960-0x1696)+iedl);}}return TRUE;}static UINT8
+;pos+=((0xdd9+4002-0x1d79)+iedl);}}return TRUE;}static UINT8
wms_ts_decode_udh_special_sm(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x131a+4441-0x2473);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x12c7+2111-0x1b06);}if(
-udh[pos]<(0x157f+149-0x1612)){at_print(LOG_DEBUG,
+pos=(0x1b00+1266-0x1ff2);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x7+3447-0xd7e);}if(udh[
+pos]<(0xc6+8760-0x22fc)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x53\x70\x65\x63\x69\x61\x6c\x20\x53\x4d\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x1598+2267-0x1e73);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x8ed+5030-0x1c93);}pos++;header_ptr->header_id=
WMS_UDH_SPECIAL_SM;header_ptr->u.special_sm.msg_waiting=(
-wms_gw_msg_waiting_e_type)((udh[pos]>>(0xac8+4881-0x1dd2)==(0xb22+5638-0x2128))?
+wms_gw_msg_waiting_e_type)((udh[pos]>>(0xad3+2992-0x167c)==(0xde9+3393-0x1b2a))?
WMS_GW_MSG_WAITING_DISCARD:WMS_GW_MSG_WAITING_STORE);header_ptr->u.special_sm.
-msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(udh[pos++]&(0xb31+4153-0x1aeb)
+msg_waiting_kind=(wms_gw_msg_waiting_kind_e_type)(udh[pos++]&(0xe65+1822-0x1504)
);header_ptr->u.special_sm.message_count=udh[pos++];return(udh[
-(0x1c9b+1613-0x22e8)]+(0x4c1+3754-0x136a));}static UINT8
+(0xe35+3838-0x1d33)]+(0x18f9+2776-0x23d0));}static UINT8
wms_ts_decode_udh_port_8(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0x19a+898-0x51c);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x830+786-0xb42);}if(udh[
-pos]<(0x18c1+1490-0x1e91)){at_print(LOG_DEBUG,
+(0x60a+6681-0x2023);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x827+7749-0x266c);}if(
+udh[pos]<(0x99+2789-0xb7c)){at_print(LOG_DEBUG,
"\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x6f\x72\x74\x20\x38\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x2e1+6556-0x1c7d);}pos++;header_ptr->header_id=WMS_UDH_PORT_8
-;header_ptr->u.wap_8.dest_port=udh[pos++];header_ptr->u.wap_8.orig_port=udh[pos
-++];return(udh[(0x1790+3309-0x247d)]+(0x19+2788-0xafc));}static UINT8
-wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0x1155+1639-0x17bc);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xb4c+2702-0x15da);}if(
-udh[pos]<(0x167f+1604-0x1cbf)){at_print(LOG_DEBUG,
-"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x6f\x72\x74\x31\x36\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x11e9+2694-0x1c6f);}header_ptr->header_id=WMS_UDH_PORT_16;pos
-++;header_ptr->u.wap_16.dest_port=udh[pos++];header_ptr->u.wap_16.dest_port=(
-UINT16)(header_ptr->u.wap_16.dest_port<<(0x11c3+1-0x11bc))|udh[pos++];header_ptr
-->u.wap_16.orig_port=udh[pos++];header_ptr->u.wap_16.orig_port=(UINT16)(
-header_ptr->u.wap_16.orig_port<<(0xb63+6953-0x2684))|udh[pos++];return(udh[
-(0x1146+915-0x14d9)]+(0xc25+2616-0x165c));}static UINT8
-wms_ts_decode_udh_text_formatting(const UINT8*udh,wms_udh_s_type*header_ptr){
-UINT8 pos=(0x12ba+4485-0x243f);if(udh==NULL||header_ptr==NULL){at_print(
+,udh[pos]);return(0x16c8+2642-0x211a);}pos++;header_ptr->header_id=
+WMS_UDH_PORT_8;header_ptr->u.wap_8.dest_port=udh[pos++];header_ptr->u.wap_8.
+orig_port=udh[pos++];return(udh[(0x15dd+3566-0x23cb)]+(0x3c5+4686-0x1612));}
+static UINT8 wms_ts_decode_udh_port16(const UINT8*udh,wms_udh_s_type*header_ptr)
+{UINT8 pos=(0x9a5+1750-0x107b);if(udh==NULL||header_ptr==NULL){at_print(
LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0xb98+1956-0x133c);}if(udh[pos]<(0xfe4+3924-0x1f35)){at_print(LOG_DEBUG,
+(0x724+127-0x7a3);}if(udh[pos]<(0x153d+1216-0x19f9)){at_print(LOG_DEBUG,
+"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x6f\x72\x74\x31\x36\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
+,udh[pos]);return(0x822+837-0xb67);}header_ptr->header_id=WMS_UDH_PORT_16;pos++;
+header_ptr->u.wap_16.dest_port=udh[pos++];header_ptr->u.wap_16.dest_port=(UINT16
+)(header_ptr->u.wap_16.dest_port<<(0x1433+3838-0x2329))|udh[pos++];header_ptr->u
+.wap_16.orig_port=udh[pos++];header_ptr->u.wap_16.orig_port=(UINT16)(header_ptr
+->u.wap_16.orig_port<<(0x8b2+1231-0xd79))|udh[pos++];return(udh[
+(0x1875+2056-0x207d)]+(0x4c2+3436-0x122d));}static UINT8
+wms_ts_decode_udh_text_formatting(const UINT8*udh,wms_udh_s_type*header_ptr){
+UINT8 pos=(0x749+6386-0x203b);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG
+,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1d6b+1479-0x2332);}if(
+udh[pos]<(0x12a1+1211-0x1759)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x54\x65\x78\x74\x20\x46\x6f\x72\x6d\x61\x74\x74\x69\x6e\x67\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x140f+684-0x16bb);}if(udh[pos]>=(0x17c4+2148-0x2024)){
+,udh[pos]);return(0x1269+1218-0x172b);}if(udh[pos]>=(0xccc+5956-0x240c)){
header_ptr->u.text_formating.is_color_present=TRUE;}else{header_ptr->u.
text_formating.is_color_present=FALSE;}pos++;header_ptr->header_id=
WMS_UDH_TEXT_FORMATING;header_ptr->u.text_formating.start_position=udh[pos++];
header_ptr->u.text_formating.text_formatting_length=udh[pos++];header_ptr->u.
text_formating.alignment_type=(wms_udh_alignment_e_type)(udh[pos]&
-(0x738+4675-0x1978));header_ptr->u.text_formating.font_size=(
-wms_udh_font_size_e_type)((udh[pos]&(0x1033+4186-0x2081))>>(0xa2d+7395-0x270e));
-header_ptr->u.text_formating.style_bold=(udh[pos]&(0x658+6470-0x1f8e))>>
-(0x4b9+8607-0x2654);header_ptr->u.text_formating.style_italic=(udh[pos]&
-(0xbf4+5843-0x22a7))>>(0x1e2a+92-0x1e81);header_ptr->u.text_formating.
-style_underlined=(udh[pos]&(0x1a58+214-0x1aee))>>(0xf8+2125-0x93f);header_ptr->u
-.text_formating.style_strikethrough=(udh[pos]&(0xb44+230-0xbaa))>>
-(0xad7+3193-0x1749);pos++;if(header_ptr->u.text_formating.is_color_present){
+(0xfe2+3811-0x1ec2));header_ptr->u.text_formating.font_size=(
+wms_udh_font_size_e_type)((udh[pos]&(0xa28+2669-0x1489))>>(0x8ea+267-0x9f3));
+header_ptr->u.text_formating.style_bold=(udh[pos]&(0x1506+1388-0x1a62))>>
+(0x669+4526-0x1813);header_ptr->u.text_formating.style_italic=(udh[pos]&
+(0xf44+4670-0x2162))>>(0x1d23+543-0x1f3d);header_ptr->u.text_formating.
+style_underlined=(udh[pos]&(0x1a3+7154-0x1d55))>>(0x70a+5420-0x1c30);header_ptr
+->u.text_formating.style_strikethrough=(udh[pos]&(0xaaf+5886-0x212d))>>
+(0x5e6+2100-0xe13);pos++;if(header_ptr->u.text_formating.is_color_present){
header_ptr->u.text_formating.text_color_foreground=(wms_udh_text_color_e_type)(
-udh[pos]&(0xd2b+2170-0x1596));header_ptr->u.text_formating.text_color_background
-=(wms_udh_text_color_e_type)((udh[pos]&(0x15f6+2236-0x1dc2))>>
-(0x106f+3245-0x1d18));pos++;}return(udh[(0xce4+4677-0x1f29)]+
-(0x1263+1581-0x188f));}static UINT8 wms_ts_decode_udh_pre_def_sound(const UINT8*
-udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x4d3+3892-0x1407);if(udh==NULL||
+udh[pos]&(0x1afa+2611-0x251e));header_ptr->u.text_formating.
+text_color_background=(wms_udh_text_color_e_type)((udh[pos]&(0xc50+3975-0x1ae7))
+>>(0xc6d+1731-0x132c));pos++;}return(udh[(0x20cf+1384-0x2637)]+
+(0x572+4314-0x164b));}static UINT8 wms_ts_decode_udh_pre_def_sound(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x91f+3763-0x17d2);if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xbb6+4983-0x1f2d);}if(
-udh[pos]<(0x1268+1299-0x1779)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x14a1+2194-0x1d33);}if(
+udh[pos]<(0x4fa+6149-0x1cfd)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x72\x65\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x53\x6f\x75\x6e\x64\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x2d0+6193-0x1b01);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x6f0+2896-0x1240);}pos++;header_ptr->header_id=
WMS_UDH_PRE_DEF_SOUND;header_ptr->u.pre_def_sound.position=udh[pos++];header_ptr
-->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0x129+5963-0x1874)]+
-(0xaf4+5552-0x20a3));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
-udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x2+5173-0x1437),j;if(udh==NULL||
+->u.pre_def_sound.snd_number=udh[pos++];return(udh[(0x1621+250-0x171b)]+
+(0x52+5055-0x1410));}static UINT8 wms_ts_decode_udh_user_def_sound(const UINT8*
+udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x1d87+1840-0x24b7),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x169+1959-0x910);}if(udh
-[pos]==(0xa09+3533-0x17d6)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x115f+3858-0x2071);}if(
+udh[pos]==(0xf62+4027-0x1f1d)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x55\x73\x65\x72\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x53\x6f\x75\x6e\x64\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x6e\x6f\x20\x44\x61\x74\x61"
-);return(0x45c+294-0x582);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
-header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x875+6741-0x22c9);
+);return(0x306+5430-0x183c);}header_ptr->header_id=WMS_UDH_USER_DEF_SOUND;
+header_ptr->u.user_def_sound.data_length=udh[pos++]-(0x432+4573-0x160e);
header_ptr->u.user_def_sound.position=udh[pos++];if(header_ptr->u.user_def_sound
.data_length>WMS_UDH_MAX_SND_SIZE){at_print(LOG_DEBUG,
"\x4d\x61\x78\x20\x53\x69\x7a\x65\x20\x45\x78\x63\x65\x65\x64\x20\x48\x65\x61\x64\x65\x72\x20\x69\x64\x20\x25\x64\x20"
-,header_ptr->header_id);return(0x1c19+1742-0x22e7);}memset(header_ptr->u.
-user_def_sound.user_def_sound,(0x2027+1730-0x25ea),WMS_UDH_MAX_SND_SIZE);for(j=
-(0xf0b+2634-0x1955);j<header_ptr->u.user_def_sound.data_length;j++)header_ptr->u
+,header_ptr->header_id);return(0xcd+4727-0x1344);}memset(header_ptr->u.
+user_def_sound.user_def_sound,(0x2012+1604-0x2557),WMS_UDH_MAX_SND_SIZE);for(j=
+(0x1c72+523-0x1e7d);j<header_ptr->u.user_def_sound.data_length;j++)header_ptr->u
.user_def_sound.user_def_sound[j]=udh[pos++];return pos;}static UINT8
wms_ts_decode_udh_pre_def_anim(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x1b36+2375-0x247d);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x105f+5306-0x2519);}if(
-udh[pos]!=(0x127c+4321-0x235b)){at_print(LOG_DEBUG,
+pos=(0x913+454-0xad9);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x14d0+4351-0x25cf);}if(
+udh[pos]!=(0x77f+45-0x7aa)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x50\x72\x65\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x41\x6e\x69\x6d\x61\x74\x69\x6f\x6e\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x11f1+560-0x1421);}pos++;header_ptr->header_id=
+,udh[pos]);return(0x137a+1071-0x17a9);}pos++;header_ptr->header_id=
WMS_UDH_PRE_DEF_ANIM;header_ptr->u.pre_def_anim.position=udh[pos++];header_ptr->
u.pre_def_anim.animation_number=udh[pos++];return pos;}static UINT8
wms_ts_decode_udh_large_anim(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0x166+7953-0x2077),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x731+7341-0x23de);}if(
+pos=(0x1b0d+2003-0x22e0),j,k;if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x8e0+6175-0x20ff);}if(
udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_LARGE_BITMAP_SIZE+
-(0x125f+4698-0x24b8))){at_print(LOG_DEBUG,
+(0x757+7153-0x2347))){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x4c\x61\x72\x67\x65\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x41\x6e\x69\x6d\x61\x74\x69\x6f\x6e\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x150f+4199-0x2576);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
-pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x13d2+3315-0x20c5);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x17ec+784-0x1afc);k<
+,udh[pos]);return(0xaa0+2145-0x1301);}header_ptr->header_id=WMS_UDH_LARGE_ANIM;
+pos++;header_ptr->u.large_anim.position=udh[pos++];for(j=(0x1af6+2618-0x2530);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x94a+3586-0x174c);k<
WMS_UDH_LARGE_BITMAP_SIZE;k++)header_ptr->u.large_anim.data[j][k]=udh[pos++];
return pos;}static UINT8 wms_ts_decode_udh_small_anim(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0xff3+2823-0x1afa),j,k;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0xc55+710-0xf1b),j,k;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x3e0+921-0x779);}if(udh[
-pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+(0x1d0f+985-0x20e7))){
-at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xfcd+1448-0x1575);}if(
+udh[pos]!=(WMS_UDH_ANIM_NUM_BITMAPS*WMS_UDH_SMALL_BITMAP_SIZE+
+(0x197a+2329-0x2292))){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x4c\x61\x72\x67\x65\x20\x44\x65\x66\x69\x6e\x65\x64\x20\x41\x6e\x69\x6d\x61\x74\x69\x6f\x6e\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x72f+2465-0x10d0);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
-pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x1231+4861-0x252e);j<
-WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x13c4+1888-0x1b24);k<
+,udh[pos]);return(0x6e2+2663-0x1149);}header_ptr->header_id=WMS_UDH_SMALL_ANIM;
+pos++;header_ptr->u.small_anim.position=udh[pos++];for(j=(0x121+2129-0x972);j<
+WMS_UDH_ANIM_NUM_BITMAPS;j++)for(k=(0x1276+3546-0x2050);k<
WMS_UDH_SMALL_BITMAP_SIZE;k++)header_ptr->u.small_anim.data[j][k]=udh[pos++];
return pos;}static UINT8 wms_ts_decode_udh_large_picture(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0x13a7+1392-0x1917),j;if(udh==NULL||
+wms_udh_s_type*header_ptr){UINT8 pos=(0x1185+3194-0x1dff),j;if(udh==NULL||
header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xcb7+1831-0x13de);}if(
-udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x122c+1290-0x1735)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x8d0+7662-0x26be);}if(
+udh[pos]!=WMS_UDH_LARGE_PIC_SIZE+(0x86b+1731-0xf2d)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x4c\x61\x72\x67\x65\x20\x50\x69\x63\x74\x75\x72\x65\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x1151+4818-0x2423);}header_ptr->header_id=
+,udh[pos]);return(0x1ef6+1401-0x246f);}header_ptr->header_id=
WMS_UDH_LARGE_PICTURE;pos++;header_ptr->u.large_picture.position=udh[pos++];for(
-j=(0x17f+1071-0x5ae);j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.
+j=(0xa5d+3884-0x1989);j<WMS_UDH_LARGE_PIC_SIZE;j++)header_ptr->u.large_picture.
data[j]=udh[pos++];return pos;}static UINT8 wms_ts_decode_udh_small_picture(
-const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x708+4969-0x1a71),j;if(
+const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xffc+1816-0x1714),j;if(
udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x16ea+725-0x19bf);}if(
-udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x8b3+4253-0x194f)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x2cd+4774-0x1573);}if(
+udh[pos]!=WMS_UDH_SMALL_PIC_SIZE+(0x17c1+1513-0x1da9)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x53\x6d\x61\x6c\x6c\x20\x50\x69\x63\x74\x75\x72\x65\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x67\x6e\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0xc5+9663-0x2684);}header_ptr->header_id=WMS_UDH_SMALL_PICTURE
-;pos++;header_ptr->u.small_picture.position=udh[pos++];for(j=
-(0x16f8+2273-0x1fd9);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
+,udh[pos]);return(0x534+3559-0x131b);}header_ptr->header_id=
+WMS_UDH_SMALL_PICTURE;pos++;header_ptr->u.small_picture.position=udh[pos++];for(
+j=(0x1405+388-0x1589);j<WMS_UDH_SMALL_PIC_SIZE;j++)header_ptr->u.small_picture.
data[j]=udh[pos++];return pos;}static UINT8 wms_ts_decode_udh_var_picture(const
-UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x6d0+3554-0x14b2),j,pic_size;if
+UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0xb04+5098-0x1eee),j,pic_size;if
(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0xb4f+2144-0x13af);}if(
-udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0x1880+2504-0x2245)){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x35d+5991-0x1ac4);}if(
+udh[pos]>WMS_UDH_VAR_PIC_SIZE+(0xb4c+5495-0x20c0)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x56\x61\x72\x20\x50\x69\x63\x74\x75\x72\x65\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x1cc0+2388-0x2614);}if((udh[pos]-(0x4b1+3381-0x11e3))!=(udh[
-pos+(0x1157+1259-0x1640)]*udh[pos+(0x2172+1076-0x25a3)])){at_print(LOG_DEBUG,
+,udh[pos]);return(0x9bf+5301-0x1e74);}if((udh[pos]-(0x9f+6040-0x1834))!=(udh[pos
++(0x58+228-0x13a)]*udh[pos+(0x90+2684-0xb09)])){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x56\x61\x72\x20\x50\x69\x63\x74\x75\x72\x65\x2c\x20\x70\x69\x63\x20\x73\x69\x7a\x65\x20\x76\x61\x6c\x75\x65\x20\x6d\x69\x73\x6d\x61\x74\x63\x68\x20\x77\x69\x74\x68\x20\x68\x65\x69\x67\x74\x20\x61\x6e\x64\x20\x77\x65\x69\x67\x68\x74"
-);return(0x4ab+5664-0x1acb);}pic_size=udh[pos++]-(0xc1a+2293-0x150c);header_ptr
+);return(0x6a5+4407-0x17dc);}pic_size=udh[pos++]-(0x17ff+2015-0x1fdb);header_ptr
->header_id=WMS_UDH_VAR_PICTURE;header_ptr->u.var_picture.position=udh[pos++];
-header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0x446+953-0x7f7));header_ptr
-->u.var_picture.height=udh[pos++];for(j=(0x5bc+7042-0x213e);j<pic_size&&j<
-WMS_UDH_VAR_PIC_SIZE;j++)header_ptr->u.var_picture.data[j]=udh[pos++];return pos
-;}static UINT8 wms_ts_decode_udh_user_prompt(const UINT8*udh,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x445+519-0x64c);if(udh==NULL||header_ptr==NULL){at_print
-(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0xa2c+2982-0x15d2);}if(udh[pos]<(0x10df+3557-0x1ec3)){at_print(LOG_DEBUG,
+header_ptr->u.var_picture.width=(UINT8)(udh[pos++]*(0xeb5+5823-0x256c));
+header_ptr->u.var_picture.height=udh[pos++];for(j=(0xefc+4148-0x1f30);j<pic_size
+&&j<WMS_UDH_VAR_PIC_SIZE;j++)header_ptr->u.var_picture.data[j]=udh[pos++];return
+ pos;}static UINT8 wms_ts_decode_udh_user_prompt(const UINT8*udh,wms_udh_s_type*
+header_ptr){UINT8 pos=(0x62+4360-0x116a);if(udh==NULL||header_ptr==NULL){
+at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
+(0x675+1297-0xb86);}if(udh[pos]<(0x72a+4776-0x19d1)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x55\x73\x65\x72\x20\x50\x72\x6f\x6d\x70\x74\x20\x70\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x991+7006-0x24ef);}pos++;header_ptr->header_id=
+,udh[pos]);return(0xda6+4476-0x1f22);}pos++;header_ptr->header_id=
WMS_UDH_USER_PROMPT;header_ptr->u.user_prompt.number_of_objects=udh[pos++];
-return(udh[(0xee3+365-0x1050)]+(0x1183+4317-0x225f));}static UINT8
+return(udh[(0xbdb+3174-0x1841)]+(0x734+4389-0x1858));}static UINT8
wms_ts_decode_udh_eo(const UINT8*udh,UINT8 first_segment,wms_udh_s_type*
-header_ptr){UINT8 pos=(0x995+2504-0x135d),udh_length;if(udh==NULL||header_ptr==
+header_ptr){UINT8 pos=(0x1324+4391-0x244b),udh_length;if(udh==NULL||header_ptr==
NULL){at_print(LOG_DEBUG,"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return
-(0x470+6711-0x1ea7);}if(udh[pos]==(0x625+8258-0x2667)){at_print(LOG_DEBUG,
+(0x10b9+3096-0x1cd1);}if(udh[pos]==(0x1fe9+224-0x20c9)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x45\x78\x74\x65\x6e\x64\x65\x64\x20\x4f\x62\x6a\x65\x63\x74\x20\x70\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x6e\x6f\x20\x44\x61\x74\x61"
-);return(0x1e58+1738-0x2522);}udh_length=udh[pos++];header_ptr->header_id=
+);return(0x381+4135-0x13a8);}udh_length=udh[pos++];header_ptr->header_id=
WMS_UDH_EXTENDED_OBJECT;header_ptr->u.eo.first_segment=first_segment;if(
first_segment==TRUE){if(udh_length<WMS_UDH_OCTETS_EO_HEADER){return
-(0x1307+861-0x1664);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
-length=udh[pos++]<<(0x928+1208-0xdd8);header_ptr->u.eo.length|=udh[pos++];
+(0x16c8+2719-0x2167);}header_ptr->u.eo.reference=udh[pos++];header_ptr->u.eo.
+length=udh[pos++]<<(0x13df+2410-0x1d41);header_ptr->u.eo.length|=udh[pos++];
header_ptr->u.eo.control=udh[pos++];header_ptr->u.eo.type=(wms_udh_eo_id_e_type)
-udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0x76c+6379-0x204f);header_ptr
-->u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
-(0x1782+788-0x1a95);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.
+udh[pos++];header_ptr->u.eo.position=udh[pos++]<<(0x116+1337-0x647);header_ptr->
+u.eo.position|=udh[pos++];}header_ptr->u.eo.content.length=(udh_length-pos)+
+(0x139b+2834-0x1eac);memcpy(header_ptr->u.eo.content.data,udh+pos,header_ptr->u.
eo.content.length);pos+=header_ptr->u.eo.content.length;return pos;}static UINT8
wms_ts_decode_udh_rfc822(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=
-(0xb18+212-0xbec);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x15b+5175-0x1592);}if(
-udh[pos]<(0xc0a+6748-0x2665)){at_print(LOG_DEBUG,
+(0x153c+4433-0x268d);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x529+6222-0x1d77);}if(
+udh[pos]<(0x700+5162-0x1b29)){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x52\x66\x63\x38\x32\x32\x20\x50\x72\x65\x73\x65\x6e\x74\x20\x77\x69\x74\x68\x20\x69\x6e\x76\x61\x6c\x69\x64\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3d\x20\x25\x64"
-,udh[pos]);return(0x1219+2594-0x1c3b);}pos++;header_ptr->header_id=
-WMS_UDH_RFC822;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[
-(0x655+3732-0x14e9)]+(0x5d1+1617-0xc21));}static UINT8
-wms_ts_decode_udh_nat_lang_ss(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
-pos=(0xd69+2197-0x15fe);if(udh==NULL||header_ptr==NULL){return
-(0x59b+7155-0x218e);}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_SS){return
-(0x42d+1066-0x857);}pos++;header_ptr->header_id=WMS_UDH_NAT_LANG_SS;if((
+,udh[pos]);return(0x713+7995-0x264e);}pos++;header_ptr->header_id=WMS_UDH_RFC822
+;header_ptr->u.rfc822.header_length=udh[pos++];return(udh[(0x8a2+172-0x94e)]+
+(0x655+3540-0x1428));}static UINT8 wms_ts_decode_udh_nat_lang_ss(const UINT8*udh
+,wms_udh_s_type*header_ptr){UINT8 pos=(0x1411+1323-0x193c);if(udh==NULL||
+header_ptr==NULL){return(0x848+7573-0x25dd);}if(udh[pos]!=
+WMS_UDH_OCTETS_NAT_LANG_SS){return(0x9ac+4545-0x1b6d);}pos++;header_ptr->
+header_id=WMS_UDH_NAT_LANG_SS;if((WMS_UDH_NAT_LANG_TURKISH>udh[pos])||(
+WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0x1463+1178-0x18fd);}header_ptr->u
+.nat_lang_ss.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
+(0x1136+1605-0x177b)]+(0x24cf+300-0x25fa));}static UINT8
+wms_ts_decode_udh_nat_lang_ls(const UINT8*udh,wms_udh_s_type*header_ptr){UINT8
+pos=(0x70a+5992-0x1e72);if(udh==NULL||header_ptr==NULL){return
+(0x14b4+2573-0x1ec1);}if(udh[pos]!=WMS_UDH_OCTETS_NAT_LANG_LS){return
+(0xe9b+433-0x104c);}pos++;header_ptr->header_id=WMS_UDH_NAT_LANG_LS;if((
WMS_UDH_NAT_LANG_TURKISH>udh[pos])||(WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){
-return(0x701+1232-0xbd1);}header_ptr->u.nat_lang_ss.nat_lang_id=(
-wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[(0x1ae1+777-0x1dea)]+
-(0x57c+1326-0xaa9));}static UINT8 wms_ts_decode_udh_nat_lang_ls(const UINT8*udh,
-wms_udh_s_type*header_ptr){UINT8 pos=(0xba6+4651-0x1dd1);if(udh==NULL||
-header_ptr==NULL){return(0x966+4038-0x192c);}if(udh[pos]!=
-WMS_UDH_OCTETS_NAT_LANG_LS){return(0x705+6941-0x2222);}pos++;header_ptr->
-header_id=WMS_UDH_NAT_LANG_LS;if((WMS_UDH_NAT_LANG_TURKISH>udh[pos])||(
-WMS_UDH_NAT_LANG_PORTUGUESE<udh[pos])){return(0xaaa+1775-0x1199);}header_ptr->u.
-nat_lang_ls.nat_lang_id=(wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[
-(0x9d9+6110-0x21b7)]+(0xe0+7154-0x1cd1));}static UINT8 wms_ts_decode_udh_other(
-const UINT8*udh,wms_udh_s_type*header_ptr){UINT8 pos=(0x368+3143-0xfaf),i=
-(0xd1f+4519-0x1ec6);if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
-"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x1693+729-0x196c);}if(
-udh[pos+(0xb8+4523-0x1262)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
+return(0x53b+6514-0x1ead);}header_ptr->u.nat_lang_ls.nat_lang_id=(
+wms_udh_nat_lang_id_e_type)udh[pos++];return(udh[(0x7a5+4875-0x1ab0)]+
+(0x11a1+4800-0x2460));}static UINT8 wms_ts_decode_udh_other(const UINT8*udh,
+wms_udh_s_type*header_ptr){UINT8 pos=(0xb5c+2816-0x165c),i=(0xf10+2733-0x19bd);
+if(udh==NULL||header_ptr==NULL){at_print(LOG_DEBUG,
+"\x75\x64\x68\x20\x69\x73\x20\x4e\x55\x4c\x4c");return(0x2a1+9118-0x263f);}if(
+udh[pos+(0x675+4954-0x19ce)]>WMS_UDH_OTHER_SIZE){at_print(LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x48\x65\x61\x64\x65\x72\x20\x4f\x74\x68\x65\x72\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x65\x78\x63\x65\x65\x64\x69\x6e\x67\x20\x32\x32\x36"
-);return(0xd44+3932-0x1ca0);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
+);return(0xa9+2155-0x914);}header_ptr->header_id=(wms_udh_id_e_type)udh[pos];
header_ptr->u.other.header_id=(wms_udh_id_e_type)udh[pos++];header_ptr->u.other.
-header_length=udh[pos++];for(i=(0x14a9+731-0x1784);i<header_ptr->u.other.
+header_length=udh[pos++];for(i=(0x7b7+6818-0x2259);i<header_ptr->u.other.
header_length;i++){header_ptr->u.other.data[i]=udh[pos++];}return pos;}UINT8
wms_ts_decode_user_data_header(const UINT8 len,const UINT8*data,UINT8*
-num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0x373+1314-0x895);UINT8
-header_length=(0x2dc+2991-0xe8b),num_headers=(0x14b3+4004-0x2457);UINT8 udhl;
-UINT8 first_segment=TRUE;if(data==NULL||len==(0x9bc+7160-0x25b4)||data[pos]==
-(0x234f+305-0x2480)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
+num_headers_ptr,wms_udh_s_type*udh_ptr){UINT8 pos=(0xea1+3673-0x1cfa);UINT8
+header_length=(0x16fa+1392-0x1c6a),num_headers=(0x5df+3494-0x1385);UINT8 udhl;
+UINT8 first_segment=TRUE;if(data==NULL||len==(0x613+4360-0x171b)||data[pos]==
+(0x5+5916-0x1721)||num_headers_ptr==NULL||udh_ptr==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x75\x73\x65\x72\x5f\x64\x61\x74\x61\x5f\x68\x65\x61\x64\x65\x72"
-);return(0x667+6813-0x2104);}udhl=data[pos];pos++;while((pos<udhl)&&(num_headers
+);return(0x8ef+5906-0x2001);}udhl=data[pos];pos++;while((pos<udhl)&&(num_headers
<WMS_MAX_UD_HEADERS)){switch(data[pos++]){case WMS_UDH_CONCAT_8:header_length=
wms_ts_decode_udh_concat_8(data+pos,&udh_ptr[num_headers]);break;case
WMS_UDH_CONCAT_16:header_length=wms_ts_decode_udh_concat16(data+pos,&udh_ptr[
@@ -1866,66 +1870,66 @@
data+pos,&udh_ptr[num_headers]);break;}if((UINT16)pos+(UINT16)header_length>
WMS_MAX_LEN){at_print(LOG_DEBUG,
"\x6e\x75\x6d\x62\x65\x72\x20\x6f\x66\x20\x62\x79\x74\x65\x73\x20\x64\x65\x63\x6f\x64\x65\x64\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x55\x44\x48\x4c\x20\x76\x61\x6c\x75\x65\x20\x6f\x66\x20\x25\x64"
-,udhl);return(0x26a8+41-0x26d1);}else if(header_length!=(0x16fa+1856-0x1e3a)){
+,udhl);return(0x86d+2916-0x13d1);}else if(header_length!=(0x407+6886-0x1eed)){
pos+=header_length;num_headers++;}else{at_print(LOG_DEBUG,
"\x42\x61\x64\x20\x55\x44\x48\x3a\x20\x70\x6f\x73\x3d\x25\x64\x2c\x20\x64\x61\x74\x61\x5b\x70\x6f\x73\x5d\x3d\x25\x64"
-,pos,data[pos]);*num_headers_ptr=(0x1d91+868-0x20f5);return(0x8f7+5645-0x1f04);}
-}if(num_headers>=WMS_MAX_UD_HEADERS){at_print(LOG_DEBUG,
+,pos,data[pos]);*num_headers_ptr=(0xf1+5369-0x15ea);return(0x1f78+540-0x2194);}}
+if(num_headers>=WMS_MAX_UD_HEADERS){at_print(LOG_DEBUG,
"\x64\x65\x63\x6f\x64\x65\x5f\x75\x64\x68\x3a\x20\x4e\x75\x6d\x20\x48\x65\x61\x64\x65\x72\x73\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x57\x4d\x53\x5f\x4d\x41\x58\x5f\x55\x44\x5f\x48\x45\x41\x44\x45\x52\x53"
-);pos=udhl+(0x727+4626-0x1938);}if(pos!=(udhl+(0x1347+1309-0x1863))){at_print(
+);pos=udhl+(0xb39+1095-0xf7f);}if(pos!=(udhl+(0x322+3297-0x1002))){at_print(
LOG_DEBUG,
"\x53\x4d\x53\x20\x55\x44\x48\x20\x63\x6f\x75\x6c\x64\x20\x6e\x6f\x74\x20\x62\x65\x20\x64\x65\x63\x6f\x64\x65\x64"
-);num_headers=(0xbab+491-0xd96);udhl=(0x16d8+1335-0x1c0f);}if(num_headers>
-(0x1701+420-0x18a5)){*num_headers_ptr=num_headers;}return udhl;}UINT8
+);num_headers=(0x2076+624-0x22e6);udhl=(0x943+2827-0x144e);}if(num_headers>
+(0x959+3306-0x1643)){*num_headers_ptr=num_headers;}return udhl;}UINT8
wms_ts_decode_gw_user_data(const wms_gw_dcs_s_type*dcs,const UINT8 len,const
UINT8*data,const UINT8 user_data_header_present,wms_gw_user_data_s_type*
-user_data){UINT8 i,pos=(0x1674+422-0x181a);UINT8 fill_bits=(0x799+7936-0x2699);
-UINT8 user_data_length;UINT8 user_data_header_length=(0x8b5+5101-0x1ca2);if(dcs
+user_data){UINT8 i,pos=(0x1a25+1021-0x1e22);UINT8 fill_bits=(0x1c+9965-0x2709);
+UINT8 user_data_length;UINT8 user_data_header_length=(0xf33+4227-0x1fb6);if(dcs
==NULL||data==NULL||user_data==NULL){at_print(LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x67\x77\x5f\x75\x73\x65\x72\x5f\x64\x61\x74\x61"
-);return(0x1fec+1505-0x25cd);}(void)memset(user_data,(0xee9+2337-0x180a),sizeof(
-wms_gw_user_data_s_type));if(len==(0xf16+1005-0x1303)){return(0xc11+5164-0x203d)
-;}if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>WMS_SMS_UDL_MAX_7_BIT)
-{at_print(LOG_DEBUG,
+);return(0x212+6111-0x19f1);}(void)memset(user_data,(0x13b5+2481-0x1d66),sizeof(
+wms_gw_user_data_s_type));if(len==(0x62+1075-0x495)){return(0x1890+236-0x197c);}
+if(dcs->alphabet==WMS_GW_ALPHABET_7_BIT_DEFAULT){if(len>WMS_SMS_UDL_MAX_7_BIT){
+at_print(LOG_DEBUG,
"\x75\x73\x65\x72\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3e\x20\x6d\x61\x78\x20\x76\x61\x6c\x75\x65\x20\x66\x6f\x72\x20\x67\x77\x20\x37\x2d\x62\x69\x74\x20\x61\x6c\x70\x68\x61\x62\x65\x74"
-);return(0x210+3879-0x1137);}user_data_length=len;if(user_data_header_present){
+);return(0xf90+5786-0x262a);}user_data_length=len;if(user_data_header_present){
user_data_header_length=wms_ts_decode_user_data_header(data[pos],data+pos,&
user_data->num_headers,user_data->headers);}if(user_data_header_length>len){
at_print(LOG_DEBUG,
"\x75\x73\x65\x72\x20\x64\x61\x74\x61\x20\x68\x65\x61\x64\x65\x72\x20\x6c\x65\x6e\x67\x74\x68\x20\x3e\x20\x74\x6f\x74\x61\x6c\x20\x6c\x65\x6e\x67\x74\x68"
-);return(0x330+2467-0xcd3);}if(user_data_header_length>(0x1533+366-0x16a1)){
-fill_bits=((len*(0x66b+450-0x826))-((user_data_header_length+(0x993+4629-0x1ba7)
-)*(0x50+6720-0x1a88)))%(0x1163+2557-0x1b59);user_data_length=(UINT8)(((len*
-(0xb9+8458-0x21bc))-((user_data_header_length+(0x53c+1637-0xba0))*
-(0x80a+3710-0x1680)))/(0x112a+1749-0x17f8));pos=user_data_header_length+
-(0x1561+57-0x1599);if(fill_bits!=(0x59d+4621-0x17aa)){fill_bits=
-(0x1640+1819-0x1d53)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[pos],
+);return(0x2199+156-0x2235);}if(user_data_header_length>(0x2120+1352-0x2668)){
+fill_bits=((len*(0x2447+362-0x25aa))-((user_data_header_length+
+(0x8fa+3222-0x158f))*(0x238a+787-0x2695)))%(0x80a+858-0xb5d);user_data_length=(
+UINT8)(((len*(0x71+7882-0x1f34))-((user_data_header_length+(0x14a1+2325-0x1db5))
+*(0x229c+629-0x2509)))/(0x1398+2503-0x1d58));pos=user_data_header_length+
+(0x2a8+5396-0x17bb);if(fill_bits!=(0x1c57+2317-0x2564)){fill_bits=
+(0xba3+2524-0x1577)-fill_bits;}}i=wms_ts_unpack_gw_7_bit_chars(&data[pos],
user_data_length,WMS_MAX_LEN,fill_bits,user_data->sm_data);user_data->sm_len=
user_data_length;}else{if(len>WMS_SMS_UDL_MAX_8_BIT){at_print(LOG_DEBUG,
"\x75\x73\x65\x72\x20\x64\x61\x74\x61\x20\x6c\x65\x6e\x67\x74\x68\x20\x3e\x20\x6d\x61\x78\x20\x76\x61\x6c\x75\x65\x20\x66\x6f\x72\x20\x38\x2d\x62\x69\x74\x20\x63\x68\x61\x72\x61\x72\x61\x63\x74\x65\x72\x73"
-);return(0xe40+759-0x1137);}user_data_length=len;if(user_data_header_present){
+);return(0x2bf+4375-0x13d6);}user_data_length=len;if(user_data_header_present){
user_data_header_length=wms_ts_decode_user_data_header(data[pos],data+pos,&
user_data->num_headers,user_data->headers);if(user_data_header_length>len){
at_print(LOG_DEBUG,
"\x75\x73\x65\x72\x20\x64\x61\x74\x61\x20\x68\x65\x61\x64\x65\x72\x20\x6c\x65\x6e\x67\x74\x68\x20\x3e\x20\x74\x6f\x74\x61\x6c\x20\x6c\x65\x6e\x67\x74\x68"
-);return(0xac+3471-0xe3b);}pos+=user_data_header_length+(0xa8d+5965-0x21d9);
-user_data_length=(len-user_data_header_length)-(0x169f+192-0x175e);}memcpy(
+);return(0x14cd+1744-0x1b9d);}pos+=user_data_header_length+(0xebf+1177-0x1357);
+user_data_length=(len-user_data_header_length)-(0x1219+3637-0x204d);}memcpy(
user_data->sm_data,data+pos,user_data_length);user_data->sm_len=user_data_length
;i=(UINT8)user_data->sm_len;}pos+=i;return pos;}wms_status_e_type
wms_ts_decode_deliver(const T_zUfiSms_RawTsData*ptRawTsData,
wms_gw_deliver_s_type*deliver){wms_status_e_type st=WMS_OK_S;uint32 pos=
-(0xcf+6354-0x19a1),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
+(0x655+3626-0x147f),i;const UINT8*data=ptRawTsData->data;if(ptRawTsData==NULL||
deliver==NULL){printf(
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72"
-);return WMS_NULL_PTR_S;}else if((data[pos]&(0x101a+1742-0x16e5))!=
-(0xca4+6577-0x2655)){printf(
+);return WMS_NULL_PTR_S;}else if((data[pos]&(0x1acd+532-0x1cde))!=
+(0x863+587-0xaae)){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x74\x70\x64\x75\x20\x74\x79\x70\x65\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72"
);return WMS_INVALID_TPDU_TYPE_S;}else{deliver->more=(data[pos]&
-(0x4d4+7388-0x21ac))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
-(0x94+5930-0x179e))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
-(0x11d1+4155-0x21cc))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
-(0xfe0+1784-0x1658))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
-deliver->address);if(i==(0xad6+5581-0x20a3)){printf(
+(0xd1+7440-0x1ddd))?FALSE:TRUE;deliver->status_report_enabled=(data[pos]&
+(0x711+5407-0x1c10))?TRUE:FALSE;deliver->user_data_header_present=(data[pos]&
+(0x624+7703-0x23fb))?TRUE:FALSE;deliver->reply_path_present=(data[pos]&
+(0x8a5+5638-0x1e2b))?TRUE:FALSE;pos++;i=wms_ts_decode_address(&data[pos],&
+deliver->address);if(i==(0xcbc+1089-0x10fd)){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x70\x61\x72\x61\x6d\x20\x73\x69\x7a\x65\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72"
);return WMS_INVALID_PARM_SIZE_S;}pos+=i;deliver->pid=(wms_pid_e_type)data[pos];
pos++;pos+=wms_ts_decode_dcs(data+pos,&deliver->dcs);if(deliver->dcs.
@@ -1933,75 +1937,74 @@
WMS_PID_RETURN_CALL){deliver->dcs.msg_waiting=WMS_GW_MSG_WAITING_STORE;deliver->
dcs.msg_waiting_active=TRUE;deliver->dcs.msg_waiting_kind=
WMS_GW_MSG_WAITING_VOICEMAIL;}}i=wms_ts_decode_timestamp(data+pos,&deliver->
-timestamp);if(i==(0x238+2243-0xafb)){printf(
+timestamp);if(i==(0x1971+2709-0x2406)){printf(
"\x69\x6e\x76\x61\x6c\x69\x64\x20\x70\x61\x72\x61\x6d\x20\x76\x61\x6c\x75\x65\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x64\x65\x6c\x69\x76\x65\x72"
);return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=wms_ts_decode_gw_user_data(&
-deliver->dcs,data[pos-(0x180c+132-0x188f)],data+pos,deliver->
+deliver->dcs,data[pos-(0x1527+4514-0x26c8)],data+pos,deliver->
user_data_header_present,&deliver->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT){printf
(
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79\x3a\x20\x55\x44\x4c\x20\x3d\x20\x25\x6c\x75"
,i);st=WMS_INVALID_USER_DATA_SIZE_S;}pos+=i;return st;}}UINT8
wms_ts_decode_gw_validity(const UINT8*data,wms_gw_validity_s_type*validity){
-UINT8 i,pos=(0x17b8+1795-0x1ebb);if(data==NULL||validity==NULL){at_print(
+UINT8 i,pos=(0x15b1+2300-0x1ead);if(data==NULL||validity==NULL){at_print(
LOG_DEBUG,
"\x6e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x67\x77\x5f\x76\x61\x6c\x69\x64\x69\x74\x79"
-);return(0x124c+5174-0x2682);}else{switch(validity->format){case
-WMS_GW_VALIDITY_NONE:memset(validity,(0xea9+3733-0x1d3e),sizeof(
+);return(0xe08+3374-0x1b36);}else{switch(validity->format){case
+WMS_GW_VALIDITY_NONE:memset(validity,(0x9e8+5873-0x20d9),sizeof(
wms_gw_validity_s_type));break;case WMS_GW_VALIDITY_RELATIVE:
zUfiSms_DecodeRelativeTime(data[pos],&validity->u.time);pos++;break;case
WMS_GW_VALIDITY_ABSOLUTE:i=wms_ts_decode_timestamp(data+pos,&validity->u.time);
pos+=i;break;case WMS_GW_VALIDITY_ENHANCED:break;default:break;}return pos;}}
wms_status_e_type wms_ts_decode_submit(const T_zUfiSms_RawTsData*ptRawTsData,
wms_gw_submit_s_type*submit){wms_status_e_type st=WMS_OK_S;uint32 pos=
-(0x106c+3972-0x1ff0),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){
+(0x1265+4244-0x22f9),i;const UINT8*data;if(ptRawTsData==NULL||submit==NULL){
printf(
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x73\x75\x62\x6d\x69\x74\x21"
);return WMS_NULL_PTR_S;}data=ptRawTsData->data;submit->reject_duplicates=(data[
-pos]&(0x1cd9+1266-0x21c7))?TRUE:FALSE;submit->validity.format=(
-wms_gw_validity_format_e_type)((data[pos]&(0x960+7019-0x24b3))>>
-(0x174+8121-0x212a));submit->status_report_enabled=(data[pos]&
-(0x6c0+5043-0x1a53))?TRUE:FALSE;submit->user_data_header_present=(data[pos]&
-(0x1bcd+1146-0x2007))?TRUE:FALSE;submit->reply_path_present=(data[pos]&
-(0xb9a+5901-0x2227))?TRUE:FALSE;pos++;submit->message_reference=data[pos];pos++;
-i=wms_ts_decode_address(&data[pos],&submit->address);if(i==(0x665+582-0x8ab)){
-return WMS_INVALID_PARM_SIZE_S;}pos+=i;submit->pid=(wms_pid_e_type)data[pos];pos
-++;pos+=wms_ts_decode_dcs(data+pos,&submit->dcs);i=wms_ts_decode_gw_validity(
-data+pos,&submit->validity);if((submit->validity.format!=WMS_GW_VALIDITY_NONE)&&
-(i==(0xb6f+259-0xc72))){return WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=
-wms_ts_decode_gw_user_data(&submit->dcs,data[pos-(0xc85+6487-0x25db)],data+pos,
-submit->user_data_header_present,&submit->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT)
-{printf(
+pos]&(0xa65+5000-0x1de9))?TRUE:FALSE;submit->validity.format=(
+wms_gw_validity_format_e_type)((data[pos]&(0x945+857-0xc86))>>(0x21c+2270-0xaf7)
+);submit->status_report_enabled=(data[pos]&(0x1b14+1686-0x218a))?TRUE:FALSE;
+submit->user_data_header_present=(data[pos]&(0x2bb+1896-0x9e3))?TRUE:FALSE;
+submit->reply_path_present=(data[pos]&(0x9c1+5942-0x2077))?TRUE:FALSE;pos++;
+submit->message_reference=data[pos];pos++;i=wms_ts_decode_address(&data[pos],&
+submit->address);if(i==(0xa2f+5437-0x1f6c)){return WMS_INVALID_PARM_SIZE_S;}pos
++=i;submit->pid=(wms_pid_e_type)data[pos];pos++;pos+=wms_ts_decode_dcs(data+pos,
+&submit->dcs);i=wms_ts_decode_gw_validity(data+pos,&submit->validity);if((submit
+->validity.format!=WMS_GW_VALIDITY_NONE)&&(i==(0xc+3070-0xc0a))){return
+WMS_INVALID_PARM_VALUE_S;}pos+=i;pos++;i=wms_ts_decode_gw_user_data(&submit->dcs
+,data[pos-(0x10ef+5389-0x25fb)],data+pos,submit->user_data_header_present,&
+submit->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT){printf(
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79\x3a\x20\x55\x44\x4c\x20\x3d\x20\x25\x6c\x75"
,i);st=WMS_INVALID_USER_DATA_SIZE_S;}pos+=i;return st;}wms_status_e_type
wms_ts_decode_status_report(const T_zUfiSms_RawTsData*ptRawTsData,
wms_gw_status_report_s_type*status_report){wms_status_e_type st=WMS_OK_S;uint32
-pos=(0x1961+1649-0x1fd2),i;const UINT8*data;if(ptRawTsData==NULL||status_report
+pos=(0x114a+2811-0x1c45),i;const UINT8*data;if(ptRawTsData==NULL||status_report
==NULL){printf(
"\x4e\x75\x6c\x6c\x20\x70\x6f\x69\x6e\x74\x65\x72\x20\x69\x6e\x20\x77\x6d\x73\x5f\x74\x73\x5f\x64\x65\x63\x6f\x64\x65\x5f\x73\x74\x61\x74\x75\x73\x5f\x72\x65\x70\x6f\x72\x74\x21"
);return WMS_NULL_PTR_S;}data=ptRawTsData->data;status_report->more=data[pos]&
-(0xf21+2565-0x1922)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
-(0x441+6595-0x1de4)?TRUE:FALSE;status_report->user_data_header_present=(data[pos
-]&(0xfc6+5195-0x23d1))?TRUE:FALSE;pos++;status_report->message_reference=data[
+(0xa35+6628-0x2415)?FALSE:TRUE;status_report->status_report_qualifier=data[pos]&
+(0xe6d+3872-0x1d6d)?TRUE:FALSE;status_report->user_data_header_present=(data[pos
+]&(0x4f6+8427-0x25a1))?TRUE:FALSE;pos++;status_report->message_reference=data[
pos];pos++;i=wms_ts_decode_address(&data[pos],&status_report->address);if(i==
-(0x1cbd+2165-0x2532)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
+(0x1018+2908-0x1b74)){return WMS_INVALID_PARM_SIZE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->timestamp);if(i==
-(0x216+7281-0x1e87)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
+(0x5d4+2212-0xe78)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;i=
wms_ts_decode_timestamp(data+pos,&status_report->discharge_time);if(i==
-(0x17b5+111-0x1824)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
+(0x1afc+1666-0x217e)){return WMS_INVALID_PARM_VALUE_S;}pos+=i;status_report->
tp_status=(wms_tp_status_e_type)data[pos];pos++;status_report->mask=data[pos];
-status_report->pid=(wms_pid_e_type)(0x539+602-0x793);status_report->user_data.
-sm_len=(0x58d+5558-0x1b43);status_report->mask&=(0x28b+4664-0x13c4);if((
-status_report->mask!=(0x5c4+5410-0x19e7))&&(status_report->mask!=
-(0x1395+1436-0x1931))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
+status_report->pid=(wms_pid_e_type)(0x158+6267-0x19d3);status_report->user_data.
+sm_len=(0x17d4+2919-0x233b);status_report->mask&=(0x1c99+1910-0x2310);if((
+status_report->mask!=(0xb04+7032-0x257d))&&(status_report->mask!=
+(0x9f+6465-0x19e0))){pos++;if(status_report->mask&WMS_TPDU_MASK_PID){
status_report->pid=(wms_pid_e_type)data[pos];pos++;}if(status_report->mask&
WMS_TPDU_MASK_DCS){pos+=wms_ts_decode_dcs(data+pos,&status_report->dcs);}if(
status_report->mask&WMS_TPDU_MASK_USER_DATA){pos++;i=wms_ts_decode_gw_user_data(
-&status_report->dcs,data[pos-(0x2421+481-0x2601)],data+pos,status_report->
+&status_report->dcs,data[pos-(0xf42+3118-0x1b6f)],data+pos,status_report->
user_data_header_present,&status_report->user_data);if(i>WMS_SMS_UDL_MAX_8_BIT){
printf(
"\x55\x73\x65\x72\x20\x44\x61\x74\x61\x20\x4c\x65\x6e\x67\x74\x68\x20\x68\x61\x73\x20\x65\x78\x63\x65\x65\x64\x65\x64\x20\x63\x61\x70\x61\x63\x69\x74\x79\x3a\x20\x55\x44\x4c\x20\x3d\x20\x25\x6c\x75"
,i);st=WMS_INVALID_USER_DATA_SIZE_S;}pos+=i;}}else{status_report->mask=
-(0xda7+2034-0x1599);}return st;}wms_status_e_type wms_ts_decode(const
+(0x1fc+5542-0x17a2);}return st;}wms_status_e_type wms_ts_decode(const
T_zUfiSms_RawTsData*ptRawTsData,T_zUfiSms_ClientTsData*ptClientTsData){
wms_status_e_type st=WMS_OK_S;wms_gw_pp_ts_data_s_type*msg;if(ptRawTsData==NULL
||ptClientTsData==NULL){return WMS_NULL_PTR_S;}msg=&ptClientTsData->u.gw_pp;
diff --git a/ap/app/zte_comm/sms/src/sms_db.c b/ap/app/zte_comm/sms/src/sms_db.c
index 111fc49..5843f7d 100755
--- a/ap/app/zte_comm/sms/src/sms_db.c
+++ b/ap/app/zte_comm/sms/src/sms_db.c
@@ -101,84 +101,84 @@
#define OUTDATEINTERVAL 7776000
typedef struct{char*buf_addr;int buf_len;}T_zUfiSms_BufInfo;typedef struct{int
valid;char*strSQL;}T_zUfiSms_SQLMap;sqlite3*g_zUfiSms_DbPointer=
-(0x3c3+4902-0x16e9);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern
+(0x167c+963-0x1a3f);extern T_zUfiSms_ParaInfo g_zUfiSms_CurSmsPara;extern
unsigned long g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX];extern
T_zUfiSms_DelSms g_zUfiSms_DelMsg;static int isSucess(T_zUfiSms_DbResult dbRst){
return dbRst==ZTE_WMS_DB_OK?ZUFI_SUCC:ZUFI_FAIL;}time_t zte_getsecond(
-T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0x10c6+483-0x12a9)};int
-tmp_i=(0x1f6+9379-0x2699);
-#if (0x1b22+2882-0x2664)
-if(atoi(date.year)>(0xeb1+2117-0x1693)||atoi(date.year)<(0xac0+7085-0x266d)){
-printf("[SMS] zte_getsecond error, year out of range: %d!!!",atoi(date.year));
-return(0x1397+2040-0x1b8f);}
+T_zUfiSms_Date date){time_t timet;struct tm tmtime={(0x83f+7821-0x26cc)};int
+tmp_i=(0x120d+3103-0x1e2c);
+#if (0xa55+4386-0x1b77)
+if(atoi(date.year)>(0x21d1+1207-0x2625)||atoi(date.year)<(0x41b+6744-0x1e73)){
+printf("[SMS] getsecond error, year out of range: %d!!!",atoi(date.year));return
+(0x23c+2628-0xc80);}
#endif
-tmp_i=atoi(date.year);if(tmp_i<(0xe7d+3540-0x1c51)||tmp_i>INT_MAX-
-(0x548+1262-0xa35)){at_print(LOG_ERR,
+tmp_i=atoi(date.year);if(tmp_i<(0x1373+1521-0x1964)||tmp_i>INT_MAX-
+(0x1359+2818-0x1e5a)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x79\x65\x61\x72\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x366+5425-0x1897);}tmtime.tm_year=tmp_i+(0x1dca+1053-0x1a17)-
-(0xaab+6027-0x1aca);tmp_i=atoi(date.month);if(tmp_i<(0x1bcb+160-0x1c6b)||tmp_i>
-INT_MAX-(0x667+1695-0xd05)){at_print(LOG_ERR,
+,tmp_i);return(0x6bc+2803-0x11af);}tmtime.tm_year=tmp_i+(0xa90+1031-0x6c7)-
+(0xe08+5072-0x1a6c);tmp_i=atoi(date.month);if(tmp_i<(0x22e1+341-0x2436)||tmp_i>
+INT_MAX-(0xec1+1186-0x1362)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x6d\x6f\x6e\x74\x68\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x7f2+1395-0xd65);}tmtime.tm_mon=tmp_i-(0x10e6+632-0x135d);tmp_i=
-atoi(date.day);if(tmp_i<(0xd06+1703-0x13ad)||tmp_i>INT_MAX-(0x200d+1593-0x2645))
-{at_print(LOG_ERR,
+,tmp_i);return(0x1389+373-0x14fe);}tmtime.tm_mon=tmp_i-(0xd93+1707-0x143d);tmp_i
+=atoi(date.day);if(tmp_i<(0x1d4+720-0x4a4)||tmp_i>INT_MAX-(0x9e8+1391-0xf56)){
+at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x64\x61\x79\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x9ad+1745-0x107e);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
-(tmp_i<(0x8+8223-0x2027)||tmp_i>INT_MAX-(0x1bc+6694-0x1be1)){at_print(LOG_ERR,
+,tmp_i);return(0x153f+965-0x1904);}tmtime.tm_mday=tmp_i;tmp_i=atoi(date.hour);if
+(tmp_i<(0x8ef+5454-0x1e3d)||tmp_i>INT_MAX-(0x3ea+1231-0x8b8)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x68\x6f\x75\x72\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0xebf+5696-0x24ff);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if(
-tmp_i<(0x9f6+5144-0x1e0e)||tmp_i>INT_MAX-(0x983+768-0xc82)){at_print(LOG_ERR,
+,tmp_i);return(0x13f7+3539-0x21ca);}tmtime.tm_hour=tmp_i;tmp_i=atoi(date.min);if
+(tmp_i<(0xbfd+133-0xc82)||tmp_i>INT_MAX-(0x2cc+4180-0x131f)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x6d\x69\x6e\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0xa67+469-0xc3c);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
-tmp_i<(0x30d+1853-0xa4a)||tmp_i>INT_MAX-(0x103f+1582-0x166c)){at_print(LOG_ERR,
+,tmp_i);return(0x6e0+492-0x8cc);}tmtime.tm_min=tmp_i;tmp_i=atoi(date.sec);if(
+tmp_i<(0x1a41+1141-0x1eb6)||tmp_i>INT_MAX-(0x10f+4747-0x1399)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x64\x61\x74\x65\x2e\x73\x65\x63\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return(0x1186+4570-0x2360);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
+,tmp_i);return(0x1c2+661-0x457);}tmtime.tm_sec=tmp_i;timet=mktime(&tmtime);
return timet;}T_zUfiSms_DbResult zUfiSms_OpenDb(void){int retry_times=
-(0x2ef+6349-0x1bbc);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
+(0x1cd8+1938-0x246a);int open_rst=SQLITE_ERROR;if(g_zUfiSms_DbPointer!=NULL){
sqlite3_close(g_zUfiSms_DbPointer);g_zUfiSms_DbPointer=NULL;}do{open_rst=
sqlite3_open(ZTE_WMS_DB_PATH,&g_zUfiSms_DbPointer);}while(open_rst==
-SQLITE_CANTOPEN&&retry_times++<(0x41c+4280-0x14ca));printf(
+SQLITE_CANTOPEN&&retry_times++<(0x9f5+3271-0x16b2));printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4f\x70\x65\x6e\x44\x62\x3a\x20\x72\x65\x74\x72\x79\x5f\x74\x69\x6d\x65\x73\x20\x3d\x20\x25\x64\x2c\x20\x6f\x70\x65\x6e\x5f\x72\x73\x74\x20\x3d\x20\x25\x64" "\n"
,retry_times,open_rst);return open_rst==SQLITE_OK?ZTE_WMS_DB_OK:
ZTE_SMS_DB_ERROR_NOT_OPEN_DB;}T_zUfiSms_DbResult zUfiSms_CloseDb(void){if(
sqlite3_close(g_zUfiSms_DbPointer)!=SQLITE_OK){return ZTE_SMS_DB_ERROR;}
g_zUfiSms_DbPointer=NULL;return ZTE_WMS_DB_OK;}T_zUfiSms_DbResult
zUfiSms_ExecSql(const char*exec_sql,zte_wms_db_callback callback,void*fvarg){int
- try_times=(0x701+6238-0x1f5f);int sqlRst=SQLITE_ERROR;while(try_times++<
-(0xbc9+1003-0xfaa)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
+ try_times=(0xdeb+5292-0x2297);int sqlRst=SQLITE_ERROR;while(try_times++<
+(0x6a7+2118-0xee3)){sqlRst=sqlite3_exec(g_zUfiSms_DbPointer,exec_sql,callback,
fvarg,NULL);if(sqlRst!=SQLITE_BUSY&&sqlRst!=SQLITE_LOCKED&&sqlRst!=SQLITE_IOERR)
{break;}printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x45\x78\x65\x63\x53\x71\x6c\x3a\x20\x74\x72\x79\x5f\x74\x69\x6d\x65\x73\x3d\x25\x64\x2c\x20\x53\x51\x4c\x3d\x25\x73\x2c\x20\x45\x72\x72\x6d\x73\x67\x3d\x25\x73" "\n"
,try_times,exec_sql,sqlite3_errmsg(g_zUfiSms_DbPointer));sleep(
-(0x1777+2594-0x2198));}if(sqlRst!=SQLITE_OK){printf(
+(0x3e8+2607-0xe16));}if(sqlRst!=SQLITE_OK){printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x45\x78\x65\x63\x53\x71\x6c\x3a\x20\x74\x72\x79\x5f\x74\x69\x6d\x65\x73\x3d\x25\x64\x2c\x20\x53\x51\x4c\x3d\x25\x73\x2c\x20\x45\x72\x72\x6d\x73\x67\x3d\x25\x73" "\n"
,try_times,exec_sql,sqlite3_errmsg(g_zUfiSms_DbPointer));return ZTE_SMS_DB_ERROR
;}else{
#ifdef WEBS_SECURITY
-if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0xb5+9592-0x262d)){slog(PB_PRINT,SLOG_ERR,
+if(access(ZTE_WMS_TMP1_PATH,F_OK)==(0xe90+5013-0x2225)){slog(PB_PRINT,SLOG_ERR,
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x45\x78\x65\x63\x53\x71\x6c\x20\x64\x62\x20\x73\x74\x61\x79"
-);if(remove(ZTE_WMS_TMP1_PATH)!=(0x1596+2243-0x1e59)){slog(SMS_PRINT,SLOG_ERR,
-"\x72\x65\x6d\x6f\x76\x65\x20\x5a\x54\x45\x5f\x57\x4d\x53\x5f\x54\x4d\x50\x31\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}}{char rnum_buf[(0x498+3037-0x105d)]={(0x1413+3869-0x2330)};char cmd[
-(0x543+5262-0x1951)]={(0xfd5+462-0x11a3)};sc_cfg_get(
+);if(remove(ZTE_WMS_TMP1_PATH)!=(0xf59+3205-0x1bde)){slog(SMS_PRINT,SLOG_ERR,
+"\x72\x65\x6d\x6f\x76\x65\x20\x57\x4d\x53\x5f\x54\x4d\x50\x31\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
+);}}{char rnum_buf[(0x1ee1+1539-0x24cc)]={(0x1180+829-0x14bd)};char cmd[
+(0xbb1+4079-0x1b20)]={(0x1c7a+2052-0x247e)};sc_cfg_get(
"\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(rnum_buf));snprintf(cmd,sizeof(
cmd),
"\x2f\x62\x69\x6e\x2f\x6f\x70\x65\x6e\x73\x73\x6c\x20\x65\x6e\x63\x20\x2d\x65\x20\x2d\x61\x65\x73\x32\x35\x36\x20\x2d\x73\x61\x6c\x74\x20\x2d\x69\x6e\x20\x25\x73\x20\x2d\x6f\x75\x74\x20\x25\x73\x20\x2d\x70\x61\x73\x73\x20\x70\x61\x73\x73\x3a\x25\x73"
,ZTE_WMS_DB_PATH,ZTE_WMS_TMP1_PATH,rnum_buf);zxic_system(cmd);if(access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x108b+1526-0x1681)){if(remove(ZTE_WMS_SEC_PATH)!=
-(0x2db+378-0x455)){slog(SMS_PRINT,SLOG_ERR,
-"\x72\x65\x6d\x6f\x76\x65\x20\x5a\x54\x45\x5f\x57\x4d\x53\x5f\x53\x45\x43\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
-);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0x162d+2125-0x1e7a)){slog(
+ZTE_WMS_TMP1_PATH,F_OK)==(0x1016+3755-0x1ec1)){if(remove(ZTE_WMS_SEC_PATH)!=
+(0x760+2360-0x1098)){slog(SMS_PRINT,SLOG_ERR,
+"\x72\x65\x6d\x6f\x76\x65\x20\x57\x4d\x53\x5f\x53\x45\x43\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
+);}if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=(0x1387+1146-0x1801)){slog(
SMS_PRINT,SLOG_ERR,
-"\x72\x65\x6e\x61\x6d\x65\x20\x5a\x54\x45\x5f\x57\x4d\x53\x5f\x54\x4d\x50\x31\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
+"\x72\x65\x6e\x61\x6d\x65\x20\x57\x4d\x53\x5f\x54\x4d\x50\x31\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c"
);}}}
#endif
return ZTE_WMS_DB_OK;}}int zUfiSms_GetFirstColumnInt(void*fvarg,int columns,char
-**zresult,char**lname){if(columns>=(0x8aa+570-0xae3)){if(zresult[
-(0x1225+5041-0x25d6)]==NULL){*(int*)fvarg=(0x1388+3852-0x2294);}else{*(int*)
-fvarg=atoi(zresult[(0x142+1718-0x7f8)]);}return SQLITE_OK;}else{return
-SQLITE_ERROR;}}int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){
-T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
+**zresult,char**lname){if(columns>=(0x119a+2569-0x1ba2)){if(zresult[
+(0x2542+407-0x26d9)]==NULL){*(int*)fvarg=(0xcf+2090-0x8f9);}else{*(int*)fvarg=
+atoi(zresult[(0xa84+676-0xd28)]);}return SQLITE_OK;}else{return SQLITE_ERROR;}}
+int zUfiSms_SetCmdStatus(T_zUfiSms_StatusInfo*ptSetStatus){T_zUfiSms_DbResult
+result=ZTE_WMS_DB_OK;char*strSQL=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x74\x43\x6d\x64\x53\x74\x61\x74\x75\x73\x20\x65\x6e\x74\x65\x72\x2e" "\n"
);strSQL=sqlite3_mprintf(
"\x49\x4e\x53\x45\x52\x54\x20\x4f\x52\x20\x52\x45\x50\x4c\x41\x43\x45\x20\x49\x4e\x54\x4f\x20\x25\x73\x28\x43\x6d\x64\x2c\x43\x6d\x64\x5f\x53\x74\x61\x74\x75\x73\x2c\x45\x72\x72\x5f\x43\x6f\x64\x65\x2c\x53\x65\x6e\x64\x5f\x46\x61\x69\x6c\x5f\x43\x6f\x75\x6e\x74\x2c\x44\x65\x6c\x5f\x43\x6f\x75\x6e\x74\x29\x20"
@@ -187,28 +187,28 @@
ptSetStatus->err_code,ptSetStatus->send_failed_count,ptSetStatus->
delete_failed_count);result=zUfiSms_ExecSql(strSQL,NULL,NULL);sqlite3_free(
strSQL);return isSucess(result);}void zUfiSms_SetParameterNv(T_zUfiSms_ParaInfo*
-para){if((0x1125+4887-0x243c)==(int)para->status_report_on){sc_cfg_set(
+para){if((0x1537+2237-0x1df4)==(int)para->status_report_on){sc_cfg_set(
NV_REPORT_ENABLE,"\x30");}else{sc_cfg_set(NV_REPORT_ENABLE,"\x31");}if(
-(0x5b9+7874-0x247b)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
-"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x54c+790-0x862)==(int)
-para->outdate_delete_on){sc_cfg_set(NV_OUTDATE_DELETE,"\x30");}else{sc_cfg_set(
+(0x5a7+6508-0x1f13)==(int)para->sendfail_retry_on){sc_cfg_set(NV_SENDFAIL_RETRY,
+"\x30");}else{sc_cfg_set(NV_SENDFAIL_RETRY,"\x31");}if((0x90f+5976-0x2067)==(int
+)para->outdate_delete_on){sc_cfg_set(NV_OUTDATE_DELETE,"\x30");}else{sc_cfg_set(
NV_OUTDATE_DELETE,"\x31");}if(*(para->default_store)!='\0'){sc_cfg_set(
-NV_DEFAULT_STORE,(char*)para->default_store);}if((0x1e0c+1147-0x2287)==(int)para
+NV_DEFAULT_STORE,(char*)para->default_store);}if((0x1ded+486-0x1fd3)==(int)para
->mem_store){sc_cfg_set(NV_PRA_MEMSTORE,"\x30");}else{sc_cfg_set(NV_PRA_MEMSTORE
-,"\x31");}if((0x128f+699-0x144b)==(int)para->tp_validity_period){sc_cfg_set(
-NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x1a8+9138-0x24ad)==(int)
+,"\x31");}if((0xd7c+4499-0x1e10)==(int)para->tp_validity_period){sc_cfg_set(
+NV_SMS_VP,"\x6c\x6f\x6e\x67\x65\x73\x74");}else if((0x1476+311-0x1500)==(int)
para->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x6f\x6e\x65\x77\x65\x65\x6b");}
-else if((0x1b49+2463-0x2441)==(int)para->tp_validity_period){sc_cfg_set(
-NV_SMS_VP,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x639+1267-0xa9d)==(int)para
+else if((0x1f92+1612-0x2537)==(int)para->tp_validity_period){sc_cfg_set(
+NV_SMS_VP,"\x6f\x6e\x65\x5f\x64\x61\x79");}else if((0x213+3146-0xdce)==(int)para
->tp_validity_period){sc_cfg_set(NV_SMS_VP,"\x74\x77\x65\x6c\x76\x65\x68");}
printf(
-"\x7a\x74\x65\x5f\x77\x6d\x73\x5f\x64\x62\x5f\x73\x65\x74\x5f\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x20\x3a\x3a\x20\x73\x65\x74\x20\x74\x70\x5f\x76\x61\x6c\x69\x64\x69\x74\x79\x5f\x70\x65\x72\x69\x6f\x64\x20\x25\x64" "\n"
+"\x77\x6d\x73\x5f\x64\x62\x5f\x73\x65\x74\x5f\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x20\x3a\x3a\x20\x73\x65\x74\x20\x74\x70\x5f\x76\x61\x6c\x69\x64\x69\x74\x79\x5f\x70\x65\x72\x69\x6f\x64\x20\x25\x64" "\n"
,(int)para->tp_validity_period);}int zUfiSms_SetDbParameters(T_zUfiSms_ParaInfo*
para){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;char*strSQL=NULL;int count=
-(0xdad+1594-0x13e7);if(NULL==para){return-(0x1fac+1202-0x245d);}zUfiSms_ExecSql(
+(0x19fb+3046-0x25e1);if(NULL==para){return-(0xaca+4784-0x1d79);}zUfiSms_ExecSql(
"\x53\x45\x4c\x45\x43\x54\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE"\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b",
-zUfiSms_GetFirstColumnInt,&count);if(count>(0x3c1+4508-0x155d)){strSQL=
+zUfiSms_GetFirstColumnInt,&count);if(count>(0x136b+37-0x1390)){strSQL=
sqlite3_mprintf(
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x3d\x27\x25\x64\x27\x2c\x53\x6d\x73\x5f\x53\x63\x61\x3d\x27\x25\x71\x27\x2c\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x64\x27\x2c\x54\x70\x5f\x56\x61\x6c\x69\x64\x69\x74\x79\x3d\x27\x25\x64\x27\x2c\x53\x65\x6e\x64\x5f\x52\x65\x74\x72\x79\x3d\x27\x25\x64\x27\x2c\x4f\x75\x74\x64\x61\x74\x65\x5f\x44\x65\x6c\x65\x74\x65\x3d\x27\x25\x64\x27\x2c\x44\x65\x66\x61\x75\x6c\x74\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
,ZTE_WMS_DB_PARAMETER_TABLE,(int)para->status_report_on,para->sca,(int)para->
@@ -221,13 +221,13 @@
mem_store,(int)para->tp_validity_period,(int)para->sendfail_retry_on,(int)para->
outdate_delete_on,para->default_store);}result=zUfiSms_ExecSql(strSQL,NULL,NULL)
;sqlite3_free(strSQL);if(result==ZTE_WMS_DB_OK){zUfiSms_SetParameterNv(para);
-return(0x672+1399-0xbe9);}return-(0x293+4176-0x12e2);}int zUfiSms_GetTotalCount(
-const char*pDbTable,int*pTotalCount){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;
+return(0xc27+2882-0x1769);}return-(0xe3a+4512-0x1fd9);}int zUfiSms_GetTotalCount
+(const char*pDbTable,int*pTotalCount){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;
char*strSQL=NULL;strSQL=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x3b"
,pDbTable);result=zUfiSms_ExecSql(strSQL,zUfiSms_GetFirstColumnInt,pTotalCount);
sqlite3_free(strSQL);return isSucess(result);}int zUfiSms_GetSmsMaxReferInDb(
-void){int max_sms_ref=-(0x311+4187-0x136b);zUfiSms_ExecSql(
+void){int max_sms_ref=-(0x102f+5418-0x2558);zUfiSms_ExecSql(
"\x53\x45\x4c\x45\x43\x54\x20\x4d\x61\x78\x5f\x53\x6d\x73\x5f\x52\x65\x66\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE
"\x20\x57\x48\x45\x52\x45\x20\x69\x64\x20\x3d\x20\x31\x3b",
@@ -236,19 +236,19 @@
content,int len){sqlite3_stmt*stmt=NULL;char*strSQL=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x64\x2c\x43\x63\x5f\x53\x65\x71\x2c\x43\x63\x5f\x43\x6f\x6e\x74\x65\x6e\x74\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x71\x27\x3b"
,id,mem_store);(void)sqlite3_prepare(g_zUfiSms_DbPointer,strSQL,-
-(0x17a8+1023-0x1ba6),&stmt,(0x1f64+503-0x215b));while(SQLITE_ROW==sqlite3_step(
-stmt)){char*column_text=NULL;memset(pac->IndStr,(0x136c+4854-0x2662),sizeof(pac
-->IndStr));memset(pac->Seg_Seq,(0x8bb+4290-0x197d),sizeof(pac->Seg_Seq));if((
-column_text=sqlite3_column_text(stmt,(0x1a9+5544-0x1751)))!=NULL)strncpy(pac->
-IndStr,column_text,sizeof(pac->FormatInd)-(0x1937+49-0x1967));if((column_text=
-sqlite3_column_text(stmt,(0x8ed+4055-0x18c3)))!=NULL)strncpy(pac->Seg_Seq,
-column_text,sizeof(pac->FormatSeq)-(0x135f+3347-0x2071));if((column_text=
-sqlite3_column_text(stmt,(0x17d+6412-0x1a87)))!=NULL)strncpy(content,column_text
-,len-(0x1671+2814-0x216e));printf(
+(0x1978+1566-0x1f95),&stmt,(0x560+3645-0x139d));while(SQLITE_ROW==sqlite3_step(
+stmt)){char*column_text=NULL;memset(pac->IndStr,(0xab9+2666-0x1523),sizeof(pac->
+IndStr));memset(pac->Seg_Seq,(0x592+1856-0xcd2),sizeof(pac->Seg_Seq));if((
+column_text=sqlite3_column_text(stmt,(0x92b+2041-0x1124)))!=NULL)strncpy(pac->
+IndStr,column_text,sizeof(pac->FormatInd)-(0x21fd+755-0x24ef));if((column_text=
+sqlite3_column_text(stmt,(0x15f9+1051-0x1a13)))!=NULL)strncpy(pac->Seg_Seq,
+column_text,sizeof(pac->FormatSeq)-(0x11b+2823-0xc21));if((column_text=
+sqlite3_column_text(stmt,(0x1410+1667-0x1a91)))!=NULL)strncpy(content,
+column_text,len-(0xb+7778-0x1e6c));printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x43\x6f\x6e\x63\x61\x74\x49\x6e\x66\x6f\x3a\x25\x73\x2c\x25\x73" "\n"
,pac->IndStr,pac->Seg_Seq);}(void)sqlite3_finalize(stmt);sqlite3_free(strSQL);
-return(0x989+3242-0x1633);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData
-*db_data,const char*mem_store,char*format_concat,char*content,
+return(0x1b5+2937-0xd2e);}int zUfiSms_UpdateConcatSmsToDb(T_zUfiSms_DbStoreData*
+db_data,const char*mem_store,char*format_concat,char*content,
T_zUfiSms_DbStoreStr*pac,int concat_num,long id){char*sql=NULL;
T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;sql=sqlite3_mprintf(
"\x55\x50\x44\x41\x54\x45\x20\x73\x6d\x73\x20\x53\x45\x54\x20\x69\x6e\x64\x3d\x27\x25\x73\x27\x2c\x54\x61\x67\x3d\x27\x25\x64\x27\x2c\x43\x63\x5f\x53\x65\x71\x3d\x27\x25\x73\x27\x2c\x43\x63\x5f\x4e\x75\x6d\x3d\x27\x25\x64\x27\x2c\x20"
@@ -269,8 +269,8 @@
"\x43\x6f\x6e\x74\x65\x6e\x74\x2c\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x5f\x52\x65\x63\x69\x76\x65\x64\x2c\x44\x72\x61\x66\x74\x5f\x47\x72\x6f\x75\x70\x5f\x49\x64\x2c\x59\x65\x61\x72\x2c\x4d\x6f\x6e\x74\x68\x2c\x44\x61\x79\x2c\x48\x6f\x75\x72\x2c\x4d\x69\x6e\x75\x74\x65\x2c\x53\x65\x63\x6f\x6e\x64\x2c\x54\x69\x6d\x65\x5a\x6f\x6e\x65\x2c\x4d\x6b\x74\x69\x6d\x65\x2c\x44\x69\x73\x70\x6c\x61\x79\x4d\x6f\x64\x65\x29\x20"
"\x56\x41\x4c\x55\x45\x53\x28" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x20\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x20\x27\x25\x64\x27\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x20" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c" "\'" "\x25\x71" "\'" "\x2c\x27\x25\x64\x27\x2c\x20\x27\x25\x64\x27\x29\x3b"
,pac->FormatInd,mem_store,db_data->tag,db_data->number,db_data->concat_sms,
-db_data->concat_info[(0x547+6229-0x1d9c)],db_data->concat_info[
-(0x1033+4583-0x2219)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
+db_data->concat_info[(0x15f3+375-0x176a)],db_data->concat_info[
+(0xa54+1879-0x11aa)],pac->FormatSeq,concat_num,format_concat,db_data->tp_dcs,
db_data->msg_ref,content,"\x30",db_data->draft_group_id,db_data->julian_date.
year,db_data->julian_date.month,db_data->julian_date.day,db_data->julian_date.
hour,db_data->julian_date.min,db_data->julian_date.sec,db_data->julian_date.
@@ -279,22 +279,23 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x49\x6e\x73\x65\x72\x74\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x54\x6f\x44\x62\x20\x73\x71\x6c\x3d\x25\x73\x2e" "\n"
,sql);result=zUfiSms_ExecSql(sql,NULL,NULL);sqlite3_free(sql);return isSucess(
result);}int zUfiSms_GetConcatMaxReferInDb(void){int ConcatMaxRefer=
-(0xf6f+89-0xfc8);int result=(0x719+7874-0x25db);result=zUfiSms_ExecSql(
+(0x1ecc+2054-0x26d2);int result=(0xfb0+3508-0x1d64);result=zUfiSms_ExecSql(
"\x53\x45\x4c\x45\x43\x54\x20\x4d\x61\x78\x5f\x43\x63\x5f\x52\x65\x66\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE
"\x20\x57\x48\x45\x52\x45\x20\x69\x64\x20\x3d\x20\x31\x3b",
zUfiSms_GetFirstColumnInt,&ConcatMaxRefer);if(ZTE_WMS_DB_OK!=result){return-
-(0x1408+3764-0x22bb);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap
-=(0x7dd+7016-0x2345);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x165d+1478-0x1c22),
-ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0x7a+4146-0x10ab),ZTE_WMS_DEL_SIM_SQL},{
-(0x1ed2+712-0x2199),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x12eb+1098-0x1734),
-ZTE_WMS_CREATE_SMS_REP_SQL},{(0xeba+612-0x111d),ZTE_WMS_CREATE_PAR_SQL},{
-(0x993+2412-0x12fe),ZTE_WMS_CREATE_INFO_SQL},{(0x47a+5614-0x1a67),
-ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x1c3+2764-0xc8e),ZTE_WMS_CREATE_SEND_CONTENT_SQL
-},};for(iMap=(0x2e9+424-0x491);iMap<sizeof(SQL_MAP)/sizeof(T_zUfiSms_SQLMap);
-iMap++){if(SQL_MAP[iMap].valid==(0x635+929-0x9d5)){if(zUfiSms_ExecSql(SQL_MAP[
-iMap].strSQL,NULL,NULL)!=ZTE_WMS_DB_OK){return ZUFI_FAIL;}}}return ZUFI_SUCC;}
-int zUfiSms_CreateAllTable(void){if(ZTE_WMS_DB_OK!=zUfiSms_OpenDb()){printf(
+(0xe31+6075-0x25eb);}return ConcatMaxRefer;}int zUfiSms_CreateTables(){int iMap=
+(0x92+7809-0x1f13);const T_zUfiSms_SQLMap SQL_MAP[]={{(0x1c07+1175-0x209d),
+ZTE_WMS_CREATE_TABLE_SMS_SQL},{(0xcaa+1400-0x1221),ZTE_WMS_DEL_SIM_SQL},{
+(0x31b+4007-0x12c1),ZTE_WMS_CREATE_CMD_STATUS_SQL},{(0x1a75+640-0x1cf4),
+ZTE_WMS_CREATE_SMS_REP_SQL},{(0x10d9+911-0x1467),ZTE_WMS_CREATE_PAR_SQL},{
+(0xe30+1151-0x12ae),ZTE_WMS_CREATE_INFO_SQL},{(0x6b0+815-0x9de),
+ZTE_WMS_CREATE_CELL_BRO_SQL},{(0x4c0+4153-0x14f8),
+ZTE_WMS_CREATE_SEND_CONTENT_SQL},};for(iMap=(0xa01+5863-0x20e8);iMap<sizeof(
+SQL_MAP)/sizeof(T_zUfiSms_SQLMap);iMap++){if(SQL_MAP[iMap].valid==
+(0x110+4484-0x1293)){if(zUfiSms_ExecSql(SQL_MAP[iMap].strSQL,NULL,NULL)!=
+ZTE_WMS_DB_OK){return ZUFI_FAIL;}}}return ZUFI_SUCC;}int zUfiSms_CreateAllTable(
+void){if(ZTE_WMS_DB_OK!=zUfiSms_OpenDb()){printf(
"\x5b\x53\x4d\x53\x5d\x20\x63\x61\x6e\x20\x6e\x6f\x74\x20\x6f\x70\x65\x6e\x20\x64\x61\x74\x61\x62\x61\x73\x65\x2e\x72\x65\x74\x75\x72\x6e\x2e" "\n"
);return ZTE_SMS_DB_ERROR_NOT_OPEN_DB;}return zUfiSms_CreateTables();}int
zUfiSms_DropAllTable(void){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;if(
@@ -323,9 +324,9 @@
"\x27\x25\x64\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x64\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x20"
"\x27\x25\x71\x27\x2c\x27\x25\x71\x27\x2c\x27\x25\x75\x27\x2c\x20\x27\x25\x64\x27\x29\x3b"
,ptDbSaveData->index,pStorePos,ptDbSaveData->tag,ptDbSaveData->number,
-ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0xc6a+401-0xdfb)],
-ptDbSaveData->concat_info[(0x1aaf+944-0x1e5e)],ptDbSaveData->concat_info[
-(0xac+6694-0x1ad0)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
+ptDbSaveData->concat_sms,ptDbSaveData->concat_info[(0x13db+3321-0x20d4)],
+ptDbSaveData->concat_info[(0x1098+1814-0x17ad)],ptDbSaveData->concat_info[
+(0x364+1-0x363)],ptDbSaveData->tp_dcs,ptDbSaveData->msg_ref,pContent,"\x30",
ptDbSaveData->draft_group_id,ptDbSaveData->julian_date.year,ptDbSaveData->
julian_date.month,ptDbSaveData->julian_date.day,ptDbSaveData->julian_date.hour,
ptDbSaveData->julian_date.min,ptDbSaveData->julian_date.sec,ptDbSaveData->
@@ -347,25 +348,25 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x55\x70\x64\x61\x74\x65\x4e\x6f\x72\x6d\x61\x6c\x53\x6d\x73\x54\x6f\x44\x62\x20\x73\x71\x6c\x3d\x25\x73" "\n"
,strSQL);result=zUfiSms_ExecSql(strSQL,NULL,NULL);sqlite3_free(strSQL);return
isSucess(result);}int zUfiSms_GetFirstColumnStr(void*fvarg,int columns,char**
-zresult,char**lname){if(columns>=(0x98+3554-0xe79)&&fvarg!=NULL){if(zresult[
-(0x1f14+220-0x1ff0)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
-strncpy(para->buf_addr,zresult[(0xb11+1851-0x124c)],para->buf_len-
-(0x95+1240-0x56c));return SQLITE_OK;}}return SQLITE_ERROR;}int
+zresult,char**lname){if(columns>=(0xdb4+2894-0x1901)&&fvarg!=NULL){if(zresult[
+(0x905+6569-0x22ae)]!=NULL){T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;
+strncpy(para->buf_addr,zresult[(0xe68+4443-0x1fc3)],para->buf_len-
+(0x932+3681-0x1792));return SQLITE_OK;}}return SQLITE_ERROR;}int
zUfiSms_GetStorePosById(char*item,char*item_data,int item_len,int id){
T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;T_zUfiSms_BufInfo buf_info={
-(0xd95+3423-0x1af4)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return
+(0x1d6b+1246-0x2249)};char*strSQL=NULL;if(NULL==item||NULL==item_data){return
ZUFI_FAIL;}buf_info.buf_addr=item_data;buf_info.buf_len=item_len;strSQL=
sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x25\x71\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,item,id);result=zUfiSms_ExecSql(strSQL,zUfiSms_GetFirstColumnStr,&buf_info);
-sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0xee1+5424-0x2411)==strcmp(
+sqlite3_free(strSQL);if((ZTE_WMS_DB_OK!=result)||((0x2146+985-0x251f)==strcmp(
item_data,""))){at_print(LOG_ERR,
"\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x5f\x6d\x65\x6d\x62\x65\x72\x20\x62\x79\x20\x69\x64\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
);return ZUFI_FAIL;}return ZUFI_SUCC;}int zUfiSms_DeleteSmsInDb(void){char sql[
-(0xcda+451-0xe1d)]={(0x18d+8259-0x21d0)};snprintf(sql,sizeof(sql),
+(0x20b+3329-0xe8c)]={(0xdb+602-0x335)};snprintf(sql,sizeof(sql),
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x61\x6e\x64\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SIM_TABLE,g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_index-
-(0x71c+2595-0x113e)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
+(0x796+7463-0x24bc)]);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}int
zUfiSms_DeleteAllSimSmsInDb(void){return isSucess(zUfiSms_ExecSql(
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27"
ZTE_WMS_DB_SIM_TABLE"\x27\x3b",NULL,NULL));}int zUfiSms_DeleteNvSms(void){if(
@@ -374,51 +375,52 @@
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27"
ZTE_WMS_DB_NV_TABLE"\x27\x3b",NULL,NULL)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x64\x65\x6c\x65\x74\x65\x20\x66\x61\x69\x6c" "\n"
-);return WMS_CMD_FAILED;}}else{int i=(0x3c8+526-0x5d6);printf(
+);return WMS_CMD_FAILED;}}else{int i=(0x119f+2402-0x1b01);printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x64\x65\x6c\x65\x74\x65\x20\x6e\x76\x5f\x63\x6f\x75\x6e\x74\x3d\x25\x64" "\n"
-,g_zUfiSms_DelMsg.nv_count);for(i=(0x10fa+3180-0x1d66);i<g_zUfiSms_DelMsg.
-nv_count;i++){char sql[(0x85+4476-0x1181)]={(0x113d+3215-0x1dcc)};snprintf(sql,
+,g_zUfiSms_DelMsg.nv_count);for(i=(0x1612+1439-0x1bb1);i<g_zUfiSms_DelMsg.
+nv_count;i++){char sql[(0x14b8+1237-0x190d)]={(0x367+2060-0xb73)};snprintf(sql,
sizeof(sql),
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x61\x6e\x64\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_NV_TABLE,g_zUfiSms_DelMsg.nv_id[i]);if(ZTE_WMS_DB_OK!=
zUfiSms_ExecSql(sql,NULL,NULL)){printf(
-"\x5b\x53\x4d\x53\x5d\x20\x7a\x74\x65\x5f\x73\x6d\x73\x3a\x65\x78\x65\x63\x20\x73\x71\x6c\x20\x66\x61\x69\x6c\x65\x64\x2c\x69\x3d\x25\x64" "\n"
+"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x65\x78\x65\x63\x20\x73\x71\x6c\x20\x66\x61\x69\x6c\x65\x64\x2c\x69\x3d\x25\x64" "\n"
,i);return WMS_CMD_FAILED;}}}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x64\x65\x6c\x65\x74\x65\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return WMS_CMD_SUCCESS;}int zUfiSms_GetSmsIndex(int id,T_zUfiSms_ModifyTag*
-ptModifyTag,int is_cc){char sql[(0x47c+4878-0x170a)]={(0xbc1+5881-0x22ba)};
-T_zUfiSms_BufInfo buf_info={(0x391+3588-0x1195)};char str_index[
-(0x1295+694-0x1549)*WMS_MESSAGE_LIST_MAX]={(0x2c5+3209-0xf4e)};buf_info.buf_addr
-=str_index;buf_info.buf_len=sizeof(str_index);snprintf(sql,sizeof(sql),
+ptModifyTag,int is_cc){char sql[(0x1141+963-0x1484)]={(0x67b+297-0x7a4)};
+T_zUfiSms_BufInfo buf_info={(0x268f+7-0x2696)};char str_index[
+(0x1bb5+267-0x1cbe)*WMS_MESSAGE_LIST_MAX]={(0x1541+3905-0x2482)};buf_info.
+buf_addr=str_index;buf_info.buf_len=sizeof(str_index);snprintf(sql,sizeof(sql),
"\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,id);if(zUfiSms_ExecSql(sql,zUfiSms_GetFirstColumnStr,&buf_info)!=ZTE_WMS_DB_OK)
{at_print(LOG_ERR,
"\x6f\x70\x65\x6e\x20\x74\x61\x62\x6c\x65\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64"
-);return ZUFI_FAIL;}if((0x1cc2+1259-0x21ac)==is_cc){int i=(0x3c+2106-0x876);int
-j=(0x63a+5951-0x1d79);int count=(0x4a2+1552-0xab2);char**out_result=NULL;count=
-zUfiSms_SplitString(str_index,&out_result,((char)(0xcf4+4436-0x1e0d)));for(i=
-(0x44c+4352-0x154c);i<count;i++){if((0x674+6162-0x1e86)!=strcmp(out_result[i],""
-)){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->num_of_indices=j
-;free(out_result);}else{ptModifyTag->indices[(0x15e4+386-0x1766)]=atoi(str_index
-);ptModifyTag->num_of_indices=(0xb5+2546-0xaa6);}ptModifyTag->total_indices=
+);return ZUFI_FAIL;}if((0xc57+5861-0x233b)==is_cc){int i=(0x70d+6237-0x1f6a);int
+ j=(0xef+2965-0xc84);int count=(0x619+4064-0x15f9);char**out_result=NULL;count=
+zUfiSms_SplitString(str_index,&out_result,((char)(0x1b25+836-0x1e2e)));for(i=
+(0x894+1243-0xd6f);i<count;i++){if((0x763+7096-0x231b)!=strcmp(out_result[i],"")
+){ptModifyTag->indices[j++]=atoi(out_result[i]);}}ptModifyTag->num_of_indices=j;
+free(out_result);}else{ptModifyTag->indices[(0x123b+4729-0x24b4)]=atoi(str_index
+);ptModifyTag->num_of_indices=(0x76c+2153-0xfd4);}ptModifyTag->total_indices=
ptModifyTag->num_of_indices;printf(
"\x6d\x6f\x64\x69\x66\x79\x5f\x74\x61\x67\x5f\x70\x74\x72\x2d\x3e\x74\x6f\x74\x61\x6c\x5f\x69\x6e\x64\x69\x63\x65\x73\x3d\x25\x64" "\n"
,ptModifyTag->total_indices);return ZUFI_SUCC;}int zUfiSms_IsConcatSms(int id){
-char sql[(0x71a+648-0x922)]={(0x1c16+2057-0x241f)};int is_cc=(0x423+6345-0x1cec)
-;T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof(sql),
+char sql[(0x1978+2102-0x212e)]={(0x4ff+3934-0x145d)};int is_cc=
+(0x741+6399-0x2040);T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;snprintf(sql,sizeof(
+sql),
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x6d\x73\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,id);result=zUfiSms_ExecSql(sql,zUfiSms_GetFirstColumnInt,&
is_cc);if(ZTE_WMS_DB_OK!=result){at_print(LOG_ERR,
"\x6f\x70\x65\x6e\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x66\x61\x69\x6c\x65\x64"
-,ZTE_WMS_DB_SMS_TABLE);return-(0x839+3564-0x1624);}return is_cc;}int
+,ZTE_WMS_DB_SMS_TABLE);return-(0x23a2+662-0x2637);}return is_cc;}int
zUfiSms_UpdateSmsTagInDb(unsigned long id,unsigned int tags){char sql[
-(0x7cb+6095-0x1f1a)]={(0x1000+3910-0x1f46)};snprintf(sql,sizeof(sql),
+(0x12b+2468-0xa4f)]={(0x10a+4636-0x1326)};snprintf(sql,sizeof(sql),
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x54\x61\x67\x3d\x27\x25\x64\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,tags,id);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}
int zUfiSms_GetTagCountInDb(T_zUfiSms_MemoryType mem_store,unsigned int tags,int
-*pTotalCount){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;char sql[
-(0x14e0+3237-0x2105)]={(0xc37+6142-0x2435)};if(pTotalCount==NULL){return
-ZUFI_FAIL;}if(mem_store==ZTE_WMS_MEMORY_MAX){snprintf(sql,sizeof(sql),
+*pTotalCount){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;char sql[(0x906+634-0xb00)
+]={(0x692+5267-0x1b25)};if(pTotalCount==NULL){return ZUFI_FAIL;}if(mem_store==
+ZTE_WMS_MEMORY_MAX){snprintf(sql,sizeof(sql),
"\x53\x45\x4c\x45\x43\x54\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x54\x61\x67\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,tags);}else if(mem_store==ZTE_WMS_MEMORY_NV){snprintf(sql,
sizeof(sql),
@@ -427,17 +429,17 @@
"\x53\x45\x4c\x45\x43\x54\x20\x63\x6f\x75\x6e\x74\x28\x2a\x29\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x54\x61\x67\x3d\x27\x25\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,ZTE_WMS_DB_SIM_TABLE,tags);}result=zUfiSms_ExecSql(sql,(
zte_wms_db_callback)zUfiSms_GetFirstColumnInt,pTotalCount);return isSucess(
-result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0x1202+2996-0x1d36)]=
-{(0x1845+3563-0x2630)};snprintf(sql,sizeof(sql),
+result);}int zUfiSms_DeleteDraftSms(long iSmsId){char sql[(0x5cb+6757-0x1fb0)]={
+(0x707+4645-0x192c)};snprintf(sql,sizeof(sql),
"\x44\x45\x4c\x45\x54\x45\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x27\x25\x6c\x64\x27\x3b"
,ZTE_WMS_DB_SMS_TABLE,iSmsId);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL));}
-int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0x9a2+693-0xbd7)]={
-(0x947+5427-0x1e7a)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x81+9223-0x2488);}
+int zUfiSms_SetConcatMaxRefer(int ref){char sql[(0x82f+6461-0x20ec)]={
+(0x8b4+5053-0x1c71)};if(ZTE_WMS_MAX_CONCAT_REF<ref){ref=(0x1c7+953-0x580);}
snprintf(sql,sizeof(sql),
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x4d\x61\x78\x5f\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
,ZTE_WMS_DB_PARAMETER_TABLE,ref);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL))
-;}int zUfiSms_SetMaxReference(int ref){char sql[(0xfda+1104-0x13aa)]={
-(0x8c1+4273-0x1972)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x346+7794-0x21b8);}
+;}int zUfiSms_SetMaxReference(int ref){char sql[(0x736+3449-0x142f)]={
+(0x189f+2653-0x22fc)};if(ZTE_WMS_MAX_SMS_REF<ref){ref=(0x28d+342-0x3e3);}
snprintf(sql,sizeof(sql),
"\x55\x50\x44\x41\x54\x45\x20\x25\x73\x20\x53\x45\x54\x20\x4d\x61\x78\x5f\x53\x6d\x73\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x57\x48\x45\x52\x45\x20\x69\x64\x3d\x31\x3b"
,ZTE_WMS_DB_PARAMETER_TABLE,ref);return isSucess(zUfiSms_ExecSql(sql,NULL,NULL))
@@ -450,75 +452,75 @@
->hour,ptSmsDate->min,ptSmsDate->sec,ptSmsDate->timezone);result=zUfiSms_ExecSql
(strSQL,NULL,NULL);sqlite3_free(strSQL);return isSucess(result);}int
zUfiSms_GetFirstColumnParaInfo(void*fvarg,int columns,char**zresult,char**lname)
-{if(columns>=(0x1325+2231-0x1bdb)&&fvarg!=NULL){if(zresult[(0xabc+7078-0x2662)]
-!=NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
-zresult[(0x983+7529-0x26ec)],sizeof(para->sca)-(0xc54+2878-0x1791));para->
-mem_store=atoi(zresult[(0x1927+98-0x1988)]);para->tp_validity_period=atoi(
-zresult[(0x578+8007-0x24bd)]);para->status_report_on=atoi(zresult[
-(0x16df+2303-0x1fdb)]);para->sendfail_retry_on=atoi(zresult[(0x5e3+8355-0x2682)]
-);para->outdate_delete_on=atoi(zresult[(0x117+2377-0xa5b)]);(void)strncpy(para->
-default_store,zresult[(0x2bf+3476-0x104d)],sizeof(para->default_store)-
-(0xa69+6227-0x22bb));return SQLITE_OK;}}return SQLITE_ERROR;}int
+{if(columns>=(0x64c+7476-0x237f)&&fvarg!=NULL){if(zresult[(0x87a+6748-0x22d6)]!=
+NULL){T_zUfiSms_ParaInfo*para=(T_zUfiSms_ParaInfo*)fvarg;strncpy(para->sca,
+zresult[(0xaa5+2537-0x148e)],sizeof(para->sca)-(0x1835+499-0x1a27));para->
+mem_store=atoi(zresult[(0x4bb+6923-0x1fc5)]);para->tp_validity_period=atoi(
+zresult[(0x5d8+7953-0x24e7)]);para->status_report_on=atoi(zresult[
+(0x585+5141-0x1997)]);para->sendfail_retry_on=atoi(zresult[(0x2006+1660-0x267e)]
+);para->outdate_delete_on=atoi(zresult[(0xcf6+4637-0x1f0e)]);(void)strncpy(para
+->default_store,zresult[(0xb9f+243-0xc8c)],sizeof(para->default_store)-
+(0x12e4+4863-0x25e2));return SQLITE_OK;}}return SQLITE_ERROR;}int
zUfiSms_GetDbParameters(void){char*strSQL=
"\x53\x45\x4c\x45\x43\x54\x20\x53\x6d\x73\x5f\x53\x63\x61\x2c\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x2c\x54\x70\x5f\x56\x61\x6c\x69\x64\x69\x74\x79\x2c\x53\x6d\x73\x5f\x52\x65\x70\x6f\x72\x74\x2c\x53\x65\x6e\x64\x5f\x52\x65\x74\x72\x79\x2c\x4f\x75\x74\x64\x61\x74\x65\x5f\x44\x65\x6c\x65\x74\x65\x2c\x44\x65\x66\x61\x75\x6c\x74\x5f\x53\x74\x6f\x72\x65\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_PARAMETER_TABLE"\x3b";memset(&g_zUfiSms_CurSmsPara,
-(0x21bb+393-0x2344),sizeof(T_zUfiSms_ParaInfo));return isSucess(zUfiSms_ExecSql(
+(0x562+4540-0x171e),sizeof(T_zUfiSms_ParaInfo));return isSucess(zUfiSms_ExecSql(
strSQL,zUfiSms_GetFirstColumnParaInfo,&g_zUfiSms_CurSmsPara));}int
zUfiSms_GetSendContent(void*fvarg,int column,char**zresult,char**lname){
-T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0x12d2+3081-0x1eda)
-&¶!=NULL)(void)strncpy(para->buf_addr,zresult[(0x55a+2898-0x10ac)],para->
-buf_len-(0x4cd+2400-0xe2c));return(0x705+7785-0x256e);}int zUfiSms_GetSmsContent
-(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={(0xa10+5612-0x1ffc)};char*
-strSQL=
+T_zUfiSms_BufInfo*para=(T_zUfiSms_BufInfo*)fvarg;if(column>=(0x882+1734-0xf47)&&
+para!=NULL)(void)strncpy(para->buf_addr,zresult[(0x69a+4230-0x1720)],para->
+buf_len-(0x1399+2699-0x1e23));return(0x695+4906-0x19bf);}int
+zUfiSms_GetSmsContent(char*pSmsBuf,int len){T_zUfiSms_BufInfo buf_info={
+(0x6d5+8019-0x2628)};char*strSQL=
"\x53\x45\x4c\x45\x43\x54\x20\x6d\x73\x67\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x20\x46\x52\x4f\x4d\x20"
ZTE_WMS_DB_SEND_CONTENT_TABLE"\x3b";buf_info.buf_addr=pSmsBuf;buf_info.buf_len=
-len;memset(buf_info.buf_addr,(0x139b+3287-0x2072),len);return isSucess(
+len;memset(buf_info.buf_addr,(0x495+8625-0x2646),len);return isSucess(
zUfiSms_ExecSql(strSQL,zUfiSms_GetSendContent,&buf_info));}int
zUfiSms_SearchConcatSmsInDb(T_zUfiSms_DbStoreData*ptDbSaveData,char*pMemStore){
-char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0xb5+9521-0x25e5);switch(
+char*sql=NULL;sqlite3_stmt*stmt=NULL;int id=-(0x9b+2174-0x918);switch(
ptDbSaveData->tag){case WMS_TAG_TYPE_MO_SENT_V01:case
WMS_TAG_TYPE_MO_NOT_SENT_V01:{sql=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x28\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x20\x4f\x52\x20\x54\x61\x67\x3d\x20\x27\x25\x64\x27\x29\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x485+7894-0x235b)],
-ptDbSaveData->concat_info[(0x10d+8983-0x2423)],pMemStore,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x233f+698-0x25f9)],
+ptDbSaveData->concat_info[(0xfe7+4500-0x217a)],pMemStore,
WMS_TAG_TYPE_MO_SENT_V01,WMS_TAG_TYPE_MO_NOT_SENT_V01);break;}case
-(0x6ba+5716-0x1d0a):{sql=sqlite3_mprintf(
+(0xa18+1776-0x1104):{sql=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0xb9b+5044-0x1f4f)],
-ptDbSaveData->concat_info[(0x9b2+6014-0x212f)],pMemStore,(0x18b+8930-0x2469));
-break;}case WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=
-sqlite3_mprintf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x2487+33-0x24a8)],ptDbSaveData
+->concat_info[(0x17c2+3437-0x252e)],pMemStore,(0xc2b+5463-0x217e));break;}case
+WMS_TAG_TYPE_MT_READ_V01:case WMS_TAG_TYPE_MT_NOT_READ_V01:{sql=sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x20\x41\x4e\x44\x20\x28\x54\x61\x67\x20\x3d\x20\x27\x25\x64\x27\x20\x4f\x52\x20\x54\x61\x67\x3d\x20\x27\x25\x64\x27\x29\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x765+3365-0x148a)],
-ptDbSaveData->concat_info[(0x49c+1197-0x948)],pMemStore,WMS_TAG_TYPE_MT_READ_V01
-,WMS_TAG_TYPE_MT_NOT_READ_V01);break;}default:{sql=sqlite3_mprintf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x115f+4739-0x23e2)],
+ptDbSaveData->concat_info[(0x16a3+696-0x195a)],pMemStore,
+WMS_TAG_TYPE_MT_READ_V01,WMS_TAG_TYPE_MT_NOT_READ_V01);break;}default:{sql=
+sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x43\x63\x5f\x53\x65\x71\x2c\x69\x64\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x4e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x1458+3164-0x20b4)],
-ptDbSaveData->concat_info[(0xbab+6747-0x2605)],pMemStore);at_print(LOG_ERR,
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0x646+6394-0x1f40)],
+ptDbSaveData->concat_info[(0x3e1+2663-0xe47)],pMemStore);at_print(LOG_ERR,
"\x74\x61\x67\x20\x25\x64\x20\x69\x73\x20\x75\x6e\x6b\x6e\x6f\x77\x6e",
ptDbSaveData->tag);break;}}printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x3a\x25\x73" "\n",sql);if(
-sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0x11c8+1567-0x17e6),&stmt,
-(0x7f7+7207-0x241e))!=SQLITE_OK){at_print(LOG_ERR,
+sqlite3_prepare(g_zUfiSms_DbPointer,sql,-(0x271+4376-0x1388),&stmt,
+(0x366+1194-0x810))!=SQLITE_OK){at_print(LOG_ERR,
"\x63\x61\x6e\x20\x6e\x6f\x74\x20\x65\x78\x65\x63\x20\x73\x71\x6c\x2c\x73\x71\x6c\x69\x74\x65\x33\x5f\x65\x72\x72\x6d\x73\x67\x3a\x25\x73\x2e" "\n"
,sqlite3_errmsg(g_zUfiSms_DbPointer));sqlite3_free(sql);return-
-(0x18f7+1157-0x1d7b);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
-(0x1798+2090-0x1fc2);char**out_result=NULL;char*column_text=sqlite3_column_text(
-stmt,(0x15f+414-0x2fd));int count=-(0xf07+2791-0x19ed);if(column_text!=NULL)
-count=zUfiSms_SplitString(column_text,&out_result,((char)(0x449+7427-0x2111)));
-for(j=(0xada+6097-0x22ab);j<count;j++){if((0x69c+6398-0x1f9a)==strcmp(out_result
-[j],"")){if(j+(0x1406+2913-0x1f66)==ptDbSaveData->concat_info[
-(0x11d9+1422-0x1765)]){id=sqlite3_column_int(stmt,(0x723+2518-0x10f8));break;}}}
-if(out_result!=NULL){free(out_result);out_result=NULL;}if(-(0x1482+1282-0x1983)
+(0x1a48+3223-0x26de);}while(SQLITE_ROW==sqlite3_step(stmt)){int j=
+(0x86d+1382-0xdd3);char**out_result=NULL;char*column_text=sqlite3_column_text(
+stmt,(0x16b6+142-0x1744));int count=-(0x5d9+3002-0x1192);if(column_text!=NULL)
+count=zUfiSms_SplitString(column_text,&out_result,((char)(0xb4+6869-0x1b4e)));
+for(j=(0x22cc+596-0x2520);j<count;j++){if((0xd5b+6356-0x262f)==strcmp(out_result
+[j],"")){if(j+(0x161+7232-0x1da0)==ptDbSaveData->concat_info[
+(0x1731+1026-0x1b31)]){id=sqlite3_column_int(stmt,(0x19f0+2194-0x2281));break;}}
+}if(out_result!=NULL){free(out_result);out_result=NULL;}if(-(0x1890+2088-0x20b7)
!=id){break;}}(void)sqlite3_finalize(stmt);sqlite3_free(sql);return id;}int
zUfiSms_CheckDbOutdateSms_Callback(void*fvarg,int columns,char**zresult,char**
-lname){if(fvarg!=NULL&&columns>=(0x8d6+4828-0x1bb1)){if(zresult[
-(0xed0+650-0x115a)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
-result->id[result->all_or_count]=atoi(zresult[(0xe75+5327-0x2344)]);result->
+lname){if(fvarg!=NULL&&columns>=(0x2c8+3057-0xeb8)){if(zresult[
+(0x1d74+1740-0x2440)]!=NULL){T_zUfiSms_DelReq*result=(T_zUfiSms_DelReq*)fvarg;
+result->id[result->all_or_count]=atoi(zresult[(0x260+8277-0x22b5)]);result->
all_or_count++;return SQLITE_OK;}}return SQLITE_ERROR;}VOID
zUfiSms_CheckDbOutdateSms(const char*pDbTable,T_zUfiSms_DelReq*pSmsDel){char
-acSql[(0x2f2+6699-0x1c9d)]={(0xccd+4100-0x1cd1)};struct timeval tp;if(
-(0x95a+5670-0x1f80)!=gettimeofday(&tp,NULL)){printf(
+acSql[(0x108c+2203-0x18a7)]={(0x17+6103-0x17ee)};struct timeval tp;if(
+(0xf2f+1483-0x14fa)!=gettimeofday(&tp,NULL)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x67\x65\x74\x74\x69\x6d\x65\x6f\x66\x64\x61\x79\x20\x65\x72\x72\x6f\x72\x21\x21\x21"
);return;}if(tp.tv_sec<=OUTDATEINTERVAL){return;}snprintf(acSql,sizeof(acSql),
"\x53\x45\x4c\x45\x43\x54\x20\x69\x64\x20\x46\x52\x4f\x4d\x20\x25\x73\x20\x57\x48\x45\x52\x45\x20\x4d\x6b\x74\x69\x6d\x65\x3c\x27\x25\x75\x27\x20\x41\x4e\x44\x20\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65\x3d\x27\x25\x73\x27\x3b"
@@ -528,21 +530,21 @@
"\x6f\x70\x65\x6e\x20\x74\x61\x62\x6c\x65\x20\x25\x73\x20\x66\x61\x69\x6c\x65\x64"
,ZTE_WMS_DB_CMD_STATUS_TABLE);}return;}int
zUfiSms_GetCurrentRecvTotalSeq_Callback(void*fvarg,int column,char**zresult,char
-**lname){if(fvarg!=NULL&&column>=(0x484+5694-0x1ac0)){if(zresult[
-(0x838+4996-0x1bbc)]!=NULL&&zresult[(0x480+6744-0x1ed7)]!=NULL){SMS_MSG_INFO*msg
-=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x1436+2040-0x1c2e),sizeof(msg->id));
-memset(msg->total_seq,(0xd26+1597-0x1363),sizeof(msg->total_seq));strncpy(msg->
-id,zresult[(0x1092+4235-0x211d)],sizeof(msg->id)-(0x1555+4300-0x2620));strncpy(
-msg->total_seq,zresult[(0x8d2+5669-0x1ef6)],sizeof(msg->total_seq)-
-(0x905+4725-0x1b79));printf(
+**lname){if(fvarg!=NULL&&column>=(0x56b+5321-0x1a32)){if(zresult[
+(0x6b1+5269-0x1b46)]!=NULL&&zresult[(0x14d4+135-0x155a)]!=NULL){SMS_MSG_INFO*msg
+=(SMS_MSG_INFO*)fvarg;memset(msg->id,(0x970+853-0xcc5),sizeof(msg->id));memset(
+msg->total_seq,(0xcfb+893-0x1078),sizeof(msg->total_seq));strncpy(msg->id,
+zresult[(0x35b+8358-0x2401)],sizeof(msg->id)-(0xefb+338-0x104c));strncpy(msg->
+total_seq,zresult[(0x207+3264-0xec6)],sizeof(msg->total_seq)-(0x986+6684-0x23a1)
+);printf(
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x43\x75\x72\x72\x65\x6e\x74\x52\x65\x63\x76\x54\x6f\x74\x61\x6c\x53\x65\x71\x5f\x43\x61\x6c\x6c\x62\x61\x63\x6b\x20\x69\x64\x20\x3d\x20\x25\x73\x2c\x20\x74\x6f\x74\x61\x6c\x5f\x73\x65\x71\x20\x3d\x20\x25\x73" "\n"
,msg->id,msg->total_seq);return SQLITE_OK;}}return SQLITE_ERROR;}int
zUfiSms_GetCurrentRecvTotalSeq(T_zUfiSms_DbStoreData*ptDbSaveData,SMS_MSG_INFO*
pmsg){T_zUfiSms_DbResult result=ZTE_WMS_DB_OK;char*strSQL=NULL;strSQL=
sqlite3_mprintf(
"\x53\x45\x4c\x45\x43\x54\x20\x69\x64\x2c\x20\x43\x63\x5f\x4e\x75\x6d\x20\x46\x52\x4f\x4d\x20\x73\x6d\x73\x20\x57\x48\x45\x52\x45\x20\x20\x6e\x75\x6d\x62\x65\x72\x3d\x27\x25\x71\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x52\x65\x66\x3d\x27\x25\x64\x27\x20\x41\x4e\x44\x20\x43\x63\x5f\x54\x6f\x74\x61\x6c\x3d\x27\x25\x64\x27\x3b"
-,ptDbSaveData->number,ptDbSaveData->concat_info[(0x991+1686-0x1027)],
-ptDbSaveData->concat_info[(0x14e2+3980-0x246d)]);printf(
+,ptDbSaveData->number,ptDbSaveData->concat_info[(0xa3c+6601-0x2405)],
+ptDbSaveData->concat_info[(0x1b9b+1413-0x211f)]);printf(
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x43\x75\x72\x72\x65\x6e\x74\x52\x65\x63\x76\x54\x6f\x74\x61\x6c\x53\x65\x71\x20\x73\x71\x6c\x20\x3a\x20\x25\x73\x20" "\n"
,strSQL);result=zUfiSms_ExecSql(strSQL,zUfiSms_GetCurrentRecvTotalSeq_Callback,
pmsg);sqlite3_free(strSQL);return isSucess(result);}
diff --git a/ap/app/zte_comm/sms/src/sms_fnc.c b/ap/app/zte_comm/sms/src/sms_fnc.c
index dafb4ec..eeff087 100755
--- a/ap/app/zte_comm/sms/src/sms_fnc.c
+++ b/ap/app/zte_comm/sms/src/sms_fnc.c
@@ -8,22 +8,22 @@
#include "sms_fnc.h"
#include "sms_db.h"
#include "sms_code.h"
-#define SMS_RETRY_COUNT (0x1567+740-0x1848)
-#define SHORT_INT_LEN (0x433+1092-0x871)
+#define SMS_RETRY_COUNT (0xac7+2690-0x1546)
+#define SHORT_INT_LEN (0xd6b+5994-0x24cf)
SMS_LOCATION g_zUfiSms_CurLocation=SMS_LOCATION_SIM;int
-g_zUfiSms_ConcatSmsReference=(0xf9a+185-0x1053);T_zUfiSms_ParaInfo
+g_zUfiSms_ConcatSmsReference=(0xca7+5012-0x203b);T_zUfiSms_ParaInfo
g_zUfiSms_CurSmsPara={"",WMS_STORAGE_TYPE_UIM_V01,
-ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x6d7+5280-0x1b77),
-(0xa6d+2531-0x1450),(0x1556+1155-0x19d9),"\x6e\x76"};int g_zUfiSms_Language=
-NOT_DEFINE_LANGUAGE;int g_zUfiSms_Dcs=(0xd4d+935-0x10f4);unsigned long
-g_zUfiSms_StoreCapablity[ZTE_WMS_MEMORY_MAX]={(0xd8f+1588-0x135f),
-ZTE_WMS_DB_MSG_COUNT_MAX};T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM
-g_zUfiSms_SendingSms;UINT16 g_zUfiSms_IsLanguageShift=(0x74f+1049-0xb68);extern
-int g_zUfiSms_MsgRefer;extern T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern
-T_zUfiSms_DelIndexInfo g_deleteIndex;extern T_zUfiSms_ModifyIndexInfo
-g_modifyIndex;extern T_zUfiSms_ModifySms g_zUfiSms_modifyMsg;extern UINT8
-g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX];extern int g_zUfiSms_ConcatTotalNum;
-extern T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;extern T_zUfiSms_GroupInfo
+ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW,(0x160+1379-0x6c3),(0xf46+4192-0x1fa6)
+,(0xec3+4771-0x2166),"\x6e\x76"};int g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;int
+g_zUfiSms_Dcs=(0x1437+3028-0x200b);unsigned long g_zUfiSms_StoreCapablity[
+ZTE_WMS_MEMORY_MAX]={(0x5cd+8104-0x2511),ZTE_WMS_DB_MSG_COUNT_MAX};
+T_zSms_SendSmsReq g_zUfiSms_FinalCmgsBuf;SMS_PARAM g_zUfiSms_SendingSms;UINT16
+g_zUfiSms_IsLanguageShift=(0xa68+6670-0x2476);extern int g_zUfiSms_MsgRefer;
+extern T_zUfiSms_DelSms g_zUfiSms_DelMsg;extern T_zUfiSms_DelIndexInfo
+g_deleteIndex;extern T_zUfiSms_ModifyIndexInfo g_modifyIndex;extern
+T_zUfiSms_ModifySms g_zUfiSms_modifyMsg;extern UINT8 g_zUfiSms_MemFullFlag[
+ZTE_WMS_MEMORY_MAX];extern int g_zUfiSms_ConcatTotalNum;extern
+T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;extern T_zUfiSms_GroupInfo
g_zUfiSms_GroupSms;extern int g_zUfiSms_UnitLen;extern UINT8
g_zUfiSms_IsConcatSendSuc;extern int g_zUfiSms_SendFailedCount;extern
T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];extern
@@ -31,16 +31,16 @@
eLocation){switch(eLocation){case SMS_LOCATION_SIM:{g_zUfiSms_CurLocation=
SMS_LOCATION_SIM;break;}case SMS_LOCATION_ME:{g_zUfiSms_CurLocation=
SMS_LOCATION_ME;break;}default:{return;}}}int zUfiSms_SetDeleteInfo(
-T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0x163+6612-0x1b05)];int i=
-(0x1059+1-0x105a);g_zUfiSms_DelMsg.nv_count=(0xc84+4493-0x1e11);g_zUfiSms_DelMsg
-.nv_index=(0xc2b+1256-0x1113);g_zUfiSms_DelMsg.sim_count=(0x4e9+7134-0x20c7);
-g_zUfiSms_DelMsg.sim_index=(0x2097+660-0x232b);for(i=(0x1868+2808-0x2360);i<
-ptDelMsg->all_or_count;i++){memset(acStorePos,(0xde8+4614-0x1fee),sizeof(
+T_zUfiSms_DelReq*ptDelMsg){char acStorePos[(0x1138+4219-0x2181)];int i=
+(0x797+513-0x998);g_zUfiSms_DelMsg.nv_count=(0x167d+708-0x1941);g_zUfiSms_DelMsg
+.nv_index=(0xacc+2390-0x1422);g_zUfiSms_DelMsg.sim_count=(0x1005+3655-0x1e4c);
+g_zUfiSms_DelMsg.sim_index=(0x1340+3528-0x2108);for(i=(0x1d49+721-0x201a);i<
+ptDelMsg->all_or_count;i++){memset(acStorePos,(0x90f+3104-0x152f),sizeof(
acStorePos));if(ZUFI_FAIL==zUfiSms_GetStorePosById("Mem_Store",acStorePos,sizeof
-(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if((0x2230+416-0x23d0)==strcmp(
+(acStorePos),ptDelMsg->id[i])){return ZUFI_FAIL;}if((0xa43+2775-0x151a)==strcmp(
acStorePos,ZTE_WMS_DB_NV_TABLE)){g_zUfiSms_DelMsg.nv_id[g_zUfiSms_DelMsg.
nv_count]=ptDelMsg->id[i];g_zUfiSms_DelMsg.nv_count++;g_zUfiSms_DelMsg.
-nv_index_count++;}else if((0x113d+870-0x14a3)==strcmp(acStorePos,
+nv_index_count++;}else if((0x606+6951-0x212d)==strcmp(acStorePos,
ZTE_WMS_DB_SIM_TABLE)){g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_count]=
ptDelMsg->id[i];g_zUfiSms_DelMsg.sim_count++;g_zUfiSms_DelMsg.sim_index_count++;
}}return ZUFI_SUCC;}void zUfiSms_ChangeMainState(T_zUfiSms_MainState iNewState){
@@ -67,67 +67,67 @@
SMS_STATE_SENDED:case SMS_STATE_DELING:case SMS_STATE_DELED:case
SMS_STATE_RECVING:case SMS_STATE_RECVED:case SMS_STATE_DELSAVING:case
SMS_STATE_DELSAVED:{break;}default:{return;}}sc_cfg_set(NV_SMS_STATE,
-ptStrSmsState[iNewState]);}int zUfiSms_CheckStoreDir(void){if(-(0xaeb+719-0xdb9)
-==access(ZTE_WMS_DB_DIR,F_OK)){printf(
-"\x5b\x53\x4d\x53\x5d\x20\x7a\x74\x65\x5f\x73\x6d\x73\x3a\x25\x73\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x2c\x73\x6f\x63\x72\x65\x61\x74\x65\x20\x69\x74\x2e" "\n"
-,ZTE_WMS_DB_DIR);if(-(0x1979+941-0x1d25)==mkdir(ZTE_WMS_DB_DIR,
-(0x1702+2001-0x1cd4))){printf(
-"\x5b\x53\x4d\x53\x5d\x20\x7a\x74\x65\x5f\x73\x6d\x73\x3a\x66\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x63\x72\x65\x61\x74\x65\x20\x64\x62\x20\x64\x69\x72\x2e" "\n"
+ptStrSmsState[iNewState]);}int zUfiSms_CheckStoreDir(void){if(-
+(0xdd0+1623-0x1426)==access(ZTE_WMS_DB_DIR,F_OK)){printf(
+"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x25\x73\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x2c\x73\x6f\x63\x72\x65\x61\x74\x65\x20\x69\x74\x2e" "\n"
+,ZTE_WMS_DB_DIR);if(-(0x61+7462-0x1d86)==mkdir(ZTE_WMS_DB_DIR,
+(0x1add+3141-0x2523))){printf(
+"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x66\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x63\x72\x65\x61\x74\x65\x20\x64\x62\x20\x64\x69\x72\x2e" "\n"
);return ZUFI_FAIL;}}return ZUFI_SUCC;}int zUfiSms_CheckSmsDb(void){if(-
-(0x1557+104-0x15be)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
-"\x5b\x53\x4d\x53\x5d\x20\x7a\x74\x65\x5f\x73\x6d\x73\x3a\x25\x73\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x2c\x73\x6f\x20\x67\x65\x74\x20\x64\x65\x66\x61\x75\x6c\x74\x20\x63\x6f\x6e\x66\x69\x67\x2e" "\n"
+(0x5a0+6280-0x1e27)==access(ZTE_WMS_DB_PATH,F_OK)){printf(
+"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x25\x73\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x2c\x73\x6f\x20\x67\x65\x74\x20\x64\x65\x66\x61\x75\x6c\x74\x20\x63\x6f\x6e\x66\x69\x67\x2e" "\n"
,ZTE_WMS_DB_PATH);return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x3d\x3d\x3d\x3d\x3d\x3d\x25\x73\x20\x65\x78\x69\x73\x74\x2e" "\n"
,ZTE_WMS_DB_PATH);return ZUFI_SUCC;}void zUfiSms_GetDefaultCfgPara(void){
-unsigned char sts_flag=(0x1a88+1222-0x1f4e);unsigned char mem_store_flag=
-(0x143b+4415-0x257a);unsigned int tp_validity_period=(0x293+2178-0xb15);char
-Temp_sms_vp[(0x2b3+8455-0x23b2)]={(0x1974+1700-0x2018)};CHAR reportEnable[
-(0x2c6+1896-0x9fc)]={(0x10d0+4650-0x22fa)};CHAR smsLocation[(0xfe7+2363-0x18f0)]
-={(0x1aaa+3123-0x26dd)};CHAR sendfailRetry[(0x1d6b+1139-0x21ac)]={
-(0x12a1+19-0x12b4)};CHAR outdateDelete[(0xd34+53-0xd37)]={(0x548+2832-0x1058)};
-CHAR defaultStore[(0x2054+617-0x228b)]={(0xfaa+2293-0x189f)};sc_cfg_get(
+unsigned char sts_flag=(0xecc+5325-0x2399);unsigned char mem_store_flag=
+(0x918+3146-0x1562);unsigned int tp_validity_period=(0x7e5+356-0x949);char
+Temp_sms_vp[(0x89f+5234-0x1d09)]={(0xad3+7196-0x26ef)};CHAR reportEnable[
+(0x9fc+6139-0x21c5)]={(0x227+7278-0x1e95)};CHAR smsLocation[(0x6df+124-0x729)]={
+(0x1615+231-0x16fc)};CHAR sendfailRetry[(0xacb+6444-0x23c5)]={
+(0xfdc+3101-0x1bf9)};CHAR outdateDelete[(0x624+6369-0x1ed3)]={(0xa7d+354-0xbdf)}
+;CHAR defaultStore[(0x19df+884-0x1d21)]={(0xe96+4701-0x20f3)};sc_cfg_get(
NV_REPORT_ENABLE,reportEnable,sizeof(reportEnable));sc_cfg_get(
NV_SMS_LOCATION_SET,smsLocation,sizeof(smsLocation));sc_cfg_get(
NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));sc_cfg_get(
NV_OUTDATE_DELETE,outdateDelete,sizeof(outdateDelete));sc_cfg_get(
-NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0x23d+2640-0xc8d)==
-strcmp(reportEnable,"\x31")){sts_flag=(0x1886+3259-0x2540);}g_zUfiSms_CurSmsPara
-.status_report_on=sts_flag;if((0xb2a+2887-0x1671)==strcmp(smsLocation,"\x4d\x45"
-)){mem_store_flag=(0xbd+8468-0x21d1);}else{mem_store_flag=(0x93b+2427-0x12b5);}
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x7da+6192-0x200a)==
+NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0x16b9+1734-0x1d7f)==
+strcmp(reportEnable,"\x31")){sts_flag=(0x623+1274-0xb1c);}g_zUfiSms_CurSmsPara.
+status_report_on=sts_flag;if((0x924+1832-0x104c)==strcmp(smsLocation,"\x4d\x45")
+){mem_store_flag=(0x86d+2673-0x12de);}else{mem_store_flag=(0x33c+3557-0x1120);}
+g_zUfiSms_CurSmsPara.mem_store=(unsigned int)((0x32c+4127-0x134b)==
mem_store_flag?WMS_STORAGE_TYPE_NV_V01:WMS_STORAGE_TYPE_UIM_V01);sc_cfg_get(
NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));tp_validity_period=
-(0xc0d+1387-0x1079);if((0x13b0+1293-0x18bd)==strncmp(Temp_sms_vp,
-"\x6c\x6f\x6e\x67\x65\x73\x74",(0x12fb+3815-0x21db))){tp_validity_period=
-(0x160b+3582-0x230a);}if((0x858+5935-0x1f87)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x5f\x64\x61\x79",(0x9c8+6718-0x23ff))){tp_validity_period=
-(0x957+1479-0xe77);}if((0xc8b+277-0xda0)==strncmp(Temp_sms_vp,
-"\x6f\x6e\x65\x77\x65\x65\x6b",(0x251+5761-0x18cb))){tp_validity_period=
-(0x11d8+3508-0x1edf);}if((0x152d+606-0x178b)==strncmp(Temp_sms_vp,
-"\x74\x77\x65\x6c\x76\x65\x68",(0x12c2+3201-0x1f3c))){tp_validity_period=
-(0x1df5+737-0x2047);}g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;
-if((0x141d+4429-0x256a)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x9ab+6321-0x225b);}else{g_zUfiSms_CurSmsPara.
-sendfail_retry_on=(0x787+2650-0x11e1);}if((0xb93+1497-0x116c)==strcmp(
-outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0x285+8746-0x24ae);}else{g_zUfiSms_CurSmsPara.outdate_delete_on=
-(0x70c+4147-0x173f);}if((0x15d9+4325-0x26be)==strcmp(defaultStore,"\x73\x69\x6d"
-)){strncpy(g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x5a0+4534-0x1755));}else{strncpy(
-g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.
-default_store)-(0x2248+181-0x22fc));}}void zUfiSms_GetDefaultPara(void){memset(&
-g_zUfiSms_CurSmsPara,(0xd43+5806-0x23f1),sizeof(T_zUfiSms_ParaInfo));
-g_zUfiSms_CurSmsPara.status_report_on=(0x17e5+487-0x19cc);g_zUfiSms_CurSmsPara.
+(0x575+2969-0x100f);if((0xb6c+2801-0x165d)==strncmp(Temp_sms_vp,
+"\x6c\x6f\x6e\x67\x65\x73\x74",(0x2a5+1189-0x743))){tp_validity_period=
+(0x9d9+6172-0x20f6);}if((0x1529+2298-0x1e23)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0x127d+340-0x13ca))){tp_validity_period=
+(0x1b29+2618-0x24bc);}if((0x5a7+4982-0x191d)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0xd5b+3607-0x1b6b))){tp_validity_period=
+(0x20dd+1462-0x25e6);}if((0x140d+1853-0x1b4a)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0x2091+1133-0x24f7))){tp_validity_period=
+(0x463+7926-0x22ca);}g_zUfiSms_CurSmsPara.tp_validity_period=tp_validity_period;
+if((0x850+6293-0x20e5)==strcmp(sendfailRetry,"\x31")){g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0x1f60+50-0x1f91);}else{g_zUfiSms_CurSmsPara.
+sendfail_retry_on=(0x1693+3957-0x2608);}if((0x1558+4182-0x25ae)==strcmp(
+outdateDelete,"\x31")){g_zUfiSms_CurSmsPara.outdate_delete_on=(0xac+1732-0x76f);
+}else{g_zUfiSms_CurSmsPara.outdate_delete_on=(0xc18+2768-0x16e8);}if(
+(0xb64+6084-0x2328)==strcmp(defaultStore,"\x73\x69\x6d")){strncpy(
+g_zUfiSms_CurSmsPara.default_store,"\x73\x69\x6d",sizeof(g_zUfiSms_CurSmsPara.
+default_store)-(0x35f+1631-0x9bd));}else{strncpy(g_zUfiSms_CurSmsPara.
+default_store,"\x6e\x76",sizeof(g_zUfiSms_CurSmsPara.default_store)-
+(0x1b0+8072-0x2137));}}void zUfiSms_GetDefaultPara(void){memset(&
+g_zUfiSms_CurSmsPara,(0x148a+570-0x16c4),sizeof(T_zUfiSms_ParaInfo));
+g_zUfiSms_CurSmsPara.status_report_on=(0xaca+2814-0x15c8);g_zUfiSms_CurSmsPara.
mem_store=WMS_STORAGE_TYPE_NV_V01;g_zUfiSms_CurSmsPara.tp_validity_period=
ZTE_WMS_SMS_DEFAULT_TP_VALIDITY_PERIOD_GW;g_zUfiSms_CurSmsPara.sendfail_retry_on
-=(0x1317+4947-0x266a);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x80d+4488-0x1995)
-;strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
-g_zUfiSms_CurSmsPara.default_store)-(0x8a7+5400-0x1dbe));}
-#if (0x1cf0+390-0x1e76)
+=(0x733+258-0x835);g_zUfiSms_CurSmsPara.outdate_delete_on=(0x128d+657-0x151e);
+strncpy(g_zUfiSms_CurSmsPara.default_store,"\x6e\x76",sizeof(
+g_zUfiSms_CurSmsPara.default_store)-(0x2530+455-0x26f6));}
+#if (0x254+6416-0x1b64)
T_zUfiSms_CmdStatus zUfiSms_SetParameters(T_zUfiSms_CmdMsgBuff*ptSmsBuffer){
T_zUfiSms_ParaInfo*ptSmsParameter=NULL;T_zUfiSms_ParaInfo tNewSmsParameter={
-(0xe4+8312-0x215c)};if(NULL==ptSmsBuffer){return WMS_CMD_FAILED;}ptSmsParameter=
-(T_zUfiSms_ParaInfo*)(&(ptSmsBuffer->cmd_info.set_sms_para));memcpy((void*)&
+(0x5e2+394-0x76c)};if(NULL==ptSmsBuffer){return WMS_CMD_FAILED;}ptSmsParameter=(
+T_zUfiSms_ParaInfo*)(&(ptSmsBuffer->cmd_info.set_sms_para));memcpy((void*)&
tNewSmsParameter,(void*)ptSmsParameter,sizeof(T_zUfiSms_ParaInfo));
#ifndef TSP_MODEL
if((g_zUfiSms_CurSmsPara.mem_store!=ptSmsParameter->mem_store)){if(
@@ -135,31 +135,31 @@
"\x73\x65\x74\x20\x63\x66\x67\x20\x72\x6f\x75\x74\x65\x73\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return WMS_CMD_FAILED;}}
#endif
-if(strlen(ptSmsParameter->sca)!=(0x1b4c+478-0x1d2a)){if(ZUFI_SMS_FAILURE==
+if(strlen(ptSmsParameter->sca)!=(0xa14+5182-0x1e52)){if(ZUFI_SMS_FAILURE==
zUfiSms_SetCsca(ptSmsParameter)){return WMS_CMD_FAILED;}}if(ZUFI_SMS_FAILURE==
zUfiSms_SetDbParameters(ptSmsParameter)){return WMS_CMD_FAILED;}else{sc_cfg_set(
"\x73\x6d\x73\x5f\x63\x65\x6e\x74\x65\x72\x5f\x6e\x75\x6d",ptSmsParameter->sca);
}memcpy((void*)&g_zUfiSms_CurSmsPara,(void*)&tNewSmsParameter,sizeof(
T_zUfiSms_ParaInfo));return WMS_CMD_SUCCESS;}
#endif
-int zUfiSms_LoadSmsPara(){int count=(0x736+4072-0x171e);if(ZUFI_SUCC!=
+int zUfiSms_LoadSmsPara(){int count=(0x6c3+3596-0x14cf);if(ZUFI_SUCC!=
zUfiSms_IsDbEmpty(ZTE_WMS_DB_PARAMETER_TABLE,&count)){return ZUFI_FAIL;}if(count
-==(0x1bc0+1769-0x22a9)){zUfiSms_GetDefaultCfgPara();if((0x13c9+3229-0x2066)!=
+==(0x1c8b+1314-0x21ad)){zUfiSms_GetDefaultCfgPara();if((0x9dc+4042-0x19a6)!=
zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){return ZUFI_FAIL;}}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x68\x61\x76\x65\x20\x64\x65\x66\x61\x75\x6c\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x20\x69\x6e\x20\x64\x61\x74\x61\x62\x61\x73\x65\x2e" "\n"
);if(ZUFI_SUCC!=zUfiSms_GetDbParameters()){return ZUFI_FAIL;}if(
WMS_STORAGE_TYPE_NV_V01!=g_zUfiSms_CurSmsPara.mem_store&&
WMS_STORAGE_TYPE_UIM_V01!=g_zUfiSms_CurSmsPara.mem_store){zUfiSms_GetDefaultPara
-();if((0x7b+8083-0x200e)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){printf
-(
+();if((0x1fd0+1023-0x23cf)!=zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
+printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x20\x66\x61\x69\x6c\x73\x20\x32\x2e" "\n"
);return ZUFI_FAIL;}}}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4c\x6f\x61\x64\x53\x6d\x73\x50\x61\x72\x61\x20\x73\x75\x63\x63\x2e" "\n"
);return ZUFI_SUCC;}int zUfiSms_CheckMemoryFull(T_zUfiSms_MemoryType mem_store){
-int total_count=(0x8a0+5761-0x1f21);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
+int total_count=(0x1272+2581-0x1c87);if((ZTE_WMS_MEMORY_SIM==mem_store)||(
ZTE_WMS_MEMORY_MAX==mem_store)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
ZTE_WMS_DB_SIM_TABLE,&total_count)){printf(
-"\x5b\x53\x4d\x53\x5d\x20\x7a\x74\x65\x5f\x73\x6d\x73\x3a\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x20\x74\x6f\x74\x61\x6c\x20\x63\x6f\x75\x6e\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
+"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x20\x74\x6f\x74\x61\x6c\x20\x63\x6f\x75\x6e\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
);return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x68\x65\x63\x6b\x4d\x65\x6d\x6f\x72\x79\x46\x75\x6c\x6c\x20\x67\x65\x74\x20\x73\x69\x6d\x20\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2e" "\n"
,total_count);if(total_count>=(int)g_zUfiSms_StoreCapablity[
@@ -167,60 +167,60 @@
}else{g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_UIM_V01]=FALSE;}}if((
ZTE_WMS_MEMORY_NV==mem_store)||(ZTE_WMS_MEMORY_MAX==mem_store)){if(ZUFI_FAIL==
zUfiSms_GetTotalCount(ZTE_WMS_DB_NV_TABLE,&total_count)){printf(
-"\x5b\x53\x4d\x53\x5d\x20\x7a\x74\x65\x5f\x73\x6d\x73\x3a\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x20\x74\x6f\x74\x61\x6c\x20\x63\x6f\x75\x6e\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
+"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x3a\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x20\x74\x6f\x74\x61\x6c\x20\x63\x6f\x75\x6e\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
);return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x68\x65\x63\x6b\x4d\x65\x6d\x6f\x72\x79\x46\x75\x6c\x6c\x20\x67\x65\x74\x20\x4d\x45\x20\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2e" "\n"
,total_count);if(total_count>=(int)g_zUfiSms_StoreCapablity[
WMS_STORAGE_TYPE_NV_V01]){g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]=TRUE;}
else{g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]=FALSE;}}return ZUFI_SUCC;}
-int zUfiSms_SetStorePara(char*mem_store){if((0x13c0+4465-0x2531)==strcmp(
+int zUfiSms_SetStorePara(char*mem_store){if((0x224f+1159-0x26d6)==strcmp(
mem_store,"\x53\x4d")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)
WMS_STORAGE_TYPE_UIM_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,"\x30");}else if(
-(0x569+1011-0x95c)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.mem_store
-=(unsigned int)WMS_STORAGE_TYPE_NV_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
-"\x31");}else if((0x1364+4704-0x25c4)==strcmp(mem_store,"\x53\x52")){
-g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x645+5805-0x1cf0);(void)
-sc_cfg_set(NV_SMS_LOCATION_SET,"\x32");}else{g_zUfiSms_CurSmsPara.mem_store=(
-unsigned int)WMS_STORAGE_TYPE_NONE_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
+(0x3e9+8538-0x2543)==strcmp(mem_store,"\x4d\x45")){g_zUfiSms_CurSmsPara.
+mem_store=(unsigned int)WMS_STORAGE_TYPE_NV_V01;(void)sc_cfg_set(
+NV_SMS_LOCATION_SET,"\x31");}else if((0x1090+588-0x12dc)==strcmp(mem_store,
+"\x53\x52")){g_zUfiSms_CurSmsPara.mem_store=(unsigned int)(0x145f+935-0x1804);(
+void)sc_cfg_set(NV_SMS_LOCATION_SET,"\x32");}else{g_zUfiSms_CurSmsPara.mem_store
+=(unsigned int)WMS_STORAGE_TYPE_NONE_V01;(void)sc_cfg_set(NV_SMS_LOCATION_SET,
"\x2d\x31");}if(ZUFI_FAIL==zUfiSms_SetDbParameters(&g_zUfiSms_CurSmsPara)){
at_print(LOG_ERR,
"\x63\x61\x6e\x20\x6e\x6f\x74\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x2e" "\n"
);return ZUFI_FAIL;}return ZUFI_SUCC;}int zUfiSms_SetScaPara(char*sca){strncpy(
g_zUfiSms_CurSmsPara.sca,sca,sizeof(g_zUfiSms_CurSmsPara.sca)-
-(0x2040+1595-0x267a));if(ZUFI_FAIL==zUfiSms_SetDbParameters(&
+(0x18f9+1726-0x1fb6));if(ZUFI_FAIL==zUfiSms_SetDbParameters(&
g_zUfiSms_CurSmsPara)){at_print(LOG_ERR,
"\x63\x61\x6e\x20\x6e\x6f\x74\x20\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x2e" "\n"
);return ZUFI_FAIL;}return ZUFI_SUCC;}void zUfiSms_SetGlobalDcsLang(unsigned
-char cDcs){if(cDcs==(0xee0+4485-0x2064)){g_zUfiSms_Dcs=DCS_ASC;
-g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x11d1+2120-0x1a17)){
+char cDcs){if(cDcs==(0x1662+2971-0x21fc)){g_zUfiSms_Dcs=DCS_ASC;
+g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==(0x20bc+203-0x2185)){
g_zUfiSms_Dcs=DCS_USC;g_zUfiSms_Language=NOT_DEFINE_LANGUAGE;}else if(cDcs==
-(0x928+2323-0x1238)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}
-else if(cDcs==(0x10c4+5063-0x2486)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
+(0xdff+490-0xfe6)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=DCS_GSM7_SPANISH;}
+else if(cDcs==(0x5+3528-0xdc8)){g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
DCS_GSM7_PORTUGUESE;}else{g_zUfiSms_Dcs=DCS_ASC;g_zUfiSms_Language=
DCS_GSM7_DEFAULT;}}int zUfiSms_FillGroupSms(T_zUfiSms_SendReq*ptSendMsg,
T_zUfiSms_GroupInfo*ptGroupSms){int i;if(NULL==ptSendMsg||NULL==ptGroupSms||
ZTE_WMS_SEND_NUM_MAX<ptSendMsg->receiver_count){return ZUFI_FAIL;}ptGroupSms->
-total_receiver=ptSendMsg->receiver_count;for(i=(0x1738+2774-0x220e);i<ptGroupSms
+total_receiver=ptSendMsg->receiver_count;for(i=(0x14c9+2892-0x2015);i<ptGroupSms
->total_receiver;i++){strncpy(ptGroupSms->receivers[i],ptSendMsg->dest_num[i],
ZTE_WMS_ADDRESS_LEN_MAX);printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x46\x69\x6c\x6c\x47\x72\x6f\x75\x70\x53\x6d\x73\x20\x72\x65\x63\x65\x69\x76\x65\x72\x73\x5b\x25\x64\x5d\x3d\x25\x73" "\n"
-,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0xb75+3941-0x1ada);
+,i,ptGroupSms->receivers[i]);}ptGroupSms->current_receiver=(0x1f29+857-0x2282);
return ZUFI_SUCC;}int zUfiSms_FillConcatSms(T_zUfiSms_SendReq*pSendSrcMsg,
-T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x47d+7229-0x20ba);int
-iUnitlen=(0xd75+4493-0x1f02);int iSegNo=(0x1318+5083-0x26f3);unsigned char*
+T_zUfiSms_ConcatInfo*pDestConcatMsg){int iTotalLen=(0x25b+2651-0xcb6);int
+iUnitlen=(0x17a1+3175-0x2408);int iSegNo=(0xc01+4204-0x1c6d);unsigned char*
pSmsConverted=NULL;unsigned char acConvertContent[
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*(0xaac+1013-0xe9d)+
-(0x1e65+1099-0x22ac)]={(0xaac+2929-0x161d)};unsigned char acTmpContent[
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*(0x2b+6445-0x1954)+
+(0x28f+4514-0x142d)]={(0x8a6+4997-0x1c2b)};unsigned char acTmpContent[
ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX*
-(0x172b+3618-0x2549)+(0x999+62-0x9d3)]={(0x99a+5741-0x2007)};int iTimeZone=
-(0xe42+1825-0x1563);int tmp_i=(0x2c6+2721-0xd67);if(NULL==pSendSrcMsg||NULL==
-pDestConcatMsg){return-(0x901+6752-0x2360);}iTotalLen=pSendSrcMsg->msg_len;if(
+(0x1686+3397-0x23c7)+(0xb53+4066-0x1b31)]={(0x10bf+1129-0x1528)};int iTimeZone=
+(0x95f+7083-0x250a);int tmp_i=(0x282+6023-0x1a09);if(NULL==pSendSrcMsg||NULL==
+pDestConcatMsg){return-(0x5f0+1355-0xb3a);}iTotalLen=pSendSrcMsg->msg_len;if(
ZUFI_FAIL==zUfiSms_GetSmsContent(acTmpContent,sizeof(acTmpContent))){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x53\x6d\x73\x43\x6f\x6e\x74\x65\x6e\x74\x20\x46\x61\x69\x6c\x2e" "\n"
-);return-(0xfd3+1067-0x13fd);}printf(
+);return-(0xdc4+3966-0x1d41);}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x53\x6d\x73\x43\x6f\x6e\x74\x65\x6e\x74\x3a\x25\x73\x2e" "\n"
,acTmpContent);(void)String2Bytes(acTmpContent,acConvertContent,(int)strlen(
-acTmpContent));memset(acTmpContent,(0x2051+86-0x20a7),sizeof(acTmpContent));if(
+acTmpContent));memset(acTmpContent,(0xf2b+4060-0x1f07),sizeof(acTmpContent));if(
DCS_USC==g_zUfiSms_Dcs){pSmsConverted=acConvertContent;}else{if(
NOT_DEFINE_LANGUAGE==g_zUfiSms_Language){iTotalLen=
zUfiSms_ConvertAsciiToGsmDefault(acConvertContent,acTmpContent,pSendSrcMsg->
@@ -230,96 +230,96 @@
zUfiSms_ConvertUcs2ToPortuguese(acConvertContent,acTmpContent,pSendSrcMsg->
msg_len);}else{iTotalLen=zUfiSms_ConvertUcs2ToGsmDefault(acConvertContent,
acTmpContent,pSendSrcMsg->msg_len);}pSendSrcMsg->msg_len=iTotalLen;pSmsConverted
-=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0xf0d+31-0xf2b))){
-iTotalLen=sizeof(acConvertContent)-(0x121b+4520-0x23c2);}pDestConcatMsg->sms_len
-=iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
-DCS_PORTUGUESE&&iTotalLen>(0xb9+6181-0x1843))||((g_zUfiSms_Dcs==DCS_USC)&&
+=acTmpContent;}if(iTotalLen>(sizeof(acConvertContent)-(0xe19+570-0x1052))){
+iTotalLen=sizeof(acConvertContent)-(0x1f51+602-0x21aa);}pDestConcatMsg->sms_len=
+iTotalLen;if((iTotalLen>ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)||(g_zUfiSms_Language==
+DCS_PORTUGUESE&&iTotalLen>(0xeb3+5538-0x23ba))||((g_zUfiSms_Dcs==DCS_USC)&&
iTotalLen>ZTE_WMS_SMS_MSG_CHAR_MAX)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x3d\x3d\x3d\x3d\x3d\x73\x65\x6e\x64\x20\x63\x6f\x6e\x74\x61\x63\x74\x20\x73\x6d\x73\x2e" "\n"
);if(g_zUfiSms_Dcs==DCS_USC){iUnitlen=ZTE_WMS_SMS_CONCAT_ELEMNT_UCS_LEN*
-(0x1931+1408-0x1eaf);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
+(0x40+6516-0x19b2);}else{if(g_zUfiSms_Language==NOT_DEFINE_LANGUAGE||
g_zUfiSms_Language==DCS_GSM7_DEFAULT){iUnitlen=ZTE_WMS_SMS_CONCAT_ELEMNT_ASC_LEN
;}else{iUnitlen=ZTE_WMS_SMS_CONCAT_ELEMNT_LANGUAGE_LEN;}}while(iTotalLen>
-(0x1aaa+2147-0x230d)&&iSegNo<ZTE_WMS_CONCAT_SMS_COUNT_MAX){memcpy(pDestConcatMsg
+(0xb1f+6861-0x25ec)&&iSegNo<ZTE_WMS_CONCAT_SMS_COUNT_MAX){memcpy(pDestConcatMsg
->msg_contents[iSegNo],pSmsConverted,iUnitlen);iTotalLen-=iUnitlen;pSmsConverted
+=iUnitlen;iSegNo++;}pDestConcatMsg->total_msg=iSegNo;}else{iUnitlen=iTotalLen;
-pDestConcatMsg->total_msg=(0x1c30+861-0x1f8c);memcpy(pDestConcatMsg->
-msg_contents[(0x547+5393-0x1a58)],pSmsConverted,iTotalLen);printf(
+pDestConcatMsg->total_msg=(0x89b+4820-0x1b6e);memcpy(pDestConcatMsg->
+msg_contents[(0x194c+609-0x1bad)],pSmsConverted,iTotalLen);printf(
"\x5b\x53\x4d\x53\x5d\x20\x3d\x3d\x3d\x3d\x3d\x73\x65\x6e\x64\x20\x6e\x6f\x72\x6d\x61\x6c\x20\x73\x6d\x73\x2e\x6c\x65\x6e\x3a\x25\x64\x2e\x63\x6f\x6e\x74\x65\x6e\x74\x3a\x25\x73\x2e" "\n"
-,iUnitlen,pDestConcatMsg->msg_contents[(0x14e8+4438-0x263e)]);}
+,iUnitlen,pDestConcatMsg->msg_contents[(0x82+9158-0x2448)]);}
g_zUfiSms_ConcatTotalNum=pDestConcatMsg->total_msg;pDestConcatMsg->
-current_sending=(0x437+7107-0x1ffa);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
+current_sending=(0x23ab+801-0x26cc);memcpy(&(pDestConcatMsg->date),&(pSendSrcMsg
->date),sizeof(T_zUfiSms_Date));tmp_i=atoi(pDestConcatMsg->date.timezone);if(
-tmp_i<INT_MIN+(0xce6+3536-0x1ab5)||tmp_i>INT_MAX-(0x146b+2888-0x1fb2)){printf(
+tmp_i<INT_MIN+(0x15b+3291-0xe35)||tmp_i>INT_MAX-(0xa69+5995-0x21d3)){printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x70\x44\x65\x73\x74\x43\x6f\x6e\x63\x61\x74\x4d\x73\x67\x20\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x3a\x25\x64\x2e" "\n"
-,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0x1060+5776-0x26ec);memset(
-pDestConcatMsg->date.timezone,(0x111+536-0x329),sizeof(pDestConcatMsg->date.
-timezone));if(iTimeZone>(0x42b+7625-0x21f4)){snprintf(pDestConcatMsg->date.
+,tmp_i);return ZUFI_FAIL;}iTimeZone=tmp_i*(0xf4d+730-0x1223);memset(
+pDestConcatMsg->date.timezone,(0x1030+1955-0x17d3),sizeof(pDestConcatMsg->date.
+timezone));if(iTimeZone>(0x911+128-0x991)){snprintf(pDestConcatMsg->date.
timezone,sizeof(pDestConcatMsg->date.timezone),"\x2b\x25\x64",iTimeZone);}else{
snprintf(pDestConcatMsg->date.timezone,sizeof(pDestConcatMsg->date.timezone),
"\x25\x64",iTimeZone);}pSmsConverted=NULL;return iUnitlen;}void
zUfiSms_FillDateheader(T_zUfiSms_SubmitTpdu*ptSubmit,T_zUfiSms_ConcatInfo*
ptConcatSms,T_zUfiSms_DbStoreData*ptDbSaveData){unsigned char iHeaderNum=
-(0xc66+3687-0x1acd);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
-user_data_header_present=TRUE;if((0xb25+138-0xbaf)==ptConcatSms->current_sending
-){g_zUfiSms_ConcatSmsReference++;(void)zUfiSms_SetConcatMaxRefer(
+(0x12f2+819-0x1625);iHeaderNum=ptSubmit->user_data.num_headers;ptSubmit->
+user_data_header_present=TRUE;if((0x418+1266-0x90a)==ptConcatSms->
+current_sending){g_zUfiSms_ConcatSmsReference++;(void)zUfiSms_SetConcatMaxRefer(
g_zUfiSms_ConcatSmsReference);}ptSubmit->user_data.headers[iHeaderNum].header_id
=WMS_UDH_CONCAT_8;ptSubmit->user_data.headers[iHeaderNum].u.concat_8.total_sm=
ptConcatSms->total_msg;ptSubmit->user_data.headers[iHeaderNum].u.concat_8.
-seq_num=ptConcatSms->current_sending+(0x7a4+7910-0x2689);ptSubmit->user_data.
+seq_num=ptConcatSms->current_sending+(0x11e8+1275-0x16e2);ptSubmit->user_data.
headers[iHeaderNum].u.concat_8.msg_ref=g_zUfiSms_ConcatSmsReference%
-(0x21c6+808-0x23ef);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
-(0x2cf+6148-0x1ad2);ptDbSaveData->concat_info[(0x8c6+5311-0x1d85)]=
+(0x1379+4554-0x2444);ptSubmit->user_data.num_headers++;ptDbSaveData->concat_sms=
+(0x87b+1040-0xc8a);ptDbSaveData->concat_info[(0x1072+909-0x13ff)]=
g_zUfiSms_ConcatSmsReference;}int zUfiSms_MakeFinalCmgsBuf(){SMS_PARAM tSmsData;
-int iPduLength=(0x1545+3455-0x22c4);int nSmscLength=(0x4d2+8587-0x265d);char
-Tempstrr[(0x14b4+3751-0x2359)]={(0xb2c+6737-0x257d)};char Temp_sms_vp[
-(0x21d+4906-0x153f)]={(0x208+3798-0x10de)};char tmpBuf1[(0xc42+1542-0x1245)]={
-(0x224+6675-0x1c37)};char tmpBuf2[(0x57c+6955-0x20a1)]={(0x1029+2254-0x18f7)};
-CHAR smsCenter[(0x85+3574-0xe49)]={(0x6b1+5132-0x1abd)};memset(&tSmsData,
-(0xc5c+2052-0x1460),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
-(0xc8c+166-0xd32),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==g_zUfiSms_SendingSms.
-TP_DCS){int i=(0x3f8+3224-0x1090);for(;i<g_zUfiSms_SendingSms.TP_UDLength;i++){
-tSmsData.TP_UD[i]=g_zUfiSms_SendingSms.TP_UD[i];}tSmsData.TP_UDLength=
-g_zUfiSms_SendingSms.TP_UDLength;}else{snprintf(tSmsData.TP_UD,sizeof(tSmsData.
-TP_UD),"\x25\x73",g_zUfiSms_SendingSms.TP_UD);tSmsData.TP_UDLength=strlen(
-tSmsData.TP_UD);}sc_cfg_get(NV_SMS_CENTER_NUM,smsCenter,sizeof(smsCenter));
-snprintf(tSmsData.SCA,sizeof(tSmsData.SCA),"\x25\x73",smsCenter);snprintf(
-tSmsData.TPA,sizeof(tSmsData.TPA),"\x25\x73",g_zUfiSms_SendingSms.TPA);tSmsData.
-TP_DCS=g_zUfiSms_SendingSms.TP_DCS;sc_cfg_get(NV_REPORT_ENABLE,Tempstrr,sizeof(
-Tempstrr));if(((0xc38+285-0xd55)==strncmp(Tempstrr,"\x31",(0x12d5+1782-0x19ca)))
-&&(g_zUfiSms_ConcatSms.current_sending==g_zUfiSms_ConcatSms.total_msg-
-(0x657+5522-0x1be8))){tSmsData.TP_SRR=(0xcaf+3602-0x1ac0);}else{tSmsData.TP_SRR=
-(0x9c5+591-0xc14);}tSmsData.TP_UDHI=g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=
-(0xd04+1804-0x1311);sc_cfg_get(NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if(
-(0x44d+3640-0x1285)==strncmp(Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",
-(0x1553+4499-0x26df))){tSmsData.TP_VP=(0x1ac9+2306-0x22cc);}else if(
-(0x11b7+2663-0x1c1e)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x5f\x64\x61\x79",
-(0xebd+3698-0x1d28))){tSmsData.TP_VP=(0x929+3663-0x16d1);}else if(
-(0x894+5289-0x1d3d)==strncmp(Temp_sms_vp,"\x6f\x6e\x65\x77\x65\x65\x6b",
-(0xda0+3916-0x1ce5))){tSmsData.TP_VP=(0x170+1438-0x661);}else if(
-(0x107+6240-0x1967)==strncmp(Temp_sms_vp,"\x74\x77\x65\x6c\x76\x65\x68",
-(0x7ef+2468-0x118c))){tSmsData.TP_VP=(0x205c+237-0x20ba);}tSmsData.TP_PID=
-(0x17ba+1534-0x1db8);
-#if (0x1681+841-0x19c9)
+int iPduLength=(0x16d5+2702-0x2163);int nSmscLength=(0xb83+5762-0x2205);char
+Tempstrr[(0x93c+5369-0x1e33)]={(0x1a06+2921-0x256f)};char Temp_sms_vp[
+(0x384+8201-0x2385)]={(0xc84+2001-0x1455)};char tmpBuf1[(0x3f9+4711-0x165d)]={
+(0x3c7+4888-0x16df)};char tmpBuf2[(0x164b+102-0x16ab)]={(0x1481+1538-0x1a83)};
+CHAR smsCenter[(0xb18+5435-0x2021)]={(0x13a9+4448-0x2509)};memset(&tSmsData,
+(0xcd1+3731-0x1b64),sizeof(SMS_PARAM));memset(&g_zUfiSms_FinalCmgsBuf,
+(0x26f+9245-0x268c),sizeof(T_zSms_SendSmsReq));if(CODE_GSM7==
+g_zUfiSms_SendingSms.TP_DCS){int i=(0xf55+4971-0x22c0);for(;i<
+g_zUfiSms_SendingSms.TP_UDLength;i++){tSmsData.TP_UD[i]=g_zUfiSms_SendingSms.
+TP_UD[i];}tSmsData.TP_UDLength=g_zUfiSms_SendingSms.TP_UDLength;}else{snprintf(
+tSmsData.TP_UD,sizeof(tSmsData.TP_UD),"\x25\x73",g_zUfiSms_SendingSms.TP_UD);
+tSmsData.TP_UDLength=strlen(tSmsData.TP_UD);}sc_cfg_get(NV_SMS_CENTER_NUM,
+smsCenter,sizeof(smsCenter));snprintf(tSmsData.SCA,sizeof(tSmsData.SCA),
+"\x25\x73",smsCenter);snprintf(tSmsData.TPA,sizeof(tSmsData.TPA),"\x25\x73",
+g_zUfiSms_SendingSms.TPA);tSmsData.TP_DCS=g_zUfiSms_SendingSms.TP_DCS;sc_cfg_get
+(NV_REPORT_ENABLE,Tempstrr,sizeof(Tempstrr));if(((0x1145+2465-0x1ae6)==strncmp(
+Tempstrr,"\x31",(0xa3f+6214-0x2284)))&&(g_zUfiSms_ConcatSms.current_sending==
+g_zUfiSms_ConcatSms.total_msg-(0xc66+13-0xc72))){tSmsData.TP_SRR=
+(0x22d6+78-0x2323);}else{tSmsData.TP_SRR=(0xac2+2975-0x1661);}tSmsData.TP_UDHI=
+g_zUfiSms_SendingSms.TP_UDHI;tSmsData.TP_VP=(0x694+3328-0x1295);sc_cfg_get(
+NV_SMS_VP,Temp_sms_vp,sizeof(Temp_sms_vp));if((0xe9f+1895-0x1606)==strncmp(
+Temp_sms_vp,"\x6c\x6f\x6e\x67\x65\x73\x74",(0x8a3+4435-0x19ef))){tSmsData.TP_VP=
+(0x82a+5538-0x1ccd);}else if((0x17e9+1171-0x1c7c)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x5f\x64\x61\x79",(0xaeb+283-0xbff))){tSmsData.TP_VP=
+(0x2e7+8646-0x2406);}else if((0x168c+2472-0x2034)==strncmp(Temp_sms_vp,
+"\x6f\x6e\x65\x77\x65\x65\x6b",(0xc3b+650-0xebe))){tSmsData.TP_VP=
+(0x13ef+270-0x1450);}else if((0x814+5783-0x1eab)==strncmp(Temp_sms_vp,
+"\x74\x77\x65\x6c\x76\x65\x68",(0x1cab+1922-0x2426))){tSmsData.TP_VP=
+(0x148+9057-0x241a);}tSmsData.TP_PID=(0xdc3+4851-0x20b6);
+#if (0x11b3+4161-0x21f3)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x62\x65\x67\x69\x6e\x3a\x25\x73" "\n",
g_zUfiSms_FinalCmgsBuf.pdu);
#endif
iPduLength=EncodePdu_Submit(&tSmsData,g_zUfiSms_FinalCmgsBuf.pdu);
-#if (0x36b+8123-0x2325)
+#if (0xc95+3446-0x1a0a)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x61\x6b\x65\x46\x69\x6e\x61\x6c\x43\x6d\x67\x73\x42\x75\x66\x20\x6d\x61\x6b\x65\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf("\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x25\x73" "\n",
g_zUfiSms_FinalCmgsBuf.pdu);
#endif
-(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0x628+61-0x663));
+(void)String2Bytes(g_zUfiSms_FinalCmgsBuf.pdu,tmpBuf1,(0x1692+3294-0x236e));
Bytes2String(tmpBuf1,tmpBuf2,strlen(tmpBuf1));nSmscLength=atoi(tmpBuf2);if(
-nSmscLength<(0x1dd3+1742-0x24a1)||nSmscLength>INT_MAX-(0x1658+736-0x1937)){
+nSmscLength<(0xf84+4116-0x1f98)||nSmscLength>INT_MAX-(0x11b3+4885-0x24c7)){
at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x6e\x53\x6d\x73\x63\x4c\x65\x6e\x67\x74\x68\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,nSmscLength);nSmscLength=(0xeec+5224-0x2354);;}nSmscLength++;
-g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0x994+7462-0x26b8)-nSmscLength;
-#if (0x985+7049-0x250d)
+,nSmscLength);nSmscLength=(0x284+5301-0x1739);;}nSmscLength++;
+g_zUfiSms_FinalCmgsBuf.length=iPduLength/(0xdb4+870-0x1118)-nSmscLength;
+#if (0x2d7+2446-0xc64)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x61\x6b\x65\x46\x69\x6e\x61\x6c\x43\x6d\x67\x73\x42\x75\x66\x20\x6d\x61\x6b\x65\x20\x65\x6e\x64\x20\x70\x64\x75\x20\x64\x61\x74\x61" "\n"
);printf(
@@ -329,52 +329,52 @@
return ZUFI_SUCC;}int zUfiSms_FillSubmitTpdu(T_zUfiSms_ConcatInfo*ptConcatSms,
T_zUfiSms_GroupInfo*ptGroupSms,int iSmsLen,T_zUfiSms_SubmitTpdu*ptSubmit,
T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==ptSubmit||NULL==ptConcatSms||NULL==
-ptGroupSms||NULL==ptDbSaveData){return-(0x4da+2789-0xfbe);}ptSubmit->
+ptGroupSms||NULL==ptDbSaveData){return-(0x13d1+2543-0x1dbf);}ptSubmit->
reject_duplicates=FALSE;ptSubmit->reply_path_present=FALSE;ptSubmit->
user_data_header_present=FALSE;ptSubmit->status_report_enabled=
-g_zUfiSms_CurSmsPara.status_report_on;if(((0x5+3078-0xc0a)<ptConcatSms->
-total_msg)&&(ptConcatSms->current_sending+(0x223+8876-0x24ce)<ptConcatSms->
-total_msg)){ptSubmit->status_report_enabled=(0x18c7+1766-0x1fad);}ptSubmit->
+g_zUfiSms_CurSmsPara.status_report_on;if(((0xc47+6597-0x260b)<ptConcatSms->
+total_msg)&&(ptConcatSms->current_sending+(0xf09+5372-0x2404)<ptConcatSms->
+total_msg)){ptSubmit->status_report_enabled=(0x1aa7+1546-0x20b1);}ptSubmit->
message_reference=g_zUfiSms_MsgRefer;ptSubmit->pid=WMS_PID_DEFAULT;ptSubmit->dcs
-.msg_class=(wms_message_class_e_type)(0x635+1015-0xa28);ptSubmit->dcs.
-is_compressed=(0x4d+6780-0x1ac9);ptSubmit->dcs.alphabet=(g_zUfiSms_Dcs==DCS_ASC)
-?WMS_GW_ALPHABET_7_BIT_DEFAULT:WMS_GW_ALPHABET_UCS2;ptSubmit->validity.format=
+.msg_class=(wms_message_class_e_type)(0xac2+140-0xb4a);ptSubmit->dcs.
+is_compressed=(0xd1f+5441-0x2260);ptSubmit->dcs.alphabet=(g_zUfiSms_Dcs==DCS_ASC
+)?WMS_GW_ALPHABET_7_BIT_DEFAULT:WMS_GW_ALPHABET_UCS2;ptSubmit->validity.format=
WMS_GW_VALIDITY_RELATIVE;zUfiSms_DecodeRelativeTime(g_zUfiSms_CurSmsPara.
tp_validity_period,&ptSubmit->validity.u.time);ptSubmit->user_data.num_headers=
-(0x623+1464-0xbdb);if(ptConcatSms->total_msg>(0xa8f+5619-0x2081)){
+(0x6b+492-0x257);if(ptConcatSms->total_msg>(0x125b+4196-0x22be)){
zUfiSms_FillDateheader(ptSubmit,ptConcatSms,ptDbSaveData);ptDbSaveData->
-concat_info[(0x14c5+3038-0x20a1)]=ptConcatSms->current_sending+
-(0xfdf+3851-0x1ee9);ptDbSaveData->concat_info[(0x1c19+1853-0x2355)]=ptConcatSms
-->total_msg;}if(g_zUfiSms_Language==DCS_PORTUGUESE){UINT8 i=ptSubmit->user_data.
+concat_info[(0x1cfb+2497-0x26ba)]=ptConcatSms->current_sending+
+(0xb8d+4186-0x1be6);ptDbSaveData->concat_info[(0x199b+453-0x1b5f)]=ptConcatSms->
+total_msg;}if(g_zUfiSms_Language==DCS_PORTUGUESE){UINT8 i=ptSubmit->user_data.
num_headers;ptSubmit->user_data_header_present=TRUE;ptSubmit->user_data.headers[
i].header_id=WMS_UDH_NAT_LANG_SS;ptSubmit->user_data.headers[ptSubmit->user_data
.num_headers].u.nat_lang_ss.nat_lang_id=WMS_UDH_NAT_LANG_PORTUGUESE;ptSubmit->
user_data.num_headers++;g_zUfiSms_IsLanguageShift=WMS_UDH_NAT_LANG_SS;}ptSubmit
->user_data.sm_len=iSmsLen;memcpy(ptSubmit->user_data.sm_data,ptConcatSms->
msg_contents[ptConcatSms->current_sending],iSmsLen);if(ptGroupSms->receivers[
-ptGroupSms->current_receiver][(0x309+6452-0x1c3d)]==((char)(0xcf7+6116-0x24b0)))
+ptGroupSms->current_receiver][(0x1306+705-0x15c7)]==((char)(0x1e62+952-0x21ef)))
{(void)zUfiSms_CharToInt(ptGroupSms->receivers[ptGroupSms->current_receiver]+
-(0x104a+1102-0x1497),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])
--(0xcbb+5536-0x225a),ptSubmit->address.digits);ptSubmit->address.number_type=
+(0x6c5+5146-0x1ade),strlen(ptGroupSms->receivers[ptGroupSms->current_receiver])-
+(0x1e80+1102-0x22cd),ptSubmit->address.digits);ptSubmit->address.number_type=
WMS_NUMBER_INTERNATIONAL;ptSubmit->address.number_of_digits=strlen(ptGroupSms->
-receivers[ptGroupSms->current_receiver])-(0x1133+1675-0x17bd);}else if(
-ptGroupSms->receivers[ptGroupSms->current_receiver][(0x16ea+172-0x1796)]==
-((char)(0x247d+322-0x258f))&&ptGroupSms->receivers[ptGroupSms->current_receiver]
-[(0xd8f+2083-0x15b1)]==((char)(0x10e6+1281-0x15b7))){(void)zUfiSms_CharToInt(
-ptGroupSms->receivers[ptGroupSms->current_receiver]+(0x83+248-0x179),strlen(
-ptGroupSms->receivers[ptGroupSms->current_receiver])-(0xea8+3595-0x1cb1),
+receivers[ptGroupSms->current_receiver])-(0x10e7+381-0x1263);}else if(ptGroupSms
+->receivers[ptGroupSms->current_receiver][(0xd5c+6176-0x257c)]==
+((char)(0xb61+394-0xcbb))&&ptGroupSms->receivers[ptGroupSms->current_receiver][
+(0x7c2+1741-0xe8e)]==((char)(0x9a8+583-0xbbf))){(void)zUfiSms_CharToInt(
+ptGroupSms->receivers[ptGroupSms->current_receiver]+(0x6c9+7183-0x22d6),strlen(
+ptGroupSms->receivers[ptGroupSms->current_receiver])-(0x1282+2578-0x1c92),
ptSubmit->address.digits);ptSubmit->address.number_type=WMS_NUMBER_INTERNATIONAL
;ptSubmit->address.number_of_digits=strlen(ptGroupSms->receivers[ptGroupSms->
-current_receiver])-(0x67c+3657-0x14c3);}else{(void)zUfiSms_CharToInt(ptGroupSms
+current_receiver])-(0xe88+1232-0x1356);}else{(void)zUfiSms_CharToInt(ptGroupSms
->receivers[ptGroupSms->current_receiver],strlen(ptGroupSms->receivers[
ptGroupSms->current_receiver]),ptSubmit->address.digits);ptSubmit->address.
number_type=WMS_NUMBER_UNKNOWN;ptSubmit->address.number_of_digits=strlen(
ptGroupSms->receivers[ptGroupSms->current_receiver]);}ptSubmit->address.
-digit_mode=(wms_digit_mode_e_type)(0x110f+783-0x141e);ptSubmit->address.
-number_mode=(wms_number_mode_e_type)(0xa2+3697-0xf13);ptSubmit->address.
+digit_mode=(wms_digit_mode_e_type)(0x1399+2942-0x1f17);ptSubmit->address.
+number_mode=(wms_number_mode_e_type)(0x1208+1677-0x1895);ptSubmit->address.
number_plan=WMS_NUMBER_PLAN_TELEPHONY;memset(&g_zUfiSms_SendingSms,
-(0x1481+4300-0x254d),sizeof(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof
-(g_zUfiSms_SendingSms.TPA),"\x25\x73",ptGroupSms->receivers[ptGroupSms->
+(0x4d8+7699-0x22eb),sizeof(SMS_PARAM));snprintf(g_zUfiSms_SendingSms.TPA,sizeof(
+g_zUfiSms_SendingSms.TPA),"\x25\x73",ptGroupSms->receivers[ptGroupSms->
current_receiver]);if(g_zUfiSms_Language!=NOT_DEFINE_LANGUAGE){
g_zUfiSms_SendingSms.TP_DCS=CODE_GSM7;}else{if(g_zUfiSms_Dcs==DCS_USC){
g_zUfiSms_SendingSms.TP_DCS=CODE_UCS2;}else{g_zUfiSms_SendingSms.TP_DCS=
@@ -383,21 +383,21 @@
zUfiSms_FillGlobalTpudUcs2(ptSubmit,ptConcatSms,ptDbSaveData);}(void)
zUfiSms_MakeFinalCmgsBuf();return ZUFI_SUCC;}void zUfiSms_FillSca(
T_zUfiSms_ClientMsg*ptClientMsg){char sca[ZTE_WMS_SCA_LEN_MAX]={
-(0x2df+7203-0x1f02)};int i=(0x16b8+3767-0x256f);if(NULL==ptClientMsg){return;}
+(0x1edb+1178-0x2375)};int i=(0x1043+5518-0x25d1);if(NULL==ptClientMsg){return;}
memcpy((void*)sca,(void*)(g_zUfiSms_CurSmsPara.sca),sizeof(g_zUfiSms_CurSmsPara.
-sca));if(sca[(0xca5+2837-0x17ba)]==((char)(0xd1b+746-0xfda))){ptClientMsg->u.
+sca));if(sca[(0x108+6192-0x1938)]==((char)(0xbf9+2958-0x175c))){ptClientMsg->u.
gw_message.sc_address.number_type=WMS_NUMBER_INTERNATIONAL;}ptClientMsg->u.
gw_message.sc_address.digit_mode=WMS_DIGIT_MODE_8_BIT;ptClientMsg->u.gw_message.
sc_address.number_plan=WMS_NUMBER_PLAN_TELEPHONY;ptClientMsg->u.gw_message.
-sc_address.number_of_digits=strlen(sca);if(sca[(0x1742+3997-0x26df)]==
-((char)(0x6b3+7302-0x230e))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits--;for(i=(0x7a8+2243-0x106b);i<ptClientMsg->u.gw_message.
-sc_address.number_of_digits;i++){sca[i]=sca[i+(0x11c3+3478-0x1f58)];}}else if(
-sca[(0xfc+6791-0x1b83)]==((char)(0x1cf+7293-0x1e1c))&&sca[(0x276+7725-0x20a2)]==
-((char)(0x648+6753-0x2079))){ptClientMsg->u.gw_message.sc_address.
-number_of_digits-=(0x584+2448-0xf12);for(i=(0x149a+576-0x16da);i<ptClientMsg->u.
-gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0x103b+2444-0x19c5)];}
-}(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
+sc_address.number_of_digits=strlen(sca);if(sca[(0xe4a+3297-0x1b2b)]==
+((char)(0x1ea4+1887-0x25d8))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits--;for(i=(0xce4+5719-0x233b);i<ptClientMsg->u.gw_message.
+sc_address.number_of_digits;i++){sca[i]=sca[i+(0x9ca+2922-0x1533)];}}else if(sca
+[(0x1118+1979-0x18d3)]==((char)(0x1edf+302-0x1fdd))&&sca[(0x63a+3833-0x1532)]==
+((char)(0xe5b+4338-0x1f1d))){ptClientMsg->u.gw_message.sc_address.
+number_of_digits-=(0x10cd+2350-0x19f9);for(i=(0xd49+1170-0x11db);i<ptClientMsg->
+u.gw_message.sc_address.number_of_digits;i++){sca[i]=sca[i+(0xce4+2964-0x1876)];
+}}(void)zUfiSms_CharToInt(sca,ptClientMsg->u.gw_message.sc_address.
number_of_digits,ptClientMsg->u.gw_message.sc_address.digits);}void
zUfiSms_FillDbSaveData(T_zUfiSms_ClientMsg*ptClientMsg,T_zUfiSms_ClientTsData*
ptClientData,T_zUfiSms_ConcatInfo*ptConcatSms,T_zUfiSms_GroupInfo*ptGroupSms,int
@@ -407,12 +407,12 @@
}ptDbSaveData->mem_store=ptClientMsg->msg_hdr.mem_store;ptDbSaveData->index=
ptClientMsg->msg_hdr.index;ptDbSaveData->mode=ptClientMsg->msg_hdr.message_mode;
ptDbSaveData->tag=ptClientMsg->msg_hdr.tag;memset(ptDbSaveData->number,
-(0xe1c+674-0x10be),ZTE_WMS_ADDRESS_LEN_MAX+(0xbf9+6472-0x2540));memcpy(
+(0xbb5+2423-0x152c),ZTE_WMS_ADDRESS_LEN_MAX+(0x6bf+7397-0x23a3));memcpy(
ptDbSaveData->number,ptGroupSms->receivers[ptGroupSms->current_receiver],strlen(
ptGroupSms->receivers[ptGroupSms->current_receiver]));ptDbSaveData->tp_dcs=
DCS_USC;ptDbSaveData->tp_pid=ptClientData->u.gw_pp.u.submit.pid;ptDbSaveData->
msg_ref=ptClientData->u.gw_pp.u.submit.message_reference;memset(ptDbSaveData->
-sms_content,(0xc42+4964-0x1fa6),sizeof(ptDbSaveData->sms_content));if(
+sms_content,(0x158a+4111-0x2599),sizeof(ptDbSaveData->sms_content));if(
g_zUfiSms_Dcs==DCS_USC){ptDbSaveData->alphabet=WMS_GW_ALPHABET_UCS2;}else if(
g_zUfiSms_Dcs==DCS_ASC){ptDbSaveData->alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}(
void)zUfiSms_DispatchWtoi(ptConcatSms->msg_contents[ptConcatSms->current_sending
@@ -423,7 +423,7 @@
ptDbSaveData){T_zUfiSms_ClientTsData tClientTsData;ptClientMsg->msg_hdr.
mem_store=WMS_MEMORY_STORE_NV_GW;ptClientMsg->msg_hdr.tag=WMS_TAG_MO_NOT_SENT;
ptClientMsg->msg_hdr.message_mode=WMS_MESSAGE_MODE_GW;ptClientMsg->u.gw_message.
-is_broadcast=FALSE;memset((void*)&tClientTsData,(0x198c+1930-0x2116),sizeof(
+is_broadcast=FALSE;memset((void*)&tClientTsData,(0xf80+3265-0x1c41),sizeof(
wms_client_ts_data_s_type));tClientTsData.format=WMS_FORMAT_GW_PP;tClientTsData.
u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)zUfiSms_FillSubmitTpdu(&
g_zUfiSms_ConcatSms,&g_zUfiSms_GroupSms,g_zUfiSms_UnitLen,&tClientTsData.u.gw_pp
@@ -432,95 +432,95 @@
ptClientMsg,&tClientTsData,&g_zUfiSms_ConcatSms,&g_zUfiSms_GroupSms,
g_zUfiSms_UnitLen,ptDbSaveData);}int zUfiSms_StoreNormalSmsToDb(
T_zUfiSms_DbStoreData*ptDbSaveData,const char*pMemStore,long iSmsId){int result=
-ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x17d9+2538-0x21c3);pContent=(char
-*)malloc((0xf72+4552-0x2136)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent
-==NULL){return ZUFI_FAIL;}memset(pContent,(0x6d7+4120-0x16ef),
-(0x9ea+3280-0x16b6)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(
-WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->alphabet){static char data[
-(0x1ac7+166-0x1b69)*ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0xd5b+3916-0x1ca6)]={
-(0xe5d+5380-0x2361)};memset(data,(0x6cc+622-0x93a),(0x114a+5276-0x25e2)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0x1776+195-0x1838));(void)zUfiSms_DecodeContent
-((char*)ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content),FALSE,data);
-strncpy(pContent,data,(0xbdd+5443-0x211c)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-
-(0xb2b+6204-0x2366));}else{strncpy(pContent,ptDbSaveData->sms_content,
-(0xf8c+3000-0x1b40)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0xaa0+2111-0x12de));}
-ptDbSaveData->tp_dcs=(unsigned char)(0x52d+7847-0x23d2);if(-(0x11ea+5063-0x25b0)
-==iSmsId){if(ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(
-pContent);pContent=NULL;return ZUFI_FAIL;}printf(
+ZUFI_SUCC;char*pContent=NULL;int iTotalCount=(0x2f1+4564-0x14c5);pContent=(char*
+)malloc((0xfcb+4968-0x232f)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(pContent==
+NULL){return ZUFI_FAIL;}memset(pContent,(0x23af+347-0x250a),(0x11d6+2310-0x1ad8)
+*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX);if(WMS_GW_ALPHABET_7_BIT_DEFAULT==
+ptDbSaveData->alphabet){static char data[(0x77a+8025-0x26cf)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+(0xb95+253-0xc91)]={(0x117f+3049-0x1d68)};memset
+(data,(0x9ec+874-0xd56),(0x21f+659-0x4ae)*ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX+
+(0x12a7+1328-0x17d6));(void)zUfiSms_DecodeContent((char*)ptDbSaveData->
+sms_content,strlen(ptDbSaveData->sms_content),FALSE,data);strncpy(pContent,data,
+(0x1864+1023-0x1c5f)*ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x4c0+2861-0xfec));}
+else{strncpy(pContent,ptDbSaveData->sms_content,(0x28d+1137-0x6fa)*
+ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX-(0x990+4808-0x1c57));}ptDbSaveData->tp_dcs
+=(unsigned char)(0x1ac+6230-0x1a00);if(-(0x1fb2+503-0x21a8)==iSmsId){if(
+ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&iTotalCount)){free(pContent);
+pContent=NULL;return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x74\x6f\x72\x65\x4e\x6f\x72\x6d\x61\x6c\x53\x6d\x73\x54\x6f\x44\x62\x20\x69\x54\x6f\x74\x61\x6c\x43\x6f\x75\x6e\x74\x3d\x25\x64" "\n"
,iTotalCount);if(iTotalCount>=g_zUfiSms_StoreCapablity[(strcmp(pMemStore,
"\x6e\x76")?ZTE_WMS_MEMORY_SIM:ZTE_WMS_MEMORY_NV)]){free(pContent);pContent=NULL
-;return-(0x1579+3233-0x2219);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
+;return-(0x1c05+1305-0x211d);}if(ZUFI_FAIL==zUfiSms_InsertNormalSmsToDb(
ptDbSaveData,pMemStore,pContent)){result=ZUFI_FAIL;}}else{if(ZUFI_FAIL==
zUfiSms_UpdateNormalSmsToDb(ptDbSaveData,pMemStore,pContent,iSmsId)){result=
ZUFI_FAIL;}}free(pContent);pContent=NULL;return result;}static int
zUfiSms_ConcatDataFree(T_zUfiSms_DbStoreData*ptDbSaveData,int count,char**
-out_result){int i=(0x36b+2761-0xe34);for(i=(0x69+8128-0x2029);i<count;i++){if(
-ptDbSaveData->concat_info[(0x3f3+2034-0xbe3)]==i+(0x1180+2803-0x1c72)){free(
-out_result[i]);out_result[i]=NULL;break;}}return(0x93a+5918-0x2058);}int
+out_result){int i=(0x1180+597-0x13d5);for(i=(0x74d+5167-0x1b7c);i<count;i++){if(
+ptDbSaveData->concat_info[(0x636+8373-0x26e9)]==i+(0x157b+2657-0x1fdb)){free(
+out_result[i]);out_result[i]=NULL;break;}}return(0x2400+328-0x2548);}int
zUfiSms_AddNewSmsToConcatData(T_zUfiSms_DbStoreData*ptDbSaveData,char*
pOldContent,char*pFormatNewContent,char*pRealNewContent,T_zUfiSms_DbStoreStr*pac
-,int*pConcatTotalNum,int len){int count=(0x2258+782-0x2566);char**out_result=
-NULL;char cSegChar=((char)(0x559+5850-0x1bf8));int i=(0x13+3742-0xeb1);int
-iTotalSegNum=(0x1116+1819-0x1831);char acContentSeg[(0x7ef+900-0xb71)*
+,int*pConcatTotalNum,int len){int count=(0x988+6610-0x235a);char**out_result=
+NULL;char cSegChar=((char)(0x1975+2732-0x23e6));int i=(0x1483+132-0x1507);int
+iTotalSegNum=(0x912+4109-0x191f);char acContentSeg[(0x446+4153-0x147d)*
ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX*ZTE_WMS_SMS_COUNT_MAX]={
-(0x1d82+1172-0x2216)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
-pOldContent){return-(0x7b2+1135-0xc20);}count=zUfiSms_SplitString(pOldContent,&
-out_result,cSegChar);for(i=(0xab9+6628-0x249d);i<count;i++){if(ptDbSaveData->
-concat_info[(0xde0+4292-0x1ea2)]==i+(0x72d+970-0xaf6)){out_result[i]=(char*)
+(0xe0d+2227-0x16c0)};char*pCurConPos=acContentSeg;boolean isEsc=FALSE;if(NULL==
+pOldContent){return-(0xdb3+5706-0x23fc);}count=zUfiSms_SplitString(pOldContent,&
+out_result,cSegChar);for(i=(0x1099+3000-0x1c51);i<count;i++){if(ptDbSaveData->
+concat_info[(0x1c0b+1711-0x22b8)]==i+(0xe29+6193-0x2659)){out_result[i]=(char*)
malloc(sizeof(ptDbSaveData->sms_content));memset(out_result[i],
-(0x1663+3677-0x24c0),sizeof(ptDbSaveData->sms_content));if(
+(0x147b+261-0x1580),sizeof(ptDbSaveData->sms_content));if(
WMS_GW_ALPHABET_7_BIT_DEFAULT==ptDbSaveData->alphabet){isEsc=
zUfiSms_DecodeContent(ptDbSaveData->sms_content,strlen(ptDbSaveData->sms_content
),isEsc,out_result[i]);}else{strncpy(out_result[i],ptDbSaveData->sms_content,
-sizeof(ptDbSaveData->sms_content)-(0x1b51+649-0x1dd9));}break;}}for(i=
-(0x17e4+1972-0x1f98);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
+sizeof(ptDbSaveData->sms_content)-(0xce1+1650-0x1352));}break;}}for(i=
+(0x1902+2378-0x224c);i<count;i++){snprintf(acContentSeg+strlen(acContentSeg),
sizeof(acContentSeg)-strlen(acContentSeg),"\x25\x73",out_result[i]);strcat(
-pFormatNewContent,out_result[i]);if(i!=count-(0x261+4385-0x1381)){strcat(
+pFormatNewContent,out_result[i]);if(i!=count-(0x164a+2580-0x205d)){strcat(
pFormatNewContent,"\x3b");}}strncpy(pRealNewContent,acContentSeg,len);
zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(out_result);
out_result=NULL;count=zUfiSms_SplitString(pac->IndStr,&out_result,cSegChar);for(
-i=(0x11a4+1234-0x1676);i<count;i++){if(ptDbSaveData->concat_info[
-(0x13a9+4594-0x2599)]==i+(0x7eb+7817-0x2673)){out_result[i]=(char*)malloc(
-SHORT_INT_LEN);memset(out_result[i],(0x401+5958-0x1b47),SHORT_INT_LEN);snprintf(
+i=(0x7fb+752-0xaeb);i<count;i++){if(ptDbSaveData->concat_info[
+(0x1432+3715-0x22b3)]==i+(0x23bc+43-0x23e6)){out_result[i]=(char*)malloc(
+SHORT_INT_LEN);memset(out_result[i],(0x17e3+455-0x19aa),SHORT_INT_LEN);snprintf(
out_result[i],SHORT_INT_LEN,"\x25\x64",ptDbSaveData->index);break;}}for(i=
-(0x5b2+876-0x91e);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
+(0x373+7144-0x1f5b);i<count;i++){snprintf(pac->FormatInd+strlen(pac->FormatInd),
sizeof(pac->FormatInd)-strlen(pac->FormatInd),"\x25\x73",out_result[i]);if(i!=
-count-(0xb2+73-0xfa)){snprintf(pac->FormatInd+strlen(pac->FormatInd),sizeof(pac
-->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
+count-(0x82+8580-0x2205)){snprintf(pac->FormatInd+strlen(pac->FormatInd),sizeof(
+pac->FormatInd)-strlen(pac->FormatInd),"\x3b");}}zUfiSms_ConcatDataFree(
ptDbSaveData,count,out_result);free(out_result);out_result=NULL;count=
-zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=(0x5f1+7161-0x21ea)
-;i<count;i++){if(ptDbSaveData->concat_info[(0x5d6+6091-0x1d9f)]==i+
-(0x405+2486-0xdba)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(out_result
-[i],(0x12e4+505-0x14dd),SHORT_INT_LEN);snprintf(out_result[i],SHORT_INT_LEN,
-"\x25\x64",ptDbSaveData->concat_info[(0xaa+7459-0x1dcb)]);break;}}for(i=
-(0xdda+5641-0x23e3);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->FormatSeq),
+zUfiSms_SplitString(pac->Seg_Seq,&out_result,cSegChar);for(i=(0xd95+4052-0x1d69)
+;i<count;i++){if(ptDbSaveData->concat_info[(0xa98+1308-0xfb2)]==i+
+(0x53c+789-0x850)){out_result[i]=(char*)malloc(SHORT_INT_LEN);memset(out_result[
+i],(0xc65+5850-0x233f),SHORT_INT_LEN);snprintf(out_result[i],SHORT_INT_LEN,
+"\x25\x64",ptDbSaveData->concat_info[(0x5+1628-0x65f)]);break;}}for(i=
+(0x11f7+275-0x130a);i<count;i++){snprintf(pac->FormatSeq+strlen(pac->FormatSeq),
sizeof(pac->FormatSeq)-strlen(pac->FormatSeq),"\x25\x73",out_result[i]);if(i!=
-count-(0xc45+625-0xeb5)){snprintf(pac->FormatSeq+strlen(pac->FormatSeq),sizeof(
-pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if((0x196a+1321-0x1e93)!=strcmp(
+count-(0x5f4+1039-0xa02)){snprintf(pac->FormatSeq+strlen(pac->FormatSeq),sizeof(
+pac->FormatSeq)-strlen(pac->FormatSeq),"\x3b");}if((0xaf0+565-0xd25)!=strcmp(
out_result[i],"")){iTotalSegNum++;}}*pConcatTotalNum=iTotalSegNum;
zUfiSms_ConcatDataFree(ptDbSaveData,count,out_result);free(out_result);
-out_result=NULL;return(0x1ad1+2112-0x2311);}int zUfiSms_UpdateConcatSms(
+out_result=NULL;return(0xfc4+4623-0x21d3);}int zUfiSms_UpdateConcatSms(
T_zUfiSms_DbStoreData*ptDbSaveData,const char*pStorePos,long iSmsId){
-T_zUfiSms_DbStoreStr ac={(0x1e88+1031-0x228f)};char*pOldContent=NULL;char*
+T_zUfiSms_DbStoreStr ac={(0x391+6298-0x1c2b)};char*pOldContent=NULL;char*
pFormatNewContent=NULL;char*pRealNewContent=NULL;int iTotalNum=
-(0x1dfc+1272-0x22f4);int result=ZUFI_SUCC;int spaceLen=(0x18+2443-0x99f)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x1b01+87-0x1b54);
+(0x4a1+2140-0xcfd);int result=ZUFI_SUCC;int spaceLen=(0x11c9+1583-0x17f4)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x8d9+1524-0xec9);
pOldContent=(char*)malloc(spaceLen);pFormatNewContent=(char*)malloc(spaceLen);
pRealNewContent=(char*)malloc(spaceLen);if(pOldContent==NULL||pFormatNewContent
==NULL||pRealNewContent==NULL){if(pOldContent)free(pOldContent);if(
pFormatNewContent)free(pFormatNewContent);if(pRealNewContent)free(
-pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0x79c+1358-0xcea),
-spaceLen);memset(pOldContent,(0x3d+2617-0xa76),spaceLen);memset(
-pFormatNewContent,(0x51c+2586-0xf36),spaceLen);(void)zUfiSms_GetConcatInfo(
+pRealNewContent);return ZUFI_FAIL;}memset(pRealNewContent,(0x819+6529-0x219a),
+spaceLen);memset(pOldContent,(0xdfd+3229-0x1a9a),spaceLen);memset(
+pFormatNewContent,(0x740+6769-0x21b1),spaceLen);(void)zUfiSms_GetConcatInfo(
pStorePos,iSmsId,&ac,pOldContent,spaceLen);printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x2d\x30\x20\x49\x6e\x64\x53\x74\x72\x3a\x25\x73\x2c\x53\x65\x67\x5f\x53\x65\x71\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x49\x6e\x64\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x53\x65\x71\x3a\x25\x73" "\n"
-,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0x4cc+1165-0x958)==
+,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);if(-(0x89d+2365-0x11d9)==
zUfiSms_AddNewSmsToConcatData(ptDbSaveData,pOldContent,pFormatNewContent,
pRealNewContent,&ac,&iTotalNum,spaceLen)){result=ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x30\x20\x49\x6e\x64\x53\x74\x72\x3a\x25\x73\x2c\x53\x65\x67\x5f\x53\x65\x71\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x49\x6e\x64\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x53\x65\x71\x3a\x25\x73" "\n"
,ac.IndStr,ac.Seg_Seq,ac.FormatInd,ac.FormatSeq);ptDbSaveData->tp_dcs=
-(0x134c+1937-0x1adb);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
+(0xa66+2250-0x132e);if(ZUFI_FAIL==zUfiSms_UpdateConcatSmsToDb(ptDbSaveData,
pStorePos,pFormatNewContent,pRealNewContent,&ac,iTotalNum,iSmsId)){result=
ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x74\x65\x65\x74\x20\x31\x20\x49\x6e\x64\x53\x74\x72\x3a\x25\x73\x2c\x53\x65\x67\x5f\x53\x65\x71\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x49\x6e\x64\x3a\x25\x73\x2c\x46\x6f\x72\x6d\x61\x74\x53\x65\x71\x3a\x25\x73" "\n"
@@ -529,33 +529,33 @@
pFormatNewContent=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x55\x70\x64\x61\x74\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73\x2e" "\n"
);return result;}int zUfiSms_InsertConcatSms(T_zUfiSms_DbStoreData*ptDbSaveData,
-const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0xf87+1983-0x1746)};int
-iSms_TotalCount=(0xb94+4479-0x1d13);int i=(0x846+7707-0x2661);char acTmpContent[
-(0x638+1568-0xb58)];int iConcatNum=(0x5c4+7555-0x2347);char*pFormatConcat=NULL;
-char*pContent=NULL;int spaceLen=(0x1c39+2373-0x257a)*
-ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x50b+6215-0x1d4e)
-;if(NULL==ptDbSaveData||NULL==pStorePos){return ZUFI_FAIL;}printf(
+const char*pStorePos){T_zUfiSms_DbStoreStr ac={(0xabf+974-0xe8d)};int
+iSms_TotalCount=(0x105+6448-0x1a35);int i=(0x467+8838-0x26ed);char acTmpContent[
+(0x1880+1784-0x1e78)];int iConcatNum=(0x113c+4289-0x21fd);char*pFormatConcat=
+NULL;char*pContent=NULL;int spaceLen=(0x78f+3533-0x1558)*
+ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX*ZTE_WMS_CONCAT_SMS_COUNT_MAX+(0x66a+139-0x6f1);
+if(NULL==ptDbSaveData||NULL==pStorePos){return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x65\x6e\x74\x65\x72\x20\x49\x6e\x73\x65\x72\x74\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x2e" "\n"
-);memset(acTmpContent,(0xf41+3230-0x1bdf),sizeof(acTmpContent));iSms_TotalCount=
-ptDbSaveData->concat_info[(0x28d+96-0x2ec)];for(i=(0xf79+5141-0x238d);i<
+);memset(acTmpContent,(0x14f+1155-0x5d2),sizeof(acTmpContent));iSms_TotalCount=
+ptDbSaveData->concat_info[(0x132a+347-0x1484)];for(i=(0x4e5+3134-0x1122);i<
iSms_TotalCount;i++){strcat(ac.IndStr,"\x3b");strcat(ac.Seg_Seq,"\x3b");strcat(
acTmpContent,"\x3b");}pFormatConcat=(char*)malloc(spaceLen);if(NULL==
-pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0xf51+1354-0x149b),
+pFormatConcat){return ZUFI_FAIL;}memset(pFormatConcat,(0x178c+743-0x1a73),
spaceLen);pContent=(char*)malloc(spaceLen);if(pContent==NULL){free(pFormatConcat
-);return ZUFI_FAIL;}memset(pContent,(0x3cb+3002-0xf85),spaceLen);if(-
-(0xfff+3985-0x1f8f)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
+);return ZUFI_FAIL;}memset(pContent,(0x1fc3+407-0x215a),spaceLen);if(-
+(0x4d3+4855-0x17c9)==zUfiSms_AddNewSmsToConcatData(ptDbSaveData,acTmpContent,
pFormatConcat,pContent,&ac,&iConcatNum,spaceLen)){free(pFormatConcat);free(
pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;}ptDbSaveData->
-tp_dcs=(0x48f+7613-0x224a);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(
-ptDbSaveData,pStorePos,pFormatConcat,pContent,&ac,iConcatNum)){free(
-pFormatConcat);free(pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;
-}free(pFormatConcat);free(pContent);pFormatConcat=NULL;pContent=NULL;printf(
+tp_dcs=(0x4fd+856-0x853);if(ZUFI_FAIL==zUfiSms_InsertConcatSmsToDb(ptDbSaveData,
+pStorePos,pFormatConcat,pContent,&ac,iConcatNum)){free(pFormatConcat);free(
+pContent);pFormatConcat=NULL;pContent=NULL;return ZUFI_FAIL;}free(pFormatConcat)
+;free(pContent);pFormatConcat=NULL;pContent=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x49\x6e\x73\x65\x72\x74\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73\x2e" "\n"
);return ZUFI_SUCC;}int zUfiSms_StoreConcatSmsToDb(T_zUfiSms_DbStoreData*
-ptDbSaveData,char*pMemStore){long iSmsId=(0xc11+2830-0x171f);int total_count=
-(0x17b3+2629-0x21f8);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
+ptDbSaveData,char*pMemStore){long iSmsId=(0x124f+1080-0x1687);int total_count=
+(0x6ed+2407-0x1054);if(NULL==ptDbSaveData||NULL==pMemStore){return ZUFI_FAIL;}
iSmsId=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,pMemStore);if(-
-(0x102b+430-0x11d8)!=iSmsId){printf(
+(0x11ec+318-0x1329)!=iSmsId){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x74\x6f\x72\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x54\x6f\x44\x62\x20\x45\x6e\x74\x65\x72\x20\x55\x70\x64\x61\x74\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x53\x6d\x73\x49\x64\x3a\x25\x64\x2e" "\n"
,iSmsId);return zUfiSms_UpdateConcatSms(ptDbSaveData,pMemStore,iSmsId);}else{if(
ZUFI_FAIL==zUfiSms_GetTotalCount(pMemStore,&total_count)){printf(
@@ -567,207 +567,207 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x74\x6f\x72\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x54\x6f\x44\x62\x20\x53\x6d\x73\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x46\x75\x6c\x6c\x2e" "\n"
);return ZUFI_FAIL;}return zUfiSms_InsertConcatSms(ptDbSaveData,pMemStore);}}int
zUfiSms_WriteSmsToDb(T_zUfiSms_DbStoreData*ptDbSaveData,zUfiSms_StoreType
-iMemStore,long iSmsId){char acDbMemStore[(0xd+3088-0xc13)];int iTotalCount=
-(0x1300+1271-0x17f7);int id=(0x629+6257-0x1e9a);UINT8 needCheckMemory=
-(0xaf8+3856-0x1a07);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore
-,(0xb9b+4083-0x1b8e),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
+iMemStore,long iSmsId){char acDbMemStore[(0x380+3576-0x116e)];int iTotalCount=
+(0xd0f+3624-0x1b37);int id=(0x2260+713-0x2529);UINT8 needCheckMemory=
+(0x276+6599-0x1c3c);if(NULL==ptDbSaveData){return ZUFI_FAIL;}memset(acDbMemStore
+,(0x13a9+3429-0x210e),sizeof(acDbMemStore));if(WMS_STORAGE_TYPE_UIM_V01==
iMemStore){strncpy(acDbMemStore,ZTE_WMS_DB_SIM_TABLE,sizeof(acDbMemStore)-
-(0x9cf+3551-0x17ad));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
-acDbMemStore)-(0x1a60+2527-0x243e));}if((0x4a7+7002-0x2000)==ptDbSaveData->
+(0xd98+1727-0x1456));}else{strncpy(acDbMemStore,ZTE_WMS_DB_NV_TABLE,sizeof(
+acDbMemStore)-(0x14e7+2030-0x1cd4));}if((0x11d4+968-0x159b)==ptDbSaveData->
concat_sms){id=zUfiSms_SearchConcatSmsInDb(ptDbSaveData,&acDbMemStore);if(-
-(0x102d+2616-0x1a64)!=id){needCheckMemory=(0xa15+2261-0x12ea);}}if(
-needCheckMemory==(0x12f7+953-0x16af)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
+(0x875+6624-0x2254)!=id){needCheckMemory=(0x8af+2204-0x114b);}}if(
+needCheckMemory==(0x594+1497-0xb6c)){if(ZUFI_FAIL==zUfiSms_GetTotalCount(
acDbMemStore,&iTotalCount)){return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x53\x6d\x73\x54\x6f\x44\x62\x20\x69\x54\x6f\x74\x61\x6c\x43\x6f\x75\x6e\x74\x3d\x25\x64\x28\x6e\x65\x65\x64\x43\x68\x65\x63\x6b\x4d\x65\x6d\x6f\x72\x79\x3d\x3d\x31\x29" "\n"
,iTotalCount);if(iTotalCount>=g_zUfiSms_StoreCapablity[(strcmp(acDbMemStore,
"\x6e\x76")?ZTE_WMS_MEMORY_SIM:ZTE_WMS_MEMORY_NV)]){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x53\x6d\x73\x54\x6f\x44\x62\x20\x6d\x65\x6d\x6f\x72\x79\x20\x66\x75\x6c\x6c\x2c\x20\x65\x72\x72\x6f\x72" "\n"
);return ZTE_WMS_NV_MEMORY_FULL;}}if(ptDbSaveData->concat_info[
-(0x969+3122-0x1599)]==(0x1cca+188-0x1d86)||ptDbSaveData->concat_info[
-(0xd23+4328-0x1e09)]>ptDbSaveData->concat_info[(0x12cf+40-0x12f6)]){ptDbSaveData
-->concat_sms=(0x817+4150-0x184d);}printf(
+(0x23e7+770-0x26e7)]==(0x15f4+2048-0x1df4)||ptDbSaveData->concat_info[
+(0x1966+652-0x1bf0)]>ptDbSaveData->concat_info[(0x90b+7433-0x2613)]){
+ptDbSaveData->concat_sms=(0x474+8789-0x26c9);}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x53\x6d\x73\x54\x6f\x44\x62\x20\x54\x6f\x74\x61\x6c\x43\x6f\x75\x6e\x74\x3a\x25\x64\x2e\x63\x6f\x6e\x63\x61\x74\x5f\x73\x6d\x73\x3a\x25\x64\x2e\x63\x6f\x6e\x63\x61\x74\x5f\x69\x6e\x66\x6f\x5b\x31\x5d\x3a\x25\x64" "\n"
,iTotalCount,ptDbSaveData->concat_sms,ptDbSaveData->concat_info[
-(0x958+4027-0x1912)]);if((0xfe4+3258-0x1c9d)==ptDbSaveData->concat_sms){if(
-ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x22d+9143-0x25e3)]){
+(0x4ec+7055-0x207a)]);if((0xe57+2898-0x19a8)==ptDbSaveData->concat_sms){if(
+ZTE_WMS_CONCAT_SMS_COUNT_MAX<ptDbSaveData->concat_info[(0x1de3+2276-0x26c6)]){
return ZUFI_FAIL;}else{return zUfiSms_StoreConcatSmsToDb(ptDbSaveData,
acDbMemStore);}}else{return zUfiSms_StoreNormalSmsToDb(ptDbSaveData,acDbMemStore
,iSmsId);}}T_zUfiSms_CmdStatus zUfiSms_SendOutSms(T_zUfiSms_DbStoreData*
-ptDbSaveData,int cid){int atRes=(0x16e2+4093-0x26df);if(NULL==ptDbSaveData){
+ptDbSaveData,int cid){int atRes=(0x1380+2242-0x1c42);if(NULL==ptDbSaveData){
return WMS_CMD_FAILED;}if(!g_zUfiSms_IsConcatSendSuc){ptDbSaveData->tag=
WMS_TAG_TYPE_MO_NOT_SENT_V01;if(ZUFI_SUCC==zUfiSms_WriteSmsToDb(ptDbSaveData,
-WMS_STORAGE_TYPE_NV_V01,-(0x1888+862-0x1be5))){g_zUfiSms_MsgRefer++;ptDbSaveData
-->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}
-}else{CHAR sendfailRetry[(0x1bd1+704-0x1e5f)]={(0x184d+498-0x1a3f)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x7d1+5392-0x1ce1)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0xe71+4653-0x209b);}
-atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
+WMS_STORAGE_TYPE_NV_V01,-(0xb8b+539-0xda5))){g_zUfiSms_MsgRefer++;ptDbSaveData->
+msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}}
+else{CHAR sendfailRetry[(0x7c1+7055-0x231e)]={(0xa3d+2232-0x12f5)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0xd8a+5779-0x241d)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0xc44+735-0xf20);}atRes
+=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
zSms_RecvCmgsOk();}}return WMS_CMD_SUCCESS;}int zUfiSms_SendConcatSms(int cid){
-int atRes=(0xbfb+5081-0x1fd4);T_zUfiSms_ClientMsg tClientMsg;
+int atRes=(0x11b0+2921-0x1d19);T_zUfiSms_ClientMsg tClientMsg;
T_zUfiSms_DbStoreData tDbSaveData;int result=ZUFI_FAIL;if(g_zUfiSms_ConcatSms.
current_sending>=g_zUfiSms_ConcatSms.total_msg){return ZUFI_FAIL;}memset((void*)
-&tClientMsg,(0x1c15+401-0x1da6),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
-tDbSaveData,(0xcc7+5753-0x2340),sizeof(tDbSaveData));zUfiSms_SetPduData(&
+&tClientMsg,(0x605+8142-0x25d3),sizeof(T_zUfiSms_ClientMsg));memset((void*)&
+tDbSaveData,(0x1f63+1955-0x2706),sizeof(tDbSaveData));zUfiSms_SetPduData(&
tClientMsg,&tDbSaveData);if(!g_zUfiSms_IsConcatSendSuc){tDbSaveData.tag=
WMS_TAG_TYPE_MO_NOT_SENT_V01;(void)zUfiSms_WriteSmsToDb(&tDbSaveData,
-WMS_STORAGE_TYPE_NV_V01,-(0x283+5504-0x1802));g_zUfiSms_SendFailedCount++;}else{
-CHAR sendfailRetry[(0x506+2296-0xdcc)]={(0x1b17+2216-0x23bf)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x23a6+423-0x254d)==
-strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x498+1896-0xbfd);}
+WMS_STORAGE_TYPE_NV_V01,-(0x1cd8+2464-0x2677));g_zUfiSms_SendFailedCount++;}else
+{CHAR sendfailRetry[(0x5a0+5548-0x1b1a)]={(0x1d56+764-0x2052)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1ab+5726-0x1809)==
+strcmp("\x31",sendfailRetry)){g_zUfiSms_SendFailedRetry=(0x7e1+4175-0x182d);}
atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){zSms_RecvCmgsErr();}else{
zSms_RecvCmgsOk();}}g_zUfiSms_ConcatSms.current_sending++;if(g_zUfiSms_ConcatSms
.current_sending<g_zUfiSms_ConcatSms.total_msg){if(g_zUfiSms_ConcatSms.sms_len<
-g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0x16+6235-0x1870))){
+g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.current_sending+(0x11fa+3094-0x1e0f))){
g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.sms_len-g_zUfiSms_UnitLen*
g_zUfiSms_ConcatSms.current_sending;}}if(g_zUfiSms_ConcatSms.current_sending==
g_zUfiSms_ConcatSms.total_msg&&!g_zUfiSms_IsConcatSendSuc){T_zUfiSms_StatusInfo
-tSendStatus;memset((void*)&tSendStatus,(0x4c7+7982-0x23f5),sizeof(
+tSendStatus;memset((void*)&tSendStatus,(0x3ac+6623-0x1d8b),sizeof(
T_zUfiSms_StatusInfo));tSendStatus.err_code=ZTE_SMS_CMS_NONE;tSendStatus.
send_failed_count=g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=
-(0x106+8140-0x20d2);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
+(0x1af5+1584-0x2125);tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=
WMS_SMS_CMD_MSG_SEND;(void)zUfiSms_SetCmdStatus(&tSendStatus);sc_cfg_set(
NV_SMS_SEND_RESULT,"\x66\x61\x69\x6c");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");
return ZUFI_FAIL;}if(!g_zUfiSms_IsConcatSendSuc){zUfiSms_SendConcatSms(cid);}
-return result;}int zSvr_sendCmgs(VOID){int atRes=(0x480+3029-0x1055);int i=
-(0x1b4f+143-0x1bde);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
-sendfailRetry[(0x547+6604-0x1ee1)]={(0x86b+1047-0xc82)};sc_cfg_get(
-NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0xcc+7279-0x1d3b)==
-strcmp("\x31",sendfailRetry)){for(i=(0xc4a+1212-0x1106);i<SMS_RETRY_COUNT;i++){
+return result;}int zSvr_sendCmgs(VOID){int atRes=(0x10c5+5346-0x25a7);int i=
+(0x1135+2404-0x1a99);atRes=zSms_SendCmgsReq();if(atRes!=ZSMS_RESULT_OK){CHAR
+sendfailRetry[(0x2053+1561-0x263a)]={(0x874+2213-0x1119)};sc_cfg_get(
+NV_SENDFAIL_RETRY,sendfailRetry,sizeof(sendfailRetry));if((0x1574+3020-0x2140)==
+strcmp("\x31",sendfailRetry)){for(i=(0x105c+3484-0x1df8);i<SMS_RETRY_COUNT;i++){
atRes=zSms_SendCmgsReq();if(atRes==ZSMS_RESULT_OK){break;}}}}return atRes;}
T_zUfiSms_CmdStatus zUfiSms_SendSms(VOID){T_zUfiSms_ClientMsg tClientMsg;
-T_zUfiSms_DbStoreData tDbSaveData;int res=(0x11ca+5271-0x2661);if(-
-(0x55d+156-0x5f8)==g_zUfiSms_UnitLen){printf(
+T_zUfiSms_DbStoreData tDbSaveData;int res=(0x61f+1063-0xa46);if(-
+(0x11cd+4416-0x230c)==g_zUfiSms_UnitLen){printf(
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x53\x6d\x73\x3a\x20\x4e\x6f\x20\x63\x6f\x6e\x74\x65\x6e\x74\x21\x2e" "\n"
);return WMS_CMD_FAILED;}while(g_zUfiSms_ConcatSms.current_sending<
-g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0x1d28+758-0x201e),
-sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x636+1158-0xabc),
+g_zUfiSms_ConcatSms.total_msg){memset((void*)&tClientMsg,(0x5ca+5358-0x1ab8),
+sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x18c4+2223-0x2173),
sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&tDbSaveData);if(!
g_zUfiSms_IsConcatSendSuc){tDbSaveData.tag=WMS_TAG_TYPE_MO_NOT_SENT_V01;(void)
-zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0x5cb+7460-0x22ee));
+zUfiSms_WriteSmsToDb(&tDbSaveData,WMS_STORAGE_TYPE_NV_V01,-(0x8c5+5515-0x1e4f));
g_zUfiSms_SendFailedCount++;}else{res=zSvr_sendCmgs();if(res!=ZSMS_RESULT_OK){
zSms_RecvCmgsErr();}else{zSms_RecvCmgsOk();}}g_zUfiSms_ConcatSms.current_sending
++;if(g_zUfiSms_ConcatSms.current_sending<g_zUfiSms_ConcatSms.total_msg){if(
g_zUfiSms_ConcatSms.sms_len<g_zUfiSms_UnitLen*(g_zUfiSms_ConcatSms.
-current_sending+(0x92c+926-0xcc9))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
+current_sending+(0x1131+2628-0x1b74))){g_zUfiSms_UnitLen=g_zUfiSms_ConcatSms.
sms_len-g_zUfiSms_UnitLen*g_zUfiSms_ConcatSms.current_sending;}}if(
g_zUfiSms_ConcatSms.current_sending==g_zUfiSms_ConcatSms.total_msg&&!
g_zUfiSms_IsConcatSendSuc){T_zUfiSms_StatusInfo tSendStatus;memset((void*)&
-tSendStatus,(0x87b+3480-0x1613),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
+tSendStatus,(0x368+3868-0x1284),sizeof(T_zUfiSms_StatusInfo));tSendStatus.
err_code=ZTE_SMS_CMS_NONE;tSendStatus.send_failed_count=
-g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0xe72+2162-0x16e4);
+g_zUfiSms_SendFailedCount;tSendStatus.delete_failed_count=(0xd75+2504-0x173d);
tSendStatus.cmd_status=WMS_CMD_FAILED;tSendStatus.cmd=WMS_SMS_CMD_MSG_SEND;(void
)zUfiSms_SetCmdStatus(&tSendStatus);sc_cfg_set(NV_SMS_SEND_RESULT,
"\x66\x61\x69\x6c");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");}}
-#if (0x484+6109-0x1c61)
-if(g_zUfiSms_ConcatSms.total_msg>(0x168c+1997-0x1e58)){printf(
+#if (0x1001+2387-0x1954)
+if(g_zUfiSms_ConcatSms.total_msg>(0xf4d+3042-0x1b2e)){printf(
"\x3d\x3d\x3d\x3d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x2e" "\n"
-);zUfiSms_SendConcatSms(cid);}else{memset((void*)&tClientMsg,(0x75c+3066-0x1356)
-,sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,(0x6ed+399-0x87c),
-sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&tDbSaveData);printf(
+);zUfiSms_SendConcatSms(cid);}else{memset((void*)&tClientMsg,
+(0x13c9+1242-0x18a3),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tDbSaveData,
+(0x823+4573-0x1a00),sizeof(tDbSaveData));zUfiSms_SetPduData(&tClientMsg,&
+tDbSaveData);printf(
"\x3d\x3d\x3d\x3d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x6e\x6f\x72\x61\x6d\x6c\x53\x6d\x73\x2e" "\n"
);if(WMS_CMD_FAILED==zUfiSms_SendOutSms(&tDbSaveData,cid)){printf(
"\x21\x21\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x4f\x75\x74\x53\x6d\x73\x20\x46\x61\x69\x6c\x2e" "\n"
);g_zUfiSms_SendFailedCount++;return WMS_CMD_FAILED;}}
#endif
return WMS_CMD_SUCCESS;}int zUfiSms_FormatDeliverTimestamp(T_zUfiSms_Date tData,
-T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x1329+3486-0x20c2)]={
-(0x1b3+4065-0x1194)};int tmp_i=(0x3f9+5941-0x1b2e);memset(ptTimestamp,
-(0xec6+4461-0x2033),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
-(0x64d+7797-0x24c1)){ptTimestamp->year=zUfiSms_atohex(
-((char)(0x19b6+3354-0x26a0)))*(0x148f+767-0x177e)+zUfiSms_atohex(tData.year[
-(0xc66+2724-0x170a)]);}else if(strlen(tData.year)==(0x18f4+695-0x1ba9)){
-ptTimestamp->year=zUfiSms_atohex(tData.year[(0x877+4896-0x1b97)])*
-(0x6f5+2394-0x103f)+zUfiSms_atohex(tData.year[(0x18d4+2777-0x23ac)]);}else if(
-strlen(tData.year)==(0x587+6616-0x1f5b)){ptTimestamp->year=zUfiSms_atohex(tData.
-year[(0xe99+4600-0x208f)])*(0xc1c+3414-0x1962)+zUfiSms_atohex(tData.year[
-(0x476+8435-0x2566)]);}else{printf(
+T_zUfiSms_TimeStamp*ptTimestamp){unsigned char tTimeZone[(0x5f3+8307-0x2661)]={
+(0xc52+186-0xd0c)};int tmp_i=(0xc40+4877-0x1f4d);memset(ptTimestamp,
+(0x1981+2514-0x2353),sizeof(T_zUfiSms_TimeStamp));if(strlen(tData.year)==
+(0x1453+2717-0x1eef)){ptTimestamp->year=zUfiSms_atohex(
+((char)(0x1a6c+2753-0x24fd)))*(0xcaa+387-0xe1d)+zUfiSms_atohex(tData.year[
+(0x586+3377-0x12b7)]);}else if(strlen(tData.year)==(0xe1c+6343-0x26e1)){
+ptTimestamp->year=zUfiSms_atohex(tData.year[(0x54f+6866-0x2021)])*
+(0x448+2072-0xc50)+zUfiSms_atohex(tData.year[(0x687+6854-0x214c)]);}else if(
+strlen(tData.year)==(0x94+7628-0x1e5c)){ptTimestamp->year=zUfiSms_atohex(tData.
+year[(0x85+3335-0xd8a)])*(0xfd+7347-0x1da0)+zUfiSms_atohex(tData.year[
+(0x2080+543-0x229c)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x79\x65\x61\x72\x2e");return ZUFI_FAIL;}if(
-strlen(tData.month)==(0x681+5568-0x1c40)){ptTimestamp->month=zUfiSms_atohex(
-((char)(0xd14+2552-0x16dc)))*(0xecd+6096-0x268d)+zUfiSms_atohex(tData.month[
-(0x975+5748-0x1fe9)]);}else if(strlen(tData.month)==(0x1a20+1856-0x215e)){
-ptTimestamp->month=zUfiSms_atohex(tData.month[(0x181b+2025-0x2004)])*
-(0x1bbd+891-0x1f28)+zUfiSms_atohex(tData.month[(0x2fc+4986-0x1675)]);}else{
+strlen(tData.month)==(0xf27+1285-0x142b)){ptTimestamp->month=zUfiSms_atohex(
+((char)(0x2d6+1199-0x755)))*(0x3af+6472-0x1ce7)+zUfiSms_atohex(tData.month[
+(0x425+1607-0xa6c)]);}else if(strlen(tData.month)==(0x5ba+840-0x900)){
+ptTimestamp->month=zUfiSms_atohex(tData.month[(0x218c+1401-0x2705)])*
+(0x2133+446-0x22e1)+zUfiSms_atohex(tData.month[(0x1e2+4810-0x14ab)]);}else{
printf("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.day)
-==(0x1569+1325-0x1a95)){ptTimestamp->day=zUfiSms_atohex(
-((char)(0xa7+9626-0x2611)))*(0x443+7512-0x218b)+zUfiSms_atohex(tData.day[
-(0x1996+682-0x1c40)]);}else if(strlen(tData.day)==(0x5f1+183-0x6a6)){ptTimestamp
-->day=zUfiSms_atohex(tData.day[(0x91a+263-0xa21)])*(0x1c94+1064-0x20ac)+
-zUfiSms_atohex(tData.day[(0x10c3+1959-0x1869)]);}else{printf(
+==(0x1737+706-0x19f8)){ptTimestamp->day=zUfiSms_atohex(
+((char)(0x245+1687-0x8ac)))*(0xb09+2940-0x1675)+zUfiSms_atohex(tData.day[
+(0x18b9+212-0x198d)]);}else if(strlen(tData.day)==(0x5d7+7487-0x2314)){
+ptTimestamp->day=zUfiSms_atohex(tData.day[(0xf82+3604-0x1d96)])*
+(0x7b5+1748-0xe79)+zUfiSms_atohex(tData.day[(0x1c1d+922-0x1fb6)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x64\x61\x79\x2e");}if(strlen(tData.hour)==
-(0xcbb+1636-0x131e)){ptTimestamp->hour=zUfiSms_atohex(
-((char)(0x1ba5+1903-0x22e4)))*(0xf07+2482-0x18a9)+zUfiSms_atohex(tData.hour[
-(0x3a6+922-0x740)]);}else if(strlen(tData.hour)==(0x1270+1028-0x1672)){
-ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0x229+625-0x49a)])*
-(0x21a+4517-0x13af)+zUfiSms_atohex(tData.hour[(0xb5d+4138-0x1b86)]);}else{printf
+(0x1731+1304-0x1c48)){ptTimestamp->hour=zUfiSms_atohex(
+((char)(0x935+6727-0x234c)))*(0x1ed7+1820-0x25e3)+zUfiSms_atohex(tData.hour[
+(0x102d+1210-0x14e7)]);}else if(strlen(tData.hour)==(0x1dd6+665-0x206d)){
+ptTimestamp->hour=zUfiSms_atohex(tData.hour[(0x646+7557-0x23cb)])*
+(0x1535+3739-0x23c0)+zUfiSms_atohex(tData.hour[(0x35c+2599-0xd82)]);}else{printf
("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x68\x6f\x75\x72\x2e");}if(strlen(tData.min)==
-(0x1e89+635-0x2103)){ptTimestamp->minute=zUfiSms_atohex(
-((char)(0x7c9+1765-0xe7e)))*(0x177f+3153-0x23c0)+zUfiSms_atohex(tData.min[
-(0x77b+2021-0xf60)]);}else if(strlen(tData.min)==(0xefc+660-0x118e)){ptTimestamp
-->minute=zUfiSms_atohex(tData.min[(0xd8+6553-0x1a71)])*(0x23b5+646-0x262b)+
-zUfiSms_atohex(tData.min[(0x1116+871-0x147c)]);}else{printf(
-"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(tData
-.sec)==(0x162f+1507-0x1c11)){ptTimestamp->second=zUfiSms_atohex(
-((char)(0x47+5015-0x13ae)))*(0x1a85+2171-0x22f0)+zUfiSms_atohex(tData.sec[
-(0x1ef5+819-0x2228)]);}else if(strlen(tData.sec)==(0x1b46+309-0x1c79)){
-ptTimestamp->second=zUfiSms_atohex(tData.sec[(0x550+5263-0x19df)])*
-(0xf97+606-0x11e5)+zUfiSms_atohex(tData.sec[(0x2f8+6051-0x1a9a)]);}else{printf(
+(0x811+901-0xb95)){ptTimestamp->minute=zUfiSms_atohex(
+((char)(0x1f4f+1078-0x2355)))*(0x594+3003-0x113f)+zUfiSms_atohex(tData.min[
+(0x5e6+7137-0x21c7)]);}else if(strlen(tData.min)==(0x1d70+442-0x1f28)){
+ptTimestamp->minute=zUfiSms_atohex(tData.min[(0xaf3+876-0xe5f)])*
+(0x15a7+2733-0x2044)+zUfiSms_atohex(tData.min[(0x810+4513-0x19b0)]);}else{printf
+("\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x6d\x69\x6e\x75\x74\x65\x2e");}if(strlen(
+tData.sec)==(0x1803+1620-0x1e56)){ptTimestamp->second=zUfiSms_atohex(
+((char)(0x14df+3241-0x2158)))*(0x1ed6+1202-0x2378)+zUfiSms_atohex(tData.sec[
+(0x89c+3056-0x148c)]);}else if(strlen(tData.sec)==(0x604+774-0x908)){ptTimestamp
+->second=zUfiSms_atohex(tData.sec[(0xc3f+5525-0x21d4)])*(0x2d9+9157-0x268e)+
+zUfiSms_atohex(tData.sec[(0x10e9+767-0x13e7)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x73\x65\x63\x6f\x6e\x64\x2e");}tmp_i=atoi(
-tData.timezone);if(tmp_i<INT_MIN+(0x35f+979-0x731)||tmp_i>INT_MAX-
-(0xbb0+6030-0x233d)){printf(
+tData.timezone);if(tmp_i<INT_MIN+(0x15+5496-0x158c)||tmp_i>INT_MAX-
+(0xd40+6240-0x259f)){printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x74\x44\x61\x74\x61\x20\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x3a\x25\x64\x2e" "\n"
-,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0x234c+788-0x2660),sizeof(tTimeZone)
-);snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0xa1+375-0x214));if(
-tData.timezone[(0xba2+1049-0xfbb)]==((char)(0x10aa+4156-0x20b9))){if(strlen(
-tTimeZone)==(0x256+5157-0x1679)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0xcca+6755-0x26fd)))*(0x768+6226-0x1faa)+zUfiSms_atohex(tTimeZone[
-(0x920+5120-0x1d1f)]);}else if(strlen(tTimeZone)==(0x1533+3661-0x237d)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x1727+1093-0x1b6b)])*
-(0x14d+401-0x2d4)+zUfiSms_atohex(tTimeZone[(0xd84+4823-0x2059)]);}else{printf(
+,tmp_i);return ZUFI_FAIL;}memset(tTimeZone,(0xeaa+5471-0x2409),sizeof(tTimeZone)
+);snprintf(tTimeZone,sizeof(tTimeZone),"\x25\x64",tmp_i*(0x11+4981-0x1382));if(
+tData.timezone[(0x1a0+4731-0x141b)]==((char)(0x927+2771-0x13cd))){if(strlen(
+tTimeZone)==(0x2c5+8968-0x25cb)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x1577+764-0x1843)))*(0x1f4+2761-0xcad)+zUfiSms_atohex(tTimeZone[
+(0x6cb+6374-0x1fb0)]);}else if(strlen(tTimeZone)==(0xec2+5796-0x2563)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x7d5+3338-0x14de)])*
+(0x777+4345-0x1866)+zUfiSms_atohex(tTimeZone[(0x2+8491-0x212b)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2d\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}
-ptTimestamp->timezone=(0x954+5513-0x1edd)-ptTimestamp->timezone;}else{if(strlen(
-tTimeZone)==(0xc79+2392-0x15d0)){ptTimestamp->timezone=zUfiSms_atohex(
-((char)(0xc8f+2127-0x14ae)))*(0x14eb+4143-0x250a)+zUfiSms_atohex(tTimeZone[
-(0x1e99+1327-0x23c8)]);}else if(strlen(tTimeZone)==(0xdff+234-0xee7)){
-ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x24d+3501-0xffa)])*
-(0x1702+134-0x177e)+zUfiSms_atohex(tTimeZone[(0xe2c+319-0xf6a)]);}else{printf(
+ptTimestamp->timezone=(0x1c6+2613-0xbfb)-ptTimestamp->timezone;}else{if(strlen(
+tTimeZone)==(0xdaa+2234-0x1663)){ptTimestamp->timezone=zUfiSms_atohex(
+((char)(0x319+6269-0x1b66)))*(0xc5+3061-0xcaa)+zUfiSms_atohex(tTimeZone[
+(0xd84+989-0x1161)]);}else if(strlen(tTimeZone)==(0x5e8+5330-0x1ab8)){
+ptTimestamp->timezone=zUfiSms_atohex(tTimeZone[(0x636+807-0x95d)])*
+(0x3a7+7741-0x21da)+zUfiSms_atohex(tTimeZone[(0x24ba+455-0x2680)]);}else{printf(
"\x75\x6e\x6b\x6e\x6f\x77\x6e\x20\x2b\x74\x69\x6d\x65\x7a\x6f\x6e\x65\x2e");}}
return ZUFI_SUCC;}void zUfiSms_FillDeliver(T_zUfiSms_DeliverPdu*deliver,
T_zUfiSms_ConcatInfo*concat_sms,T_zUfiSms_DbStoreData*ptDbSaveData){static
-UINT16 msg_ref=(0x1030+2943-0x1baf);deliver->user_data_header_present=TRUE;if(
-(0x11b7+1762-0x1899)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference
-++;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
-user_data_header_present=TRUE;deliver->user_data.num_headers=
-(0x152b+1480-0x1af2);deliver->user_data.headers[(0x2006+921-0x239f)].header_id=
-WMS_UDH_CONCAT_8;deliver->user_data.headers[(0x547+1053-0x964)].u.concat_8.
-msg_ref=msg_ref;deliver->user_data.headers[(0xf63+1534-0x1561)].u.concat_8.
-total_sm=concat_sms->total_msg;deliver->user_data.headers[(0x1287+4932-0x25cb)].
-u.concat_8.seq_num=concat_sms->current_sending+(0x1776+647-0x19fc);ptDbSaveData
-->concat_sms=(0x235+8024-0x218c);ptDbSaveData->concat_info[(0xcc0+5761-0x2341)]=
-msg_ref;}void zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,
-T_zUfiSms_ConcatInfo*concat_sms,T_zUfiSms_GroupInfo*group_sms,int iSmsLen,
-T_zUfiSms_DbStoreData*ptDbSaveData){if(NULL==concat_sms||NULL==group_sms){return
-;}ptDeliver->more=FALSE;ptDeliver->reply_path_present=FALSE;ptDeliver->
-status_report_enabled=g_zUfiSms_CurSmsPara.status_report_on;ptDeliver->pid=
-WMS_PID_DEFAULT;ptDeliver->dcs.msg_class=WMS_MESSAGE_CLASS_NONE;ptDeliver->dcs.
-is_compressed=FALSE;if(g_zUfiSms_Dcs==DCS_ASC){ptDeliver->dcs.alphabet=
-WMS_GW_ALPHABET_7_BIT_DEFAULT;}else{ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_UCS2
-;}if(concat_sms->total_msg>(0x8fb+1344-0xe3a)){zUfiSms_FillDeliver(ptDeliver,
-concat_sms,ptDbSaveData);ptDbSaveData->concat_sms=(0x14e5+3051-0x20cf);
-ptDbSaveData->concat_info[(0x1ee5+606-0x2141)]=concat_sms->current_sending+
-(0x3c5+7385-0x209d);ptDbSaveData->concat_info[(0xaba+109-0xb26)]=concat_sms->
-total_msg;ptDbSaveData->concat_info[(0xe3b+5454-0x2389)]=ptDeliver->user_data.
-headers[(0x12a3+4575-0x2482)].u.concat_8.msg_ref;}else{ptDeliver->
-user_data_header_present=FALSE;ptDeliver->user_data.num_headers=
-(0x159f+1493-0x1b74);}ptDeliver->user_data.sm_len=iSmsLen;memcpy(ptDeliver->
-user_data.sm_data,concat_sms->msg_contents[concat_sms->current_sending],iSmsLen)
-;if(group_sms->receivers[group_sms->current_receiver][(0xeda+5564-0x2496)]==
-((char)(0x9eb+6460-0x22fc))){(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver]+(0x1f6a+799-0x2288),strlen(group_sms->receivers[
-group_sms->current_receiver])-(0xb68+2756-0x162b),ptDeliver->address.digits);
-ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;ptDeliver->address.
-number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms->current_receiver]
-)-(0x54c+4424-0x1693);}else{(void)zUfiSms_CharToInt(group_sms->receivers[
-group_sms->current_receiver],strlen(group_sms->receivers[group_sms->
+UINT16 msg_ref=(0x192a+2352-0x225a);deliver->user_data_header_present=TRUE;if(
+(0x258+9389-0x2705)==concat_sms->current_sending){g_zUfiSms_ConcatSmsReference++
+;(void)zUfiSms_SetConcatMaxRefer(g_zUfiSms_ConcatSmsReference);}deliver->
+user_data_header_present=TRUE;deliver->user_data.num_headers=(0xd59+2782-0x1836)
+;deliver->user_data.headers[(0xce5+4147-0x1d18)].header_id=WMS_UDH_CONCAT_8;
+deliver->user_data.headers[(0x8b3+5104-0x1ca3)].u.concat_8.msg_ref=msg_ref;
+deliver->user_data.headers[(0x1796+1476-0x1d5a)].u.concat_8.total_sm=concat_sms
+->total_msg;deliver->user_data.headers[(0x1009+2685-0x1a86)].u.concat_8.seq_num=
+concat_sms->current_sending+(0xb5f+968-0xf26);ptDbSaveData->concat_sms=
+(0x1a7a+2611-0x24ac);ptDbSaveData->concat_info[(0xfb5+1756-0x1691)]=msg_ref;}
+void zUfiSms_FillDeliverPdu(T_zUfiSms_DeliverPdu*ptDeliver,T_zUfiSms_ConcatInfo*
+concat_sms,T_zUfiSms_GroupInfo*group_sms,int iSmsLen,T_zUfiSms_DbStoreData*
+ptDbSaveData){if(NULL==concat_sms||NULL==group_sms){return;}ptDeliver->more=
+FALSE;ptDeliver->reply_path_present=FALSE;ptDeliver->status_report_enabled=
+g_zUfiSms_CurSmsPara.status_report_on;ptDeliver->pid=WMS_PID_DEFAULT;ptDeliver->
+dcs.msg_class=WMS_MESSAGE_CLASS_NONE;ptDeliver->dcs.is_compressed=FALSE;if(
+g_zUfiSms_Dcs==DCS_ASC){ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_7_BIT_DEFAULT;}
+else{ptDeliver->dcs.alphabet=WMS_GW_ALPHABET_UCS2;}if(concat_sms->total_msg>
+(0xb88+2849-0x16a8)){zUfiSms_FillDeliver(ptDeliver,concat_sms,ptDbSaveData);
+ptDbSaveData->concat_sms=(0x1c33+907-0x1fbd);ptDbSaveData->concat_info[
+(0xe01+811-0x112a)]=concat_sms->current_sending+(0x397+1968-0xb46);ptDbSaveData
+->concat_info[(0xddb+1525-0x13cf)]=concat_sms->total_msg;ptDbSaveData->
+concat_info[(0x54+23-0x6b)]=ptDeliver->user_data.headers[(0x1854+516-0x1a58)].u.
+concat_8.msg_ref;}else{ptDeliver->user_data_header_present=FALSE;ptDeliver->
+user_data.num_headers=(0x1925+6-0x192b);}ptDeliver->user_data.sm_len=iSmsLen;
+memcpy(ptDeliver->user_data.sm_data,concat_sms->msg_contents[concat_sms->
+current_sending],iSmsLen);if(group_sms->receivers[group_sms->current_receiver][
+(0x14f1+3886-0x241f)]==((char)(0x81+579-0x299))){(void)zUfiSms_CharToInt(
+group_sms->receivers[group_sms->current_receiver]+(0xc19+2874-0x1752),strlen(
+group_sms->receivers[group_sms->current_receiver])-(0x553+6455-0x1e89),ptDeliver
+->address.digits);ptDeliver->address.number_type=WMS_NUMBER_INTERNATIONAL;
+ptDeliver->address.number_of_digits=(UINT8)strlen(group_sms->receivers[group_sms
+->current_receiver])-(0xda6+3124-0x19d9);}else{(void)zUfiSms_CharToInt(group_sms
+->receivers[group_sms->current_receiver],strlen(group_sms->receivers[group_sms->
current_receiver]),ptDeliver->address.digits);ptDeliver->address.number_type=
WMS_NUMBER_UNKNOWN;ptDeliver->address.number_of_digits=(UINT8)strlen(group_sms->
receivers[group_sms->current_receiver]);}ptDeliver->address.digit_mode=
@@ -779,7 +779,7 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x61\x76\x65\x43\x6f\x6e\x63\x61\x74\x53\x6d\x73\x20\x6d\x65\x6d\x5f\x73\x74\x6f\x72\x65\x3d\x25\x64\x28\x4e\x56\x3d\x3d\x30\x31\x29" "\n"
,ptSaveSms->mem_store);if(ptSaveSms->mem_store==WMS_STORAGE_TYPE_NV_V01){if(
ZUFI_FAIL==zUfiSms_WriteSmsToDb(ptDbSaveData,WMS_STORAGE_TYPE_NV_V01,-
-(0x1c3d+2407-0x25a3))){at_print(LOG_ERR,
+(0x744+5273-0x1bdc))){at_print(LOG_ERR,
"\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x6e\x76\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return WMS_CMD_FAILED;}}else{return WMS_CMD_FAILED;}g_zUfiSms_MsgRefer++;
ptDbSaveData->msg_ref=g_zUfiSms_MsgRefer;(void)zUfiSms_SetMaxReference(
@@ -794,20 +794,20 @@
zUfiSms_SaveSmsToDb(T_zUfiSms_SaveReq*ptSaveSms,T_zUfiSms_ConcatInfo*ptConcatSms
,T_zUfiSms_GroupInfo*ptGroupSms,int iSmsLength){T_zUfiSms_ClientTsData
tClientTsData;T_zUfiSms_ClientMsg tClientMsg;T_zUfiSms_DbStoreData tDbSaveData;
-T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;int current_sending=(0x286+220-0x362)
-;if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-(0x16db+598-0x1930)
-==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->current_sending=
-(0x340+9143-0x26f7);ptConcatSms->current_sending<ptConcatSms->total_msg;
-ptConcatSms->current_sending++){memset((void*)&tClientMsg,(0x81d+1920-0xf9d),
-sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,(0xff9+1883-0x1754),
-sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,(0xa57+5944-0x218f),
-sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store=(ptSaveSms->
-mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
+T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;int current_sending=
+(0xa02+7147-0x25ed);if(NULL==ptSaveSms||NULL==ptConcatSms||NULL==ptGroupSms||(-
+(0x1d35+849-0x2085)==iSmsLength)){return WMS_CMD_FAILED;}for(ptConcatSms->
+current_sending=(0x466+3778-0x1328);ptConcatSms->current_sending<ptConcatSms->
+total_msg;ptConcatSms->current_sending++){memset((void*)&tClientMsg,
+(0x78f+6137-0x1f88),sizeof(T_zUfiSms_ClientMsg));memset((void*)&tClientTsData,
+(0x1f0+8688-0x23e0),sizeof(T_zUfiSms_ClientTsData));memset((void*)&tDbSaveData,
+(0x87+9380-0x252b),sizeof(T_zUfiSms_DbStoreData));tClientMsg.msg_hdr.mem_store=(
+ptSaveSms->mem_store==WMS_STORAGE_TYPE_UIM_V01)?WMS_STORAGE_TYPE_UIM_V01:
WMS_STORAGE_TYPE_NV_V01;tClientMsg.msg_hdr.tag=(T_zUfiSms_SmsTag)ptSaveSms->tags
;tClientMsg.msg_hdr.message_mode=WMS_MESSAGE_MODE_GW;tClientMsg.u.gw_message.
is_broadcast=FALSE;tClientTsData.format=WMS_FORMAT_GW_PP;switch(ptSaveSms->tags)
{case WMS_TAG_TYPE_MO_SENT_V01:case WMS_TAG_TYPE_MO_NOT_SENT_V01:case
-(0xd50+6130-0x253e):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
+(0x528+5023-0x18c3):{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_SUBMIT;(void)
zUfiSms_FillSubmitTpdu(ptConcatSms,ptGroupSms,iSmsLength,&tClientTsData.u.gw_pp.
u.submit,&tDbSaveData);break;}case WMS_TAG_TYPE_MT_READ_V01:case
WMS_TAG_TYPE_MT_NOT_READ_V01:{tClientTsData.u.gw_pp.tpdu_type=WMS_TPDU_DELIVER;(
@@ -819,42 +819,42 @@
zUfiSms_FillSca(&tClientMsg);zUfiSms_FillDbSaveData(&tClientMsg,&tClientTsData,
ptConcatSms,ptGroupSms,iSmsLength,&tDbSaveData);strncpy(tDbSaveData.
draft_group_id,ptSaveSms->draft_group_id,sizeof(tDbSaveData.draft_group_id)-
-(0x110c+2329-0x1a24));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
+(0x1249+3661-0x2095));if(TRUE==g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){result=
WMS_CMD_FAILED;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x61\x76\x65\x53\x6d\x73\x54\x6f\x44\x62\x20\x4e\x56\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x66\x75\x6c\x6c\x2c\x73\x61\x76\x65\x20\x65\x72\x72\x6f\x72" "\n"
-);}else{if(tDbSaveData.concat_sms==(0x2114+210-0x21e5)){result=
+);}else{if(tDbSaveData.concat_sms==(0x15f2+1776-0x1ce1)){result=
zUfiSms_SaveConcatSms(ptSaveSms,ptConcatSms,ptGroupSms,&tDbSaveData,iSmsLength);
-current_sending=ptConcatSms->current_sending+(0x12b6+2353-0x1be6);if(ptConcatSms
-->sms_len<iSmsLength*(current_sending+(0x8f+6270-0x190c))){iSmsLength=
-ptConcatSms->sms_len-iSmsLength*current_sending;}}else{result=
-zUfiSms_SaveNormalSms(ptSaveSms,&tDbSaveData);}}}return result;}int
-zUfiSms_DeleteSmsInSim(){char str_index[(0x1299+2567-0x1c20)]={
-(0x982+4865-0x1c83)};int index=(0x10d2+1975-0x1889);int is_cc=
-(0x116c+5479-0x26d3);int iSmsId=(0xb49+2883-0x168c);T_zUfiSms_ModifyTag
-tDeleteInfo={(0xf9c+647-0x1223)};char StrValue[(0x1bdb+1518-0x21bf)]={
-(0x2e0+1082-0x71a)};memset(&tDeleteInfo,(0x371+1284-0x875),sizeof(
-T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id[g_zUfiSms_DelMsg.sim_index]
-;if(-(0x28a+6897-0x1d7a)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){printf(
+current_sending=ptConcatSms->current_sending+(0x48f+1638-0xaf4);if(ptConcatSms->
+sms_len<iSmsLength*(current_sending+(0x5cf+6774-0x2044))){iSmsLength=ptConcatSms
+->sms_len-iSmsLength*current_sending;}}else{result=zUfiSms_SaveNormalSms(
+ptSaveSms,&tDbSaveData);}}}return result;}int zUfiSms_DeleteSmsInSim(){char
+str_index[(0x3f0+9061-0x26d5)]={(0x45+4521-0x11ee)};int index=
+(0x411+3242-0x10bb);int is_cc=(0xf68+343-0x10bf);int iSmsId=(0x1f7+7170-0x1df9);
+T_zUfiSms_ModifyTag tDeleteInfo={(0x498+5241-0x1911)};char StrValue[
+(0x1a13+2059-0x2214)]={(0xf29+864-0x1289)};memset(&tDeleteInfo,
+(0x1759+3384-0x2491),sizeof(T_zUfiSms_ModifyTag));iSmsId=g_zUfiSms_DelMsg.sim_id
+[g_zUfiSms_DelMsg.sim_index];if(-(0x119a+3636-0x1fcd)==(is_cc=
+zUfiSms_IsConcatSms(iSmsId))){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x49\x6e\x53\x69\x6d\x20\x63\x68\x65\x63\x6b\x20\x63\x6f\x6e\x63\x61\x74\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
);return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x49\x6e\x53\x69\x6d\x20\x69\x73\x5f\x63\x63\x3a\x25\x64\x2c\x20\x69\x64\x3d\x25\x64" "\n"
-,is_cc,iSmsId);if((0x732+4146-0x1763)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(
+,is_cc,iSmsId);if((0xd56+45-0xd82)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(
iSmsId,&tDeleteInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_DelMsg.sim_index++;
g_zUfiSms_DelMsg.sim_index_count--;while(tDeleteInfo.num_of_indices>
-(0xc40+2977-0x17e1)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
+(0x133+4082-0x1125)){index=tDeleteInfo.indices[tDeleteInfo.id_index];
g_deleteIndex.index[g_deleteIndex.total]=index;g_deleteIndex.total++;tDeleteInfo
.id_index++;tDeleteInfo.num_of_indices--;}}else{memset(str_index,
-(0x1afb+1942-0x2291),sizeof(str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
+(0x1876+2535-0x225d),sizeof(str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById(
"\x69\x6e\x64",str_index,sizeof(str_index),iSmsId)){at_print(LOG_ERR,
"\x67\x65\x74\x20\x69\x6e\x64\x65\x78\x20\x66\x72\x6f\x6d\x20\x64\x62\x20\x66\x61\x69\x6c\x64\x2e"
);return ZUFI_FAIL;}index=atoi(str_index);g_deleteIndex.index[g_deleteIndex.
total]=index;g_deleteIndex.total++;g_zUfiSms_DelMsg.sim_index++;g_zUfiSms_DelMsg
.sim_index_count--;}(void)zUfiSms_DeleteSmsInDb();return ZUFI_SUCC;}
-T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0x176f+2112-0x1faf);
-char StrValue[(0x7ac+1049-0xbbb)]={(0x1494+3661-0x22e1)};zUfiSms_SetSmsLocation(
-SMS_LOCATION_SIM);memset(&g_deleteIndex,(0x465+4143-0x1494),sizeof(
-T_zUfiSms_DelIndexInfo));while(g_zUfiSms_DelMsg.sim_index_count>
-(0x4d8+5443-0x1a1b)){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
+T_zUfiSms_CmdStatus zUfiSms_DeleteSimSms(VOID){int atRes=(0xaa8+5250-0x1f2a);
+char StrValue[(0xedf+1529-0x14ce)]={(0x1dc1+194-0x1e83)};zUfiSms_SetSmsLocation(
+SMS_LOCATION_SIM);memset(&g_deleteIndex,(0xcdf+1907-0x1452),sizeof(
+T_zUfiSms_DelIndexInfo));while(g_zUfiSms_DelMsg.sim_index_count>(0x6a1+88-0x6f9)
+){if(ZUFI_FAIL==zUfiSms_DeleteSmsInSim()){printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x64\x65\x6c\x65\x74\x65\x20\x61\x6c\x6c\x3a\x25\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64" "\n"
,WMS_STORAGE_TYPE_UIM_V01);return WMS_CMD_FAILED;}}while(g_deleteIndex.cur_index
<g_deleteIndex.total){atRes=zSms_SendCmgdReq(g_deleteIndex.index[g_deleteIndex.
@@ -863,69 +863,70 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x73\x75\x63\x63\x65\x73\x73" "\n"
);return WMS_CMD_SUCCESS;}void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat){
unsigned char tmp;unsigned char first_octet;if(pdu_tmp==NULL){return;}(void)
-String2Bytes(pdu_tmp,&tmp,(0x1405+1037-0x1810));if(tmp==(0x9c8+626-0xc3a)){
-pdu_tmp+=(0x96d+4374-0x1a81);}else{tmp=(tmp+(0x194a+3152-0x2599))*
-(0x93+8794-0x22eb);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
-(0x17b+4598-0x136f));first_octet=tmp;if(first_octet&(0x399+540-0x5b3)){*stat=
-(0x20e3+425-0x2287);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
-T_zUfiSms_TpduType iTpduType;UINT8 mti=(0xedb+2255-0x17aa);mti=(
-T_zUfiSms_TpduType)(pData[(0x1625+2280-0x1f0d)]&(0x3e3+3341-0x10ed));switch(mti)
-{case(0x16b5+3920-0x2605):iTpduType=WMS_TPDU_DELIVER;break;case
-(0x117d+1167-0x160b):iTpduType=WMS_TPDU_SUBMIT;break;case(0x1f24+498-0x2114):
-iTpduType=WMS_TPDU_STATUS_REPORT;break;default:iTpduType=WMS_TPDU_MAX;break;}
-return iTpduType;}static void zUfiSms_FormatDeliverNumber(wms_address_s_type
-tAddress,unsigned char*pNumber){UINT8 number_type=(0x19f8+512-0x1bf8);memset(
-pNumber,(0xdf0+5535-0x238f),ZTE_WMS_ADDRESS_LEN_MAX+(0x59d+1160-0xa24));if(
-tAddress.number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x1d27+1537-0x2328)]=
-((char)(0x6ba+5053-0x1a4c));pNumber++;}if(tAddress.digit_mode!=
+String2Bytes(pdu_tmp,&tmp,(0x1a98+580-0x1cda));if(tmp==(0xba9+6921-0x26b2)){
+pdu_tmp+=(0x193+4734-0x140f);}else{tmp=(tmp+(0x10bb+3926-0x2010))*
+(0x426+8826-0x269e);pdu_tmp+=tmp;}(void)String2Bytes(pdu_tmp,&tmp,
+(0x1cf+5704-0x1815));first_octet=tmp;if(first_octet&(0x1997+2423-0x230c)){*stat=
+(0x94a+894-0xcc3);}}T_zUfiSms_TpduType zUfiSms_GetTpduType(UINT8*pData){
+T_zUfiSms_TpduType iTpduType;UINT8 mti=(0x121+728-0x3f9);mti=(T_zUfiSms_TpduType
+)(pData[(0x1972+432-0x1b22)]&(0xac5+7029-0x2637));switch(mti){case
+(0x218d+442-0x2347):iTpduType=WMS_TPDU_DELIVER;break;case(0x209+932-0x5ac):
+iTpduType=WMS_TPDU_SUBMIT;break;case(0x3f9+6519-0x1d6e):iTpduType=
+WMS_TPDU_STATUS_REPORT;break;default:iTpduType=WMS_TPDU_MAX;break;}return
+iTpduType;}static void zUfiSms_FormatDeliverNumber(wms_address_s_type tAddress,
+unsigned char*pNumber){UINT8 number_type=(0x55f+5266-0x19f1);memset(pNumber,
+(0x1a61+2679-0x24d8),ZTE_WMS_ADDRESS_LEN_MAX+(0x19e9+2026-0x21d2));if(tAddress.
+number_type==WMS_NUMBER_INTERNATIONAL){pNumber[(0x1576+3840-0x2476)]=
+((char)(0x2a3+6247-0x1adf));pNumber++;}if(tAddress.digit_mode!=
WMS_DIGIT_MODE_8_BIT){(void)zUfiSms_SmsiAddrToStr(tAddress,(byte*)pNumber,&
number_type);}else{memcpy(pNumber,tAddress.digits,tAddress.number_of_digits*
-sizeof(tAddress.digits[(0x5c9+442-0x783)]));}}byte*zUfiSms_UtilTimeStamp(
+sizeof(tAddress.digits[(0x11d9+596-0x142d)]));}}byte*zUfiSms_UtilTimeStamp(
T_zUfiSms_TimeStamp zte_wms_time,byte*res_ptr,T_zUfiSms_Date*date){UINT8 tmp;if(
-NULL==date){return NULL;}*res_ptr++=((char)(0x408+4578-0x15c8));tmp=zte_wms_time
-.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xfa5+4766-0x2234))+((tmp>>
-(0xb6c+962-0xf2a))*(0x466+2841-0xf75)),res_ptr);zUfiSms_SprintfTime(date->year,
-sizeof(date->year),zte_wms_time.year);*res_ptr++=((char)(0x16e0+993-0x1a92));tmp
-=zte_wms_time.month;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x11c0+1503-0x1790))+
-((tmp>>(0x1f2+1643-0x859))*(0x1e86+200-0x1f44)),res_ptr);zUfiSms_SprintfTime(
-date->month,sizeof(date->month),zte_wms_time.month);*res_ptr++=
-((char)(0x1130+4566-0x22d7));tmp=zte_wms_time.day;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x9a0+5212-0x1ded))+((tmp>>(0x14f+771-0x44e))*
-(0x6a7+7995-0x25d8)),res_ptr);zUfiSms_SprintfTime(date->day,sizeof(date->day),
-zte_wms_time.day);*res_ptr++=((char)(0x2238+619-0x2477));tmp=zte_wms_time.hour;
-res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xde8+5295-0x2288))+((tmp>>
-(0x117d+3671-0x1fd0))*(0xde5+4580-0x1fbf)),res_ptr);zUfiSms_SprintfTime(date->
-hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=
-((char)(0x19d6+2645-0x23f1));tmp=zte_wms_time.minute;res_ptr=
-zUfiSms_SmsiUtilitoaFill((tmp&(0x1b6c+2240-0x241d))+((tmp>>(0x1271+1902-0x19db))
-*(0xd2c+3052-0x190e)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
-zte_wms_time.minute);*res_ptr++=((char)(0x14bc+1053-0x189f));tmp=zte_wms_time.
-second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x18f+7764-0x1fd4))+((tmp>>
-(0x7d6+530-0x9e4))*(0x4e9+753-0x7d0)),res_ptr);zUfiSms_SprintfTime(date->sec,
+NULL==date){return NULL;}*res_ptr++=((char)(0x848+4772-0x1aca));tmp=zte_wms_time
+.year;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x409+3981-0x1387))+((tmp>>
+(0xc1b+1208-0x10cf))*(0x240+6526-0x1bb4)),res_ptr);zUfiSms_SprintfTime(date->
+year,sizeof(date->year),zte_wms_time.year);*res_ptr++=
+((char)(0x16c3+3043-0x2277));tmp=zte_wms_time.month;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0x1904+630-0x1b6b))+((tmp>>(0xe05+1956-0x15a5))*
+(0xacf+4224-0x1b45)),res_ptr);zUfiSms_SprintfTime(date->month,sizeof(date->month
+),zte_wms_time.month);*res_ptr++=((char)(0x15e1+131-0x1635));tmp=zte_wms_time.
+day;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0xe89+3233-0x1b1b))+((tmp>>
+(0x1c8c+11-0x1c93))*(0x1df+6026-0x195f)),res_ptr);zUfiSms_SprintfTime(date->day,
+sizeof(date->day),zte_wms_time.day);*res_ptr++=((char)(0x1ac+2298-0xa7a));tmp=
+zte_wms_time.hour;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x1217+4432-0x2358))+((
+tmp>>(0x8ed+4122-0x1903))*(0x8f7+6192-0x211d)),res_ptr);zUfiSms_SprintfTime(date
+->hour,sizeof(date->hour),zte_wms_time.hour);*res_ptr++=
+((char)(0x1608+2189-0x1e5b));tmp=zte_wms_time.minute;res_ptr=
+zUfiSms_SmsiUtilitoaFill((tmp&(0xa0a+1111-0xe52))+((tmp>>(0x15ba+3704-0x242e))*
+(0x152f+3860-0x2439)),res_ptr);zUfiSms_SprintfTime(date->min,sizeof(date->min),
+zte_wms_time.minute);*res_ptr++=((char)(0x5f+3465-0xdae));tmp=zte_wms_time.
+second;res_ptr=zUfiSms_SmsiUtilitoaFill((tmp&(0x1680+1232-0x1b41))+((tmp>>
+(0x7e6+1651-0xe55))*(0x255+7104-0x1e0b)),res_ptr);zUfiSms_SprintfTime(date->sec,
sizeof(date->sec),zte_wms_time.second);if(zte_wms_time.timezone<
-(0x170c+1571-0x1d2f)){*res_ptr++=((char)(0x323+8006-0x223c));tmp=(UINT8)(
-zte_wms_time.timezone*(-(0x1fd+4668-0x1438)));snprintf(date->timezone,sizeof(
-date->timezone),"\x2d\x25\x64",-(0x3f6+7794-0x2267)*zte_wms_time.timezone);}else
-{*res_ptr++=((char)(0x942+7542-0x268d));tmp=(UINT8)zte_wms_time.timezone;
-snprintf(date->timezone,sizeof(date->timezone),"\x2b\x25\x64",zte_wms_time.
-timezone);}res_ptr=zUfiSms_SmsiUtilitoaFill(tmp,res_ptr);*res_ptr++=
-((char)(0x16eb+4147-0x26fc));return res_ptr;}T_zUfiSms_CmdStatus
+(0xfd0+1058-0x13f2)){*res_ptr++=((char)(0xa4a+3103-0x163c));tmp=(UINT8)(
+zte_wms_time.timezone*(-(0x84+7661-0x1e70)));snprintf(date->timezone,sizeof(date
+->timezone),"\x2d\x25\x64",-(0x69b+6601-0x2063)*zte_wms_time.timezone);}else{*
+res_ptr++=((char)(0xfc8+5434-0x24d7));tmp=(UINT8)zte_wms_time.timezone;snprintf(
+date->timezone,sizeof(date->timezone),"\x2b\x25\x64",zte_wms_time.timezone);}
+res_ptr=zUfiSms_SmsiUtilitoaFill(tmp,res_ptr);*res_ptr++=
+((char)(0xeac+3101-0x1aa7));return res_ptr;}T_zUfiSms_CmdStatus
zUfiSms_HandleReport(unsigned char*ptPduData){T_zUfiSms_RawTsData tRawTsData;
-T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0x4ad+7019-0x2018);
-unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x1758+725-0x1a2c)];
-unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0x1f41+540-0x215c)];
-T_zUfiSms_Date tSmsDate;char acRecFlag[(0x84d+5823-0x1f07)]={(0xab9+850-0xe0b)};
-int iRpCount=(0x115b+1220-0x161f);char tmp[(0x16f0+3583-0x24e5)];int tmp_i=
-(0x30a+7761-0x215b);unsigned int pos=(0x1481+116-0x14f5);if(NULL==ptPduData){
-return WMS_CMD_FAILED;}memset(acDeliverNumber,(0x1a96+2278-0x237c),sizeof(
-acDeliverNumber));memset(&tSmsDate,(0x1bd+3080-0xdc5),sizeof(T_zUfiSms_Date));
-memset(tTpScts,(0x880+2013-0x105d),sizeof(tTpScts));memset(&tRawTsData,
-(0x98b+7411-0x267e),sizeof(T_zUfiSms_RawTsData));memset(&tClientTsData,
-(0xf87+5902-0x2695),sizeof(T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),
-"\x25\x58",ptPduData[(0x10c+6948-0x1c30)]);tmp_i=atoi(tmp);if(tmp_i<
-(0x807+6229-0x205c)||tmp_i>INT_MAX-(0xd02+2772-0x17d5)){at_print(LOG_ERR,
+T_zUfiSms_ClientTsData tClientTsData;int iReportStatus=(0xe75+5267-0x2308);
+unsigned char acDeliverNumber[ZTE_WMS_ADDRESS_LEN_MAX+(0x3d8+3272-0x109f)];
+unsigned char tTpScts[ZTE_WMS_TP_SCTS_LEN_MAX+(0x1258+2616-0x1c8f)];
+T_zUfiSms_Date tSmsDate;char acRecFlag[(0x141c+357-0x157c)]={
+(0x1449+2961-0x1fda)};int iRpCount=(0x21d4+402-0x2366);char tmp[
+(0xe6+1946-0x876)];int tmp_i=(0x186+4226-0x1208);unsigned int pos=
+(0x1599+3219-0x222c);if(NULL==ptPduData){return WMS_CMD_FAILED;}memset(
+acDeliverNumber,(0x560+6061-0x1d0d),sizeof(acDeliverNumber));memset(&tSmsDate,
+(0x7a4+318-0x8e2),sizeof(T_zUfiSms_Date));memset(tTpScts,(0x16ea+268-0x17f6),
+sizeof(tTpScts));memset(&tRawTsData,(0x12aa+3549-0x2087),sizeof(
+T_zUfiSms_RawTsData));memset(&tClientTsData,(0x114f+2079-0x196e),sizeof(
+T_zUfiSms_ClientTsData));snprintf(tmp,sizeof(tmp),"\x25\x58",ptPduData[
+(0xa80+6689-0x24a1)]);tmp_i=atoi(tmp);if(tmp_i<(0x97c+6318-0x222a)||tmp_i>
+INT_MAX-(0x1db2+1137-0x2222)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x70\x74\x50\x64\x75\x44\x61\x74\x61\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0x151+6339-0x1a13);if(pos>=
+,tmp_i);return WMS_CMD_FAILED;}pos=tmp_i+(0x11ca+3773-0x2086);if(pos>=
ZSMS_PDU_SIZE){return WMS_CMD_FAILED;}memcpy((void*)tRawTsData.data,(void*)(
ptPduData+pos),sizeof(tRawTsData.data));tRawTsData.tpdu_type=zUfiSms_GetTpduType
(ptPduData+pos);tRawTsData.format=WMS_FORMAT_GW_PP;(void)wms_ts_decode(&
@@ -934,59 +935,59 @@
"\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x67\x77\x2f\x77\x63\x64\x6d\x61\x20\x73\x6d\x73\x20\x72\x65\x70\x6f\x72\x74\x20\x73\x74\x61\x74\x75\x73\x2e"
);return WMS_CMD_FAILED;}switch(tClientTsData.u.gw_pp.u.status_report.tp_status)
{case WMS_TP_STATUS_RECEIVED_OK:case WMS_TP_STATUS_UNABLE_TO_CONFIRM_DELIVERY:
-case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x63b+5076-0x1a0e);break;}case
+case WMS_TP_STATUS_REPLACED:{iReportStatus=(0x1a2a+773-0x1d2e);break;}case
WMS_TP_STATUS_TRYING_CONGESTION:case WMS_TP_STATUS_TRYING_SME_BUSY:case
WMS_TP_STATUS_TRYING_NO_RESPONSE_FROM_SME:case
WMS_TP_STATUS_TRYING_SERVICE_REJECTED:case
WMS_TP_STATUS_TRYING_QOS_NOT_AVAILABLE:case WMS_TP_STATUS_TRYING_SME_ERROR:{
-iReportStatus=(0x1110+4864-0x240d);break;}default:{iReportStatus=
-(0x129+1717-0x7dc);break;}}zUfiSms_FormatDeliverNumber(tClientTsData.u.gw_pp.u.
+iReportStatus=(0x4c4+6426-0x1ddb);break;}default:{iReportStatus=
+(0x399+8635-0x2552);break;}}zUfiSms_FormatDeliverNumber(tClientTsData.u.gw_pp.u.
status_report.address,acDeliverNumber);(void)zUfiSms_UtilTimeStamp(tClientTsData
.u.gw_pp.u.status_report.timestamp,tTpScts,&tSmsDate);if(ZUFI_FAIL==
zUfiSms_InsertReportStatusToDb(acDeliverNumber,&tSmsDate,iReportStatus)){
at_print(LOG_ERR,
"\x75\x70\x64\x61\x74\x65\x20\x73\x6d\x73\x20\x72\x65\x70\x6f\x72\x74\x20\x73\x74\x61\x74\x75\x73\x20\x66\x61\x69\x6c\x65\x64\x2e"
-);return WMS_CMD_FAILED;}memset(acRecFlag,(0x6b4+5781-0x1d49),sizeof(acRecFlag))
+);return WMS_CMD_FAILED;}memset(acRecFlag,(0xd60+2392-0x16b8),sizeof(acRecFlag))
;sc_cfg_get(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag,sizeof(acRecFlag));iRpCount=
-atoi(acRecFlag);if(iRpCount<(0x74c+3271-0x1413)||iRpCount>INT_MAX-
-(0x562+8422-0x2647)){at_print(LOG_ERR,
+atoi(acRecFlag);if(iRpCount<(0x10bb+1942-0x1851)||iRpCount>INT_MAX-
+(0x12fb+1780-0x19ee)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x69\x52\x70\x43\x6f\x75\x6e\x74\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0x68d+3324-0x1389),sizeof(
+,iRpCount);return WMS_CMD_FAILED;}memset(acRecFlag,(0xbaa+5250-0x202c),sizeof(
acRecFlag));snprintf(acRecFlag,sizeof(acRecFlag),"\x25\x64",iRpCount+
-(0x285+9245-0x26a1));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
+(0xd74+5812-0x2427));sc_cfg_set(ZTE_WMS_NVCONFIG_SMS_REPORT,acRecFlag);return
WMS_CMD_SUCCESS;}void zUfiSms_DelModemSms(int in_index){
-#if (0xee8+3549-0x1cc5)
-char StrValue[(0xf25+3773-0x1dd8)]={(0x1e9c+380-0x2018)};printf(
+#if (0x432+6529-0x1db3)
+char StrValue[(0xc0c+1555-0x1215)]={(0x7b5+6420-0x20c9)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x4d\x6f\x64\x65\x6d\x53\x6d\x73\x20\x66\x75\x6e\x20\x75\x73\x65\x64\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21\x21" "\n"
);snat_print(LOG_DEBUGStrValue,sizeof(StrValue),"\x25\x64",in_index);
zSvr_InnerSendMsg(ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,
MSG_CMD_AT_DEL_SIM_SMS,strlen(StrValue),StrValue);
#endif
-int atRes=(0x552+4074-0x153c);atRes=zSms_SendCmgdReq(in_index);if(atRes==
+int atRes=(0x9e7+334-0xb35);atRes=zSms_SendCmgdReq(in_index);if(atRes==
ZSMS_RESULT_OK){zSms_RecvCmgdOk();}else{zSms_RecvCmgdErr();}zSms_RecvCmgdFinish(
);}VOID zUfiSms_getModifyInfo(T_zUfiSms_ModifyFlag*ptModifyBuff){int i=
-(0x1093+5440-0x25d3);memset(&g_zUfiSms_modifyMsg,(0x1bef+2728-0x2697),sizeof(
-T_zUfiSms_ModifySms));for(i=(0x18f4+2938-0x246e);i<ptModifyBuff->total_id;i++){
+(0x25b8+211-0x268b);memset(&g_zUfiSms_modifyMsg,(0x6b6+8113-0x2667),sizeof(
+T_zUfiSms_ModifySms));for(i=(0x11+3411-0xd64);i<ptModifyBuff->total_id;i++){
g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_count]=ptModifyBuff->id[i];
g_zUfiSms_modifyMsg.sim_count++;g_zUfiSms_modifyMsg.sim_index_count++;}}int
-zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0xafb+499-0xc6e)]={
-(0xcd7+2017-0x14b8)};int index=(0x509+1647-0xb78);int is_cc=(0x196a+1764-0x204e)
-;int iSmsId=(0x793+6393-0x208c);T_zUfiSms_ModifyTag tModifyInfo={
-(0x130f+4847-0x25fe)};char StrValue[(0xf7c+4245-0x2007)]={(0x176+1199-0x625)};
-memset(&tModifyInfo,(0x238d+546-0x25af),sizeof(T_zUfiSms_ModifyTag));iSmsId=
+zUfiSms_GetUnreadSmsIndexInSim(){char str_index[(0x1c06+1905-0x22f7)]={
+(0x51a+1444-0xabe)};int index=(0x1510+2046-0x1d0e);int is_cc=(0xdf0+5152-0x2210)
+;int iSmsId=(0x438+8248-0x2470);T_zUfiSms_ModifyTag tModifyInfo={
+(0x2606+220-0x26e2)};char StrValue[(0x694+2011-0xe65)]={(0x178f+1846-0x1ec5)};
+memset(&tModifyInfo,(0x5d5+5245-0x1a52),sizeof(T_zUfiSms_ModifyTag));iSmsId=
g_zUfiSms_modifyMsg.sim_id[g_zUfiSms_modifyMsg.sim_index];if(-
-(0xe36+1639-0x149c)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print(LOG_ERR,
+(0x1efa+1664-0x2579)==(is_cc=zUfiSms_IsConcatSms(iSmsId))){at_print(LOG_ERR,
"\x63\x68\x65\x63\x6b\x20\x63\x6f\x6e\x63\x61\x74\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return ZUFI_FAIL;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x55\x6e\x72\x65\x61\x64\x53\x6d\x73\x49\x6e\x64\x65\x78\x49\x6e\x53\x69\x6d\x20\x69\x73\x5f\x63\x63\x3a\x25\x64"
-,is_cc);if((0xda6+781-0x10b2)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,&
-tModifyInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_modifyMsg.sim_index++;
+,is_cc);if((0x92a+6705-0x235a)==is_cc){if(ZUFI_FAIL==zUfiSms_GetSmsIndex(iSmsId,
+&tModifyInfo,is_cc)){return ZUFI_FAIL;}g_zUfiSms_modifyMsg.sim_index++;
g_zUfiSms_modifyMsg.sim_index_count--;while(tModifyInfo.num_of_indices>
-(0x1d3+8291-0x2236)){index=tModifyInfo.indices[tModifyInfo.id_index];
+(0x15c4+539-0x17df)){index=tModifyInfo.indices[tModifyInfo.id_index];
g_modifyIndex.index[g_modifyIndex.total]=index;g_modifyIndex.total++;tModifyInfo
.id_index++;tModifyInfo.num_of_indices--;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x55\x6e\x72\x65\x61\x64\x53\x6d\x73\x49\x6e\x64\x65\x78\x49\x6e\x53\x69\x6d\x20\x5b\x31\x20\x3d\x3d\x20\x69\x73\x5f\x63\x63\x5d\x20\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64\x2c\x20\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
-,index,g_modifyIndex.total);}}else{memset(str_index,(0x853+4552-0x1a1b),sizeof(
+,index,g_modifyIndex.total);}}else{memset(str_index,(0xb1+1734-0x777),sizeof(
str_index));if(ZUFI_FAIL==zUfiSms_GetStorePosById("\x69\x6e\x64",str_index,
sizeof(str_index),iSmsId)){at_print(LOG_ERR,
"\x67\x65\x74\x20\x69\x6e\x64\x65\x78\x20\x66\x72\x6f\x6d\x20\x64\x62\x20\x66\x61\x69\x6c\x64\x2e"
@@ -995,14 +996,14 @@
g_zUfiSms_modifyMsg.sim_index_count--;printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x47\x65\x74\x55\x6e\x72\x65\x61\x64\x53\x6d\x73\x49\x6e\x64\x65\x78\x49\x6e\x53\x69\x6d\x20\x5b\x31\x20\x21\x3d\x20\x69\x73\x5f\x63\x63\x5d\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64\x2c\x20\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
,index,g_modifyIndex.total);}return ZUFI_SUCC;}void zUfiSms_ModifyModemSms(
-T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0x29b+5670-0x18c1);char StrValue[
-(0x843+4769-0x1ada)]={(0x9c0+4045-0x198d)};printf(
+T_zUfiSms_ModifyFlag*ptModifyBuff){int atRes=(0x1697+1022-0x1a95);char StrValue[
+(0x6c8+5814-0x1d74)]={(0x329+4493-0x14b6)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x6f\x64\x69\x66\x79\x4d\x6f\x64\x65\x6d\x53\x6d\x73\x20\x70\x74\x4d\x6f\x64\x69\x66\x79\x42\x75\x66\x66\x2d\x3e\x74\x79\x70\x65\x20\x3d\x20\x25\x64\x21" "\n"
,ptModifyBuff->type);{zUfiSms_getModifyInfo(ptModifyBuff);memset(&g_modifyIndex,
-(0x180+3716-0x1004),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
+(0x102+4180-0x1156),sizeof(T_zUfiSms_ModifyIndexInfo));printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x4d\x6f\x64\x69\x66\x79\x4d\x6f\x64\x65\x6d\x53\x6d\x73\x20\x70\x74\x4d\x6f\x64\x69\x66\x79\x42\x75\x66\x66\x2d\x3e\x74\x6f\x74\x61\x6c\x5f\x69\x64\x20\x3d\x20\x25\x64\x21" "\n"
,ptModifyBuff->total_id);while(g_zUfiSms_modifyMsg.sim_index_count>
-(0xf3+7941-0x1ff8)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
+(0x4e7+3851-0x13f2)){if(ZUFI_FAIL==zUfiSms_GetUnreadSmsIndexInSim()){at_print(
LOG_ERR,
"\x64\x65\x6c\x65\x74\x65\x20\x61\x6c\x6c\x3a\x25\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64" "\n"
,WMS_STORAGE_TYPE_UIM_V01);return;}}while(g_modifyIndex.cur_index<g_modifyIndex.
@@ -1021,21 +1022,21 @@
zUfiSms_DecodeSmsData(T_zUfiSms_DbStoreData*pDb_Data,int msg_index,
zUfiSms_StoreType iStorePos,T_SmsStatus bSms_Status,wms_message_format_enum_v01
format,long iPdu_Len,unsigned char*pPdu_Received){T_zUfiSms_RawTsData raw_ts;
-T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0x11e7+1172-0x1671)];int tmp_i=
-(0x6d8+4120-0x16f0);unsigned int pos=(0x161c+950-0x19d2);int result=ZUFI_SUCC;if
+T_zUfiSms_ClientTsData ts_data_ptr;char tmp[(0xacb+6598-0x2487)];int tmp_i=
+(0x865+6286-0x20f3);unsigned int pos=(0x8c2+3190-0x1538);int result=ZUFI_SUCC;if
(NULL==pDb_Data){return ZUFI_FAIL;}pDb_Data->mem_store=(unsigned long)iStorePos;
pDb_Data->index=(unsigned short)msg_index;if(RECEIVED_UNREAD==bSms_Status){
pDb_Data->tag=WMS_TAG_TYPE_MT_NOT_READ_V01;}else if(RECEIVED_READ==bSms_Status){
pDb_Data->tag=WMS_TAG_TYPE_MT_READ_V01;}else if(STORED_UNSEND==bSms_Status){
pDb_Data->tag=WMS_TAG_TYPE_MO_NOT_SENT_V01;}else{pDb_Data->tag=
WMS_TAG_TYPE_MO_SENT_V01;}pDb_Data->mode=(unsigned short)format;memset(&raw_ts,
-(0x1556+4421-0x269b),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
-(0xe3a+4235-0x1ec5),sizeof(wms_client_ts_data_s_type));memset(tmp,
-(0x1125+3858-0x2037),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
-pPdu_Received[(0x4b+6953-0x1b74)]);tmp_i=atoi(tmp);if(tmp_i<(0x1687+2530-0x2069)
-||tmp_i>INT_MAX-(0x2091+374-0x2206)){at_print(LOG_ERR,
+(0x815+742-0xafb),sizeof(T_zUfiSms_RawTsData));memset(&ts_data_ptr,
+(0xdb3+1314-0x12d5),sizeof(wms_client_ts_data_s_type));memset(tmp,
+(0xd78+5781-0x240d),sizeof(tmp));snprintf(tmp,sizeof(tmp),"\x25\x64",
+pPdu_Received[(0x93b+2583-0x1352)]);tmp_i=atoi(tmp);if(tmp_i<(0x104+6305-0x19a5)
+||tmp_i>INT_MAX-(0x1489+2880-0x1fc8)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x70\x50\x64\x75\x5f\x52\x65\x63\x65\x69\x76\x65\x64\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);return ZUFI_FAIL;}pos=tmp_i+(0xb51+42-0xb7a);if(pos>=iPdu_Len){return
+,tmp_i);return ZUFI_FAIL;}pos=tmp_i+(0x1e0f+64-0x1e4e);if(pos>=iPdu_Len){return
ZUFI_FAIL;}raw_ts.len=iPdu_Len-pos;memcpy((void*)raw_ts.data,(void*)(
pPdu_Received+pos),WMS_MAX_LEN);raw_ts.tpdu_type=zUfiSms_GetTpduType(
pPdu_Received+pos);raw_ts.format=(WMS_MESSAGE_FORMAT_CDMA_V01==format)?
@@ -1045,62 +1046,63 @@
pDb_Data);break;}case WMS_MESSAGE_FORMAT_GW_BC_V01:case
WMS_MESSAGE_FORMAT_MWI_V01:{result=ZUFI_FAIL;break;}default:{result=ZUFI_FAIL;
break;}}return result;}T_zUfiSms_CmdStatus IsSmsLoadSuccess(void){char IsInit[
-(0x191f+2851-0x241e)]={(0x2003+293-0x2128)};sc_cfg_get(NV_SMS_LOAD_RESULT,IsInit
-,sizeof(IsInit));if((0x551+2273-0xe32)==strcmp("\x6f\x6b",IsInit)){printf(
+(0x12ad+4334-0x2377)]={(0x18b2+1591-0x1ee9)};sc_cfg_get(NV_SMS_LOAD_RESULT,
+IsInit,sizeof(IsInit));if((0x11a+8145-0x20eb)==strcmp("\x6f\x6b",IsInit)){printf
+(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x20\x4c\x6f\x61\x64\x20\x73\x75\x63\x63\x65\x73\x73\x21" "\n"
);return WMS_CMD_SUCCESS;}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x6d\x73\x20\x4c\x6f\x61\x64\x20\x77\x72\x6f\x6e\x67\x20\x21" "\n"
);return WMS_CMD_FAILED;}}
-#if (0x332+2689-0xdb3)
+#if (0xf74+2015-0x1753)
int zUfiSms_FormatSms(CHAR*pSmsRawContent,int contentSize,T_zUfiSms_SmsItem*
-ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0xe9f+943-0x1222)));
-if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0xc5b+4985-0x1fd3)),
-((char)(0x1c58+817-0x1f5d)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char
-*)(P2+(0x20f+7935-0x210d)),((char)(0x1add+2656-0x2511)));atBase_PreProcRes(
-pSmsRawContent,contentSize);if((0x500+5131-0x190a)==iCmdId){if(P3==P2+
-(0x567+5898-0x1c70)){sscanf(pSmsRawContent,
+ptSmsPara,int iCmdId){char*P1=strchr(pSmsRawContent,((char)(0x312+5784-0x197e)))
+;if(NULL==P1){return ZUFI_FAIL;}char*P2=strchr((char*)(P1+(0xb44+2894-0x1691)),
+((char)(0x7e5+1816-0xed1)));if(NULL==P2){return ZUFI_FAIL;}char*P3=strchr((char*
+)(P2+(0xa95+3451-0x180f)),((char)(0x769+5027-0x1ae0)));atBase_PreProcRes(
+pSmsRawContent,contentSize);if((0x8ac+4123-0x18c6)==iCmdId){if(P3==P2+
+(0x1227+2176-0x1aa6)){sscanf(pSmsRawContent,
"\x25\x64\x20\x25\x64\x20\x25\x64\x20",&ptSmsPara->index,&ptSmsPara->stat,&
ptSmsPara->length);}else{sscanf(pSmsRawContent,
"\x25\x64\x20\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&ptSmsPara->index,&
ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}else if(
-(0xe00+1463-0x13b5)==iCmdId){if(P2==P1+(0xae0+6303-0x237e)){sscanf(
+(0x1bd0+1979-0x2389)==iCmdId){if(P2==P1+(0xa96+5768-0x211d)){sscanf(
pSmsRawContent,"\x25\x64\x20\x25\x64\x20",&ptSmsPara->stat,&ptSmsPara->length);}
else{sscanf(pSmsRawContent,"\x25\x64\x20\x25\x33\x32\x73\x20\x25\x64\x20",&
ptSmsPara->stat,ptSmsPara->alpha,&ptSmsPara->length);}}atBase_RestoreString(
ptSmsPara->alpha);atBase_RestoreString(ptSmsPara->pdu);return ZUFI_SUCC;}
#endif
void zUfiSms_CmglRespProc(T_zSms_SmsInd*pSmsItem){T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0x241+1660-0x8bd)};
+WMS_CMD_PROCESSING;T_zUfiSms_DbStoreData db_data={(0x15f2+1502-0x1bd0)};
zUfiSms_StoreType mem_store=WMS_STORAGE_TYPE_UIM_V01;unsigned char pdu_tmp[
-ZSMS_PDU_SIZE]={(0x125f+4671-0x249e)};int total_count=(0x350+7737-0x2189);int
-sim_capability=(0x777+7241-0x23c0);printf(
+ZSMS_PDU_SIZE]={(0x2f0+5117-0x16ed)};int total_count=(0xe79+1470-0x1437);int
+sim_capability=(0x155d+585-0x17a6);printf(
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x6c\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x21" "\n"
,pSmsItem->index,pSmsItem->stat,pSmsItem->length);printf(
"\x5b\x53\x4d\x53\x5d\x20\x70\x64\x75\x20\x64\x61\x74\x61\x5f\x6c\x65\x6e\x3a\x25\x64\x2c\x20\x73\x74\x72\x3a\x25\x73\x21" "\n"
-,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0x1450+1209-0x1909),
-sizeof(db_data));memset(pdu_tmp,(0x185+2766-0xc53),sizeof(pdu_tmp));(void)
+,strlen(pSmsItem->pdu),pSmsItem->pdu);memset(&db_data,(0x6a3+1177-0xb3c),sizeof(
+db_data));memset(pdu_tmp,(0x1c86+2050-0x2488),sizeof(pdu_tmp));(void)
String2Bytes(pSmsItem->pdu,pdu_tmp,(int)strlen(pSmsItem->pdu));
-#if (0x1001+5297-0x24b1)
-zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x49c+4579-0x167a)==
+#if (0xfe5+4848-0x22d4)
+zUfiSms_GetReportStatus(pSmsItem->pdu,&pSmsItem->stat);if((0x4e9+3626-0x130e)==
pSmsItem->stat){printf(
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x70\x53\x6d\x73\x49\x74\x65\x6d\x2d\x3e\x73\x74\x61\x74\x20\x3d\x3d\x20\x35" "\n"
);(void)zUfiSms_HandleReport(pdu_tmp);zUfiSms_DelModemSms(pSmsItem->index);
return;}
#endif
-#if (0x4f1+4874-0x17fa)
+#if (0x1663+2601-0x208b)
printf("\x2a\x2a\x2a\x2a\x75\x6e\x64\x65\x63\x6f\x64\x65\x3a\x25\x73" "\n",
pdu_tmp);
#endif
(void)zUfiSms_DecodeSmsData(&db_data,pSmsItem->index,mem_store,(T_SmsStatus)
pSmsItem->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,pSmsItem->length,pdu_tmp);
-#if (0x42c+4751-0x16ba)
+#if (0x121b+425-0x13c3)
printf("\x2a\x2a\x2a\x2a\x64\x65\x63\x6f\x64\x65\x65\x64\x3a\x25\x73" "\n",
db_data.sms_content);
#endif
-(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x1b60+2415-0x24ce));{}
-#if (0x5da+4778-0x1883)
+(void)zUfiSms_WriteSmsToDb(&db_data,mem_store,-(0x6a8+3237-0x134c));{}
+#if (0xb8f+1613-0x11db)
if(SMS_LOCATION_SIM==g_zUfiSms_CurLocation){CHAR simCapability[
-(0x13da+4235-0x2433)]={(0xf97+221-0x1074)};sc_cfg_get(
+(0xfb4+823-0x12b9)]={(0x12e3+2022-0x1ac9)};sc_cfg_get(
ZTE_WMS_NVCONFIG_SIM_CAPABILITY,simCapability,sizeof(simCapability));
sim_capability=atoi(simCapability);(void)zUfiSms_GetTotalCount(
ZTE_WMS_DB_SIM_TABLE,&total_count);if(total_count==sim_capability){
@@ -1110,18 +1112,18 @@
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x68\x65\x63\x6b\x73\x74\x6f\x72\x65\x44\x69\x72\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
);return;}
#ifdef WEBS_SECURITY
-if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x1aad+2117-0x22f2)){if((access(
-ZTE_WMS_TMP1_PATH,F_OK)==(0x4dd+941-0x88a))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
-(0x16c7+3588-0x24cb))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
-(0x1a4b+96-0x1aab)){printf(
-"\x5b\x53\x4d\x53\x5d\x20\x5a\x54\x45\x5f\x57\x4d\x53\x5f\x54\x4d\x50\x31\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
-);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0x1d16+673-0x1fb7))&&(access(
-ZTE_WMS_SEC_PATH,F_OK)!=(0x1056+3106-0x1c78))){if(rename(ZTE_WMS_TMP0_PATH,
-ZTE_WMS_SEC_PATH)!=(0x119b+4597-0x2390)){printf(
-"\x5b\x53\x4d\x53\x5d\x20\x5a\x54\x45\x5f\x57\x4d\x53\x5f\x54\x4d\x50\x30\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
-);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0xbc3+1291-0x10ce)){char rnum_buf[
-(0x1262+3203-0x1ecd)]={(0x1819+3564-0x2605)};char cmd[(0x498+2683-0xe93)]={
-(0xc42+2726-0x16e8)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
+if(access(ZTE_WMS_DB_PATH,F_OK)!=(0x1392+1791-0x1a91)){if((access(
+ZTE_WMS_TMP1_PATH,F_OK)==(0x987+3552-0x1767))&&(access(ZTE_WMS_SEC_PATH,F_OK)!=
+(0x10d7+4047-0x20a6))){if(rename(ZTE_WMS_TMP1_PATH,ZTE_WMS_SEC_PATH)!=
+(0x77a+7678-0x2578)){printf(
+"\x5b\x53\x4d\x53\x5d\x20\x57\x4d\x53\x5f\x54\x4d\x50\x31\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
+);}}if((access(ZTE_WMS_TMP0_PATH,F_OK)==(0xa87+901-0xe0c))&&(access(
+ZTE_WMS_SEC_PATH,F_OK)!=(0xbb4+4777-0x1e5d))){if(rename(ZTE_WMS_TMP0_PATH,
+ZTE_WMS_SEC_PATH)!=(0xbbc+5920-0x22dc)){printf(
+"\x5b\x53\x4d\x53\x5d\x20\x57\x4d\x53\x5f\x54\x4d\x50\x30\x5f\x50\x41\x54\x48\x20\x66\x61\x69\x6c\x65\x64\x2e" "\n"
+);}}if(access(ZTE_WMS_SEC_PATH,F_OK)==(0x1862+3178-0x24cc)){char rnum_buf[
+(0xd8c+3772-0x1c30)]={(0xd3f+5922-0x2461)};char cmd[(0x540+3849-0x13c9)]={
+(0x9a2+5862-0x2088)};sc_cfg_get("\x72\x6e\x75\x6d\x5f\x61\x74",rnum_buf,sizeof(
rnum_buf));snprintf(cmd,sizeof(cmd),
"\x2f\x62\x69\x6e\x2f\x6f\x70\x65\x6e\x73\x73\x6c\x20\x65\x6e\x63\x20\x2d\x64\x20\x2d\x61\x65\x73\x32\x35\x36\x20\x2d\x73\x61\x6c\x74\x20\x2d\x69\x6e\x20\x25\x73\x20\x2d\x6f\x75\x74\x20\x25\x73\x20\x2d\x70\x61\x73\x73\x20\x70\x61\x73\x73\x3a\x25\x73"
,ZTE_WMS_SEC_PATH,ZTE_WMS_DB_PATH,rnum_buf);zxic_system(cmd);}}
@@ -1133,47 +1135,48 @@
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_SendSmsStatusInfo(
MSG_SMS_DEFAULT);g_zUfiSms_MsgRefer=zUfiSms_GetSmsMaxReferInDb();
g_zUfiSms_ConcatSmsReference=zUfiSms_GetConcatMaxReferInDb();}void
-zUfiSms_CfgSmsNvInit(void){char tmp[(0x2af+3487-0x1044)]={(0x15d5+165-0x167a)};
+zUfiSms_CfgSmsNvInit(void){char tmp[(0x472+3849-0x1371)]={(0x987+6636-0x2373)};
sc_cfg_set(NV_SMS_STORE,"");sc_cfg_set(NV_SMS_LOAD_RESULT,"");sc_cfg_set(
ZTE_WMS_NVCONFIG_RECEVIED,"");sc_cfg_set(NV_SMS_CENTER_NUM,"");snprintf(tmp,
sizeof(tmp),"\x25\x64",ZTE_WMS_DB_MSG_COUNT_MAX);sc_cfg_set(
ZTE_WMS_NVCONFIG_NV_CAPABILITY,tmp);}VOID zUfiSms_InitCmdStatus(
T_zUfiSms_StatusInfo*pStatusInfo,T_zUfiSms_CmdType iCmdId){memset((void*)
-pStatusInfo,(0x11fd+4190-0x225b),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
+pStatusInfo,(0xdbb+1584-0x13eb),sizeof(T_zUfiSms_StatusInfo));pStatusInfo->cmd=
iCmdId;pStatusInfo->cmd_status=WMS_CMD_PROCESSING;pStatusInfo->err_code=
-ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0x16a2+2353-0x1fd3);pStatusInfo
-->delete_failed_count=(0x140+224-0x220);(void)zUfiSms_SetCmdStatus(pStatusInfo);
-}void zUfiSms_CfgInit(void){char tmp[(0x46b+572-0x69d)]={(0xf3a+4710-0x21a0)};
-sc_cfg_set(NV_SMS_STATE,"");sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,"");sc_cfg_set(
-NV_SMS_LOAD_RESULT,"");sc_cfg_set(NV_SMS_RECV_RESULT,"");snprintf(tmp,sizeof(tmp
-),"\x25\x64",ZTE_WMS_DB_MSG_COUNT_MAX);sc_cfg_set(ZTE_WMS_NVCONFIG_NV_CAPABILITY
-,tmp);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CAPABILITY,"");sc_cfg_set(
+ZTE_SMS_CMS_NONE;pStatusInfo->send_failed_count=(0xe42+4994-0x21c4);pStatusInfo
+->delete_failed_count=(0x1a83+1584-0x20b3);(void)zUfiSms_SetCmdStatus(
+pStatusInfo);}void zUfiSms_CfgInit(void){char tmp[(0x12b5+4718-0x2519)]={
+(0xa33+1100-0xe7f)};sc_cfg_set(NV_SMS_STATE,"");sc_cfg_set(
+ZTE_WMS_NVCONFIG_RECEVIED,"");sc_cfg_set(NV_SMS_LOAD_RESULT,"");sc_cfg_set(
+NV_SMS_RECV_RESULT,"");snprintf(tmp,sizeof(tmp),"\x25\x64",
+ZTE_WMS_DB_MSG_COUNT_MAX);sc_cfg_set(ZTE_WMS_NVCONFIG_NV_CAPABILITY,tmp);
+sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CAPABILITY,"");sc_cfg_set(
ZTE_WMS_NVCONFIG_SMS_REPORT,"");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");sc_cfg_set(
NV_SMS_CENTER_NUM,"");}int zUfiSms_IsUnreadSms(T_zUfiSms_MemoryType mem_store){
-int total_count=(0x467+6713-0x1ea0);char buf[(0x169+6006-0x18cb)]={
-(0x325+3860-0x1239)};if(ZUFI_FAIL==zUfiSms_GetTagCountInDb(mem_store,
+int total_count=(0xdc8+3789-0x1c95);char buf[(0x1506+1536-0x1af2)]={
+(0x1ec+6474-0x1b36)};if(ZUFI_FAIL==zUfiSms_GetTagCountInDb(mem_store,
WMS_TAG_TYPE_MT_NOT_READ_V01,&total_count)){return FALSE;}sprintf(buf,"\x25\x64"
,total_count);sc_cfg_set(
"\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",buf);if(
-(0xf27+5868-0x2613)==total_count){return FALSE;}else{return TRUE;}}VOID
+(0x64+2457-0x9fd)==total_count){return FALSE;}else{return TRUE;}}VOID
zUfiSms_SendSmsStatusInfo(wms_message_status_info sms_op){
-T_zUfi_SmsStatusInfoInd ind={(0x97b+4866-0x1c7d)};CHAR temp[(0x1163+950-0x14e7)]
-={(0x7ec+5519-0x1d7b)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
-(0x7ef+7488-0x252e);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
-(0x649+4676-0x188c);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
-sms_unread_ind=(0x124f+1620-0x18a2);}else{ind.sms_unread_ind=(0x5ba+944-0x96a);}
+T_zUfi_SmsStatusInfoInd ind={(0x6e0+7184-0x22f0)};CHAR temp[(0x5a3+8181-0x2566)]
+={(0x119a+4579-0x237d)};if(sms_op==MSG_SMS_NEW){ind.sms_new_ind=
+(0x1489+3996-0x2424);}if(sms_op==MSG_SMS_READING){ind.sms_is_reading=
+(0x1526+3232-0x21c5);}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){ind.
+sms_unread_ind=(0x1cf2+95-0x1d50);}else{ind.sms_unread_ind=(0x7e2+935-0xb89);}
sc_cfg_get("\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64\x5f\x63\x6f\x75\x6e\x74",
temp,sizeof(temp));ind.sms_unread_count=atoi(temp);if((g_zUfiSms_MemFullFlag[
WMS_STORAGE_TYPE_NV_V01]==TRUE)||(g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_UIM_V01
-]==TRUE)){ind.sms_memory_full_ind=(0x17c3+1681-0x1e53);}else{ind.
-sms_memory_full_ind=(0x626+2427-0xfa1);}printf(
+]==TRUE)){ind.sms_memory_full_ind=(0xb69+3763-0x1a1b);}else{ind.
+sms_memory_full_ind=(0x142f+1782-0x1b25);}printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x53\x6d\x73\x53\x74\x61\x74\x75\x73\x49\x6e\x66\x6f\x20\x75\x6e\x72\x65\x61\x64\x20\x3d\x20\x25\x64\x2c\x20\x66\x75\x6c\x6c\x3d\x25\x64\x2c\x20\x6e\x65\x77\x3d\x25\x64\x2c\x20\x72\x65\x61\x64\x69\x6e\x67\x3d\x25\x64" "\n"
,ind.sms_unread_ind,ind.sms_memory_full_ind,ind.sms_new_ind,ind.sms_is_reading);
ipc_send_message(MODULE_ID_SMS,MODULE_ID_MMI,MSG_CMD_SMS_STATUS_INFO_IND,sizeof(
-T_zUfi_SmsStatusInfoInd),&ind,(0xe3f+4532-0x1ff3));if(ind.sms_memory_full_ind==
-(0x1c22+894-0x1f9f)){sc_cfg_set(NV_SMS_INIT_STATUS,
+T_zUfi_SmsStatusInfoInd),&ind,(0x100+1223-0x5c7));if(ind.sms_memory_full_ind==
+(0x5cd+6337-0x1e8d)){sc_cfg_set(NV_SMS_INIT_STATUS,
"\x73\x6d\x73\x5f\x6d\x65\x6d\x6f\x72\x79\x5f\x66\x75\x6c\x6c");}else if(ind.
-sms_unread_ind==(0x3f+3485-0xddb)){sc_cfg_set(NV_SMS_INIT_STATUS,
+sms_unread_ind==(0x169+3090-0xd7a)){sc_cfg_set(NV_SMS_INIT_STATUS,
"\x73\x6d\x73\x5f\x75\x6e\x72\x65\x61\x64");}else{sc_cfg_set(NV_SMS_INIT_STATUS,
"\x73\x6d\x73\x5f\x6e\x6f\x72\x6d\x61\x6c");}return;}VOID BakNotificationSms(
char*pushSms,int pushSmsLen){FILE*fp=NULL;int len;fp=fopen(
@@ -1182,7 +1185,7 @@
"\x5b\x53\x4d\x53\x5d\x20\x42\x61\x6b\x4e\x6f\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x53\x6d\x73\x20\x66\x6f\x70\x65\x6e\x20\x65\x72\x72\x6f\x72" "\n"
);at_print(LOG_ERR,
"\x66\x6f\x70\x65\x6e\x28\x20\x2f\x75\x73\x72\x2f\x64\x6d\x2f\x66\x6f\x74\x61\x5f\x70\x75\x73\x68\x5f\x6d\x73\x67\x2e\x64\x61\x74\x61\x20\x2c\x20\x27\x77\x2b\x27\x29\x20\x65\x72\x72\x6f\x72\x21"
-);return;}len=fwrite(pushSms,(0xc94+3181-0x1900),pushSmsLen,fp);if(len==
+);return;}len=fwrite(pushSms,(0x487+1821-0xba3),pushSmsLen,fp);if(len==
pushSmsLen){printf(
"\x5b\x53\x4d\x53\x5d\x20\x42\x61\x6b\x4e\x6f\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x53\x6d\x73\x20\x77\x72\x69\x74\x65\x20\x74\x6f\x20\x4e\x6f\x74\x69\x66\x69\x63\x61\x74\x69\x6f\x6e\x62\x61\x6b\x20\x66\x69\x6c\x65\x20\x4f\x4b\x2c\x20\x6c\x65\x6e\x3d\x25\x64\x20" "\n"
,len);printf(
diff --git a/ap/app/zte_comm/sms/src/sms_main.c b/ap/app/zte_comm/sms/src/sms_main.c
index 455b7dd..137e8be 100755
--- a/ap/app/zte_comm/sms/src/sms_main.c
+++ b/ap/app/zte_comm/sms/src/sms_main.c
@@ -15,43 +15,43 @@
g_zUfiSms_FinalCmgsBuf;extern int g_zUfiSms_CurConcatSegNo;extern
T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];extern
int g_zUfiSms_SendFailedCount;extern int g_zUfiSms_ConcatTotalNum;extern UINT8
-g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x443+1331-0x976);int g_zSms_MsqId=-
-(0x1c4+6213-0x1a08);int g_zSms_LocalMsqId=-(0x18cd+3555-0x26af);sem_t
-g_sms_sem_id;T_zSms_optRsp g_smsOptRsp={(0x346+6192-0x1b76)};static const
-T_zSmsHandleTable SmsHandleWebTab[]={{MSG_CMD_SEND_SMS,atWeb_SendSms,TRUE},{
+g_zUfiSms_IsConcatSendSuc;int iSmsIndex=(0x9a8+6052-0x214c);int g_zSms_MsqId=-
+(0x2d+970-0x3f6);int g_zSms_LocalMsqId=-(0xd8d+1590-0x13c2);sem_t g_sms_sem_id;
+T_zSms_optRsp g_smsOptRsp={(0x11d+2800-0xc0d)};static const T_zSmsHandleTable
+SmsHandleWebTab[]={{MSG_CMD_SEND_SMS,atWeb_SendSms,TRUE},{
MSG_CMD_DEL_SMS_BY_INDEX,atWeb_DelSmsByIndex,TRUE},{MSG_CMD_SMS_MODIFY_TAG,
atWeb_ReadSms,TRUE},{MSG_CMD_DRAFTS_SAVE,atWeb_SaveSms,FALSE},{
MSG_CMD_SMS_LOCATION_SET,atWeb_SetSms,TRUE},{MSG_CMD_SMS_OUTDATE_CHECK,
-atWeb_OutdateSmsCheck,TRUE},{(0x5cc+7337-0x2275),NULL,FALSE}};VOID atWeb_SendSms
-(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_StatusInfo tStatus={
-(0x1a33+669-0x1cd0)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)
-pDatabuf;zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_SEND);(void)
-zUfiSms_SendRawSms((T_zUfiSms_SendReq*)ptMessage->msg_data);}VOID
-atWeb_DelSmsByIndex(UINT8*pDatabuf){T_zUfiSms_DelReq tDelReq={
-(0x9d4+6501-0x2339)};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;
-T_zUfiSms_StatusInfo tStatus={(0x240+9116-0x25dc)};assert(pDatabuf!=NULL);printf
-("[SMS] atWeb_DelSmsByIndex recv msg\n");memcpy(&tDelReq,pDatabuf,sizeof(
+atWeb_OutdateSmsCheck,TRUE},{(0x1620+4016-0x25d0),NULL,FALSE}};VOID
+atWeb_SendSms(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;
+T_zUfiSms_StatusInfo tStatus={(0x18b+4116-0x119f)};assert(pDatabuf!=NULL);
+ptMessage=(T_zGoaheadMsgBuf*)pDatabuf;zUfiSms_InitCmdStatus(&tStatus,
+WMS_SMS_CMD_MSG_SEND);(void)zUfiSms_SendRawSms((T_zUfiSms_SendReq*)ptMessage->
+msg_data);}VOID atWeb_DelSmsByIndex(UINT8*pDatabuf){T_zUfiSms_DelReq tDelReq={
+(0x8c0+990-0xc9e)};T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;
+T_zUfiSms_StatusInfo tStatus={(0x1539+3694-0x23a7)};assert(pDatabuf!=NULL);
+printf("[SMS] atWeb_DelSmsByIndex recv msg\n");memcpy(&tDelReq,pDatabuf,sizeof(
T_zUfiSms_DelReq));zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_DELETE);result
=zUfiSms_DeleteSms(&tDelReq);tStatus.cmd_status=result;(void)
zUfiSms_SetCmdStatus(&tStatus);zUfiMmi_SendSmsStatus();}VOID atWeb_DelSmsByType(
UINT8*pDatabuf){
-#if (0x13b3+3422-0x2111)
+#if (0x1398+1357-0x18e5)
WEB_DEL_SMS_BY_TYPE*req=NULL;req=(WEB_DEL_SMS_BY_TYPE*)pDatabuf;assert(req!=NULL
);if(req->eLocation!=ZSMS_LOCATION_SIM){ZTE_LOG(LOG_ERR,
"\x7a\x53\x6d\x73\x5f\x50\x72\x65\x70\x44\x65\x6c\x42\x79\x54\x79\x70\x65\x20\x70\x61\x72\x61\x20\x4e\x55\x4c\x4c\x2e" "\n"
);return;}zSms_ChangeMainState(ZSMS_STATE_DELING);ZTE_LOG(LOG_DEBUG,
"\x7a\x53\x6d\x73\x5f\x50\x72\x65\x70\x44\x65\x6c\x42\x79\x54\x79\x70\x65\x20\x70\x73\x74\x52\x65\x71\x2d\x3e\x65\x42\x6f\x78\x4e\x61\x6d\x65\x3d\x25\x64" "\n"
-,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0x923+4959-0x1c82),req
+,req->eBoxName);SMS_DeleteRecordFromXML(SMS_LOCATION_SIM,(0xf1c+3330-0x1c1e),req
->eBoxName);if(req->eBoxName==SMS_INBOX){sms_LoadSmsFromSim();}
#endif
}VOID atWeb_ReadSms(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;
T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={
-(0x64+5727-0x16c3)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf
-;zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_MODIFY_TAG);result=
+(0xab+2436-0xa2f)};assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf;
+zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_MSG_MODIFY_TAG);result=
zUfiSms_ModifySmsTag((T_zUfiSms_ModifyFlag*)ptMessage->msg_data);tStatus.
cmd_status=result;(void)zUfiSms_SetCmdStatus(&tStatus);}VOID atWeb_SaveSms(UINT8
*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;T_zUfiSms_CmdStatus result=
-WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x237+8378-0x22f1)};assert(
+WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={(0x594+267-0x69f)};assert(
pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf;zUfiSms_InitCmdStatus(&
tStatus,WMS_SMS_CMD_MSG_WRITE);result=zUfiSms_WriteRawSms((T_zUfiSms_SaveReq*)
ptMessage->msg_data);if(g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){tStatus.
@@ -61,250 +61,250 @@
zUfiSms_ChangeMainState(SMS_STATE_SAVING);sc_cfg_set(NV_SMS_SAVE_RESULT,
"\x6f\x6b");}VOID atWeb_SetSms(UINT8*pDatabuf){T_zGoaheadMsgBuf*ptMessage=NULL;
T_zUfiSms_CmdStatus result=WMS_CMD_PROCESSING;T_zUfiSms_StatusInfo tStatus={
-(0x1839+1490-0x1e0b)};printf(
+(0xb08+5036-0x1eb4)};printf(
"\x49\x4e\x54\x4f\x20\x61\x74\x57\x65\x62\x5f\x53\x65\x74\x53\x6d\x73\x2e" "\n")
;assert(pDatabuf!=NULL);ptMessage=(T_zGoaheadMsgBuf*)pDatabuf;
zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_CFG_SET_PARAMETERS);result=
zUfiSms_SetSmsPara((T_zUfiSms_ParaInfo*)ptMessage->msg_data);tStatus.cmd_status=
result;(void)zUfiSms_SetCmdStatus(&tStatus);}VOID atWeb_OutdateSmsCheck(UINT8*
-pDatabuf){T_zUfiSms_DelReq tSmsDel={(0x1406+4337-0x24f7)};
+pDatabuf){T_zUfiSms_DelReq tSmsDel={(0xe20+2907-0x197b)};
zUfiSms_CheckDbOutdateSms(ZTE_WMS_DB_NV_TABLE,&tSmsDel);printf(
"\x2d\x2d\x2d\x2d\x6f\x75\x74\x20\x63\x6f\x75\x6e\x20\x6e\x76\x74\x3a\x20\x25\x64\x2d\x2d\x2d\x2d" "\n"
-,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x441+4518-0x15e7)){
-atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x605+5034-0x19af),sizeof(
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0xda+9499-0x25f5)){
+atWeb_DelSmsByIndex(&tSmsDel);}memset(&tSmsDel,(0x1b87+2201-0x2420),sizeof(
T_zUfiSms_DelReq));zUfiSms_CheckDbOutdateSms(ZTE_WMS_DB_SIM_TABLE,&tSmsDel);
printf(
"\x2d\x2d\x2d\x2d\x6f\x75\x74\x20\x63\x6f\x75\x6e\x74\x20\x73\x69\x6d\x3a\x20\x25\x64\x2d\x2d\x2d\x2d" "\n"
-,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x1d1+3100-0xded)){
+,tSmsDel.all_or_count);if(tSmsDel.all_or_count>(0x1428+2005-0x1bfd)){
atWeb_DelSmsByIndex(&tSmsDel);}}VOID zSms_HandleWebMsg(MSG_BUF*ptMsgBuf){UINT32
-i=(0x55a+6107-0x1d35);assert(ptMsgBuf!=NULL);printf(
+i=(0x25b+7658-0x2045);assert(ptMsgBuf!=NULL);printf(
"\x73\x6d\x73\x20\x72\x65\x63\x76\x20\x6d\x73\x67\x20\x66\x72\x6f\x6d\x20\x77\x65\x62\x73\x65\x72\x76\x65\x72\x3a\x25\x64" "\n"
-,ptMsgBuf->usMsgCmd);while((0x417+975-0x7e6)!=SmsHandleWebTab[i].msg_id){if(
+,ptMsgBuf->usMsgCmd);while((0x45a+5350-0x1940)!=SmsHandleWebTab[i].msg_id){if(
ptMsgBuf->usMsgCmd==SmsHandleWebTab[i].msg_id){if(SmsHandleWebTab[i].need_block
&&ptMsgBuf->src_id!=MODULE_ID_SMS){ipc_send_message(MODULE_ID_SMS,
MODULE_ID_SMS_LOCAL,ptMsgBuf->usMsgCmd,ptMsgBuf->usDataLen,(unsigned char*)
-ptMsgBuf->aucDataBuf,(0x4e8+8675-0x26cb));}else if(NULL!=SmsHandleWebTab[i].
+ptMsgBuf->aucDataBuf,(0xf5+4930-0x1437));}else if(NULL!=SmsHandleWebTab[i].
func_ptr){SmsHandleWebTab[i].func_ptr(ptMsgBuf->aucDataBuf);}break;}i++;}}SINT32
zSms_SendMsg(USHORT Msg_cmd,USHORT us_DataLen,UCHAR*pData){printf(
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,Msg_cmd);ipc_send_message(MODULE_ID_SMS,MODULE_ID_AT_CTL,Msg_cmd,us_DataLen,(
-unsigned char*)pData,(0x631+137-0x6ba));return(0x8c5+5658-0x1edf);}SINT32
-zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x4a8+3090-0x10ba)};
-memset(&sendSmsInfo,(0x2338+51-0x236b),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
+unsigned char*)pData,(0x1ccb+41-0x1cf4));return(0x1f8f+1521-0x2580);}SINT32
+zSms_SendCmgsReq(VOID){T_zSms_SendSmsReq sendSmsInfo={(0x12d3+1423-0x1862)};
+memset(&sendSmsInfo,(0x151+1323-0x67c),sizeof(T_zSms_SendSmsReq));sendSmsInfo.
length=g_zUfiSms_FinalCmgsBuf.length;if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<
-ZSMS_PDU_SIZE-(0x1c74+453-0x1e38)){memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf
+ZSMS_PDU_SIZE-(0xebf+1089-0x12ff)){memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf
.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x73\x52\x65\x71\x20\x70\x64\x75\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x25\x73" "\n"
,g_zUfiSms_FinalCmgsBuf.pdu);memcpy(sendSmsInfo.pdu,g_zUfiSms_FinalCmgsBuf.pdu,
-ZSMS_PDU_SIZE-(0x105+1047-0x51a));}*(sendSmsInfo.pdu+strlen(
+ZSMS_PDU_SIZE-(0x626+4885-0x1939));}*(sendSmsInfo.pdu+strlen(
g_zUfiSms_FinalCmgsBuf.pdu))=ZSMS_CTRL_Z_CHAR;
-#if (0x32f+927-0x6cd)
+#if (0xbb1+5026-0x1f52)
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x73\x52\x65\x71\x20\x73\x65\x6e\x64\x20\x64\x61\x74\x61" "\n"
);printf("\n" "\x5b\x53\x4d\x53\x5d\x25\x73" "\n",sendSmsInfo.pdu);
#endif
zSms_SendMsg(MSG_CMD_SENDSMS_REQ,sizeof(T_zSms_SendSmsReq),&sendSmsInfo);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x615+2978-0x11b6)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x751+2675-0x11c3)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgsOk(VOID){
printf(
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x73\x75\x63\x63\x65\x73\x73\x2e\x20" "\n"
);g_zUfiSms_CurConcatSegNo++;if(g_zUfiSms_CurConcatSegNo>
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_DbStoreData[
-g_zUfiSms_CurConcatSegNo-(0x1abf+1328-0x1fee)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x2223+375-0x2399)].tag=WMS_TAG_TYPE_MO_SENT_V01;
zUfiSms_CmgsRespProc();}VOID zSms_RecvCmgsErr(VOID){printf(
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x66\x61\x69\x6c\x2e\x20" "\n");
g_zUfiSms_CurConcatSegNo++;if(g_zUfiSms_CurConcatSegNo>
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_SendFailedCount++;printf(
"\x73\x65\x6e\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64\x2c\x73\x6f\x20\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x64\x72\x61\x66\x74\x62\x6f\x78\x2e" "\n"
-);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1fb0+1427-0x2542)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x10b+5861-0x17ef)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x17d5+1999-0x1fa3)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0xee6+4309-0x1fba)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc();}SINT32 zSms_SendCmgdReq
-(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x8ad+3024-0x147d)};delSmsReq.index=
+(UINT8 index){T_zSms_DelSmsReq delSmsReq={(0x353+1336-0x88b)};delSmsReq.index=
index;zSms_SendMsg(MSG_CMD_DELSMS_REQ,sizeof(T_zSms_DelSmsReq),&delSmsReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1009+3512-0x1dc0)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xf16+5782-0x25ab)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmgdOk(VOID){CHAR
-strUsed[(0x97c+7146-0x255c)]={(0xf04+1131-0x136f)};int used=(0xa84+2371-0x13c7);
-int tmp_i=(0x16fb+4109-0x2708);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+strUsed[(0x4ea+5228-0x194c)]={(0xc7f+2301-0x157c)};int used=(0xb15+1096-0xf5d);
+int tmp_i=(0x2319+870-0x267f);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x73\x69\x6d\x5f\x64\x65\x6c\x5f\x72\x65\x73\x75\x6c\x74\x20\x74\x6f\x20\x4f\x4b\x2e\x20" "\n"
);sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));tmp_i=atoi(
-strUsed);if(tmp_i<(0x1f6+6988-0x1d42)||tmp_i>INT_MAX-(0x164a+1285-0x1b4e)){
+strUsed);if(tmp_i<(0x97c+6996-0x24d0)||tmp_i>INT_MAX-(0x433+5251-0x18b5)){
at_print(LOG_ERR,
-"\x5b\x53\x4d\x53\x5d\x5a\x54\x45\x5f\x57\x4d\x53\x5f\x4e\x56\x43\x4f\x4e\x46\x49\x47\x5f\x53\x49\x4d\x5f\x43\x41\x52\x44\x5f\x55\x53\x45\x44\x20\x74\x6d\x70\x5f\x69\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,tmp_i);tmp_i=(0x48a+1549-0xa97);}used=tmp_i-(0x1a74+2053-0x2278);if(used<
-(0x13ca+3638-0x2200)){used=(0x460+7318-0x20f6);}memset(&strUsed,(0x3a+645-0x2bf)
-,(0x1629+2668-0x208b));snprintf(strUsed,sizeof(strUsed),"\x25\x64",used);
-sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed);}VOID zSms_RecvCmgdErr(VOID){
-sc_cfg_set(NV_SMS_DEL_RESULT,"\x66\x61\x69\x6c");printf(
+"\x5b\x53\x4d\x53\x5d\x57\x4d\x53\x5f\x4e\x56\x43\x4f\x4e\x46\x49\x47\x5f\x53\x49\x4d\x5f\x43\x41\x52\x44\x5f\x55\x53\x45\x44\x20\x74\x6d\x70\x5f\x69\x20\x65\x72\x72\x3a\x25\x64" "\n"
+,tmp_i);tmp_i=(0x57f+2718-0x101d);}used=tmp_i-(0x1065+628-0x12d8);if(used<
+(0xb74+2002-0x1346)){used=(0xe9f+5411-0x23c2);}memset(&strUsed,
+(0x19f6+852-0x1d4a),(0x62a+7858-0x24d2));snprintf(strUsed,sizeof(strUsed),
+"\x25\x64",used);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed);}VOID
+zSms_RecvCmgdErr(VOID){sc_cfg_set(NV_SMS_DEL_RESULT,"\x66\x61\x69\x6c");printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x73\x69\x6d\x5f\x64\x65\x6c\x5f\x72\x65\x73\x75\x6c\x74\x20\x74\x6f\x20\x66\x61\x69\x6c\x2e\x20" "\n"
-);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0xa9c+4013-0x1a3f)]={
-(0x28a+6863-0x1d59)};CHAR strTotal[(0x8ea+2656-0x1340)]={(0x340+3134-0xf7e)};
-CHAR strUsed[(0x2a3+4484-0x141d)]={(0xcc5+213-0xd9a)};int total=
-(0xd7+9277-0x2514);int used=(0x196b+2784-0x244b);int remain=(0xdd4+1139-0x1247);
+);}VOID zSms_RecvCmgdFinish(VOID){char StrValue[(0x19d5+2534-0x23b1)]={
+(0x7aa+5185-0x1beb)};CHAR strTotal[(0x116+5395-0x161f)]={(0xe9d+4614-0x20a3)};
+CHAR strUsed[(0x8b4+4600-0x1aa2)]={(0x6d6+5107-0x1ac9)};int total=
+(0xf32+3383-0x1c69);int used=(0x6ba+6897-0x21ab);int remain=(0x72d+2613-0x1162);
sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
-strUsed);if(used<(0x8b3+7162-0x24ad)||used>INT_MAX-(0x39d+7867-0x2257)){at_print
-(LOG_ERR,
-"\x5b\x53\x4d\x53\x5d\x5a\x54\x45\x5f\x57\x4d\x53\x5f\x4e\x56\x43\x4f\x4e\x46\x49\x47\x5f\x53\x49\x4d\x5f\x43\x41\x52\x44\x5f\x55\x53\x45\x44\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,used);used=(0x1856+167-0x18fd);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
-strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x14b6+1360-0x1a06)||
-total>INT_MAX-(0xcd9+2735-0x1787)){at_print(LOG_ERR,
-"\x5b\x53\x4d\x53\x5d\x5a\x54\x45\x5f\x57\x4d\x53\x5f\x4e\x56\x43\x4f\x4e\x46\x49\x47\x5f\x53\x49\x4d\x5f\x43\x41\x52\x44\x5f\x54\x4f\x54\x41\x4c\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,total);total=(0x9ff+3710-0x187d);}remain=total-used;if(remain<
-(0x503+1333-0xa38)){remain=(0x16cd+1761-0x1dae);}memset(&StrValue,
-(0xb71+5344-0x2051),(0x159b+9-0x159a));snprintf(StrValue,sizeof(StrValue),
+strUsed);if(used<(0x8eb+1558-0xf01)||used>INT_MAX-(0xa99+3230-0x1736)){at_print(
+LOG_ERR,
+"\x5b\x53\x4d\x53\x5d\x57\x4d\x53\x5f\x4e\x56\x43\x4f\x4e\x46\x49\x47\x5f\x53\x49\x4d\x5f\x43\x41\x52\x44\x5f\x55\x53\x45\x44\x20\x65\x72\x72\x3a\x25\x64" "\n"
+,used);used=(0xd20+4210-0x1d92);}sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,
+strTotal,sizeof(strTotal));total=atoi(strTotal);if(total<(0x488+1216-0x948)||
+total>INT_MAX-(0x557+240-0x646)){at_print(LOG_ERR,
+"\x5b\x53\x4d\x53\x5d\x57\x4d\x53\x5f\x4e\x56\x43\x4f\x4e\x46\x49\x47\x5f\x53\x49\x4d\x5f\x43\x41\x52\x44\x5f\x54\x4f\x54\x41\x4c\x20\x65\x72\x72\x3a\x25\x64" "\n"
+,total);total=(0x18d4+877-0x1c41);}remain=total-used;if(remain<
+(0x10c8+1778-0x17ba)){remain=(0x4ba+1844-0xbee);}memset(&StrValue,
+(0xaba+962-0xe7c),(0xc46+646-0xec2));snprintf(StrValue,sizeof(StrValue),
"\x25\x64",remain);sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_REMAIN,StrValue);printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x75\x73\x65\x64\x3d\x25\x64\x2c\x72\x65\x6d\x61\x69\x6e\x3d\x25\x64\x2c\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
,used,remain,total);zUfiSms_ChangeMainState(SMS_STATE_DELED);sc_cfg_set(
NV_SMS_DB_CHANGE,"\x31");}int zSms_SendZmenaReq(SINT32 avail){T_zSms_StroageReq
-storageReq={(0x6c3+357-0x828)};storageReq.type=avail;zSms_SendMsg(
+storageReq={(0x2f5+6657-0x1cf6)};storageReq.type=avail;zSms_SendMsg(
MSG_CMD_STORAGE_CAP_REQ,sizeof(T_zSms_StroageReq),&storageReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0xaf5+2726-0x159a)){return ZSMS_RESULT_OK;
+g_sms_sem_id);if(g_smsOptRsp.result==(0x2300+775-0x2606)){return ZSMS_RESULT_OK;
}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCmgrReq(UINT8 index){
-T_zSms_ModifyTagReq modTagReq={(0x994+4785-0x1c45)};modTagReq.index=index;
+T_zSms_ModifyTagReq modTagReq={(0x136+8273-0x2187)};modTagReq.index=index;
zSms_SendMsg(MSG_CMD_MODIFY_TAG_REQ,sizeof(T_zSms_ModifyTagReq),&modTagReq);
-sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0xe9a+1354-0x13e3)){return
+sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x16d8+250-0x17d1)){return
ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SetCscaReq(PSTR sca){
T_zSms_SetScaReq setscareq;strncpy(setscareq.sca,sca,sizeof(setscareq.sca)-
-(0x935+6102-0x210a));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
-setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1d41+610-0x1fa2)){
+(0x959+1638-0xfbe));zSms_SendMsg(MSG_CMD_SCA_SET_REQ,sizeof(T_zSms_SetScaReq),&
+setscareq);sem_wait(&g_sms_sem_id);if(g_smsOptRsp.result==(0x1734+1500-0x1d0f)){
return ZSMS_RESULT_OK;}else{return ZSMS_RESULT_ERROR;}}int zSms_SendCnmiReq(PSTR
- pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0x2462+245-0x2557)};if(
-(0x7c9+5467-0x1d24)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
-(0x14ff+424-0x16a6);}else{notifySetReq.mt=(0x139f+840-0x16e5);}zSms_SendMsg(
+ pAtCmdPara){T_zSms_NotifySetReq notifySetReq={(0xdb7+2761-0x1880)};if(
+(0x1841+1852-0x1f7d)==strcmp(pAtCmdPara,"\x73\x69\x6d")){notifySetReq.mt=
+(0x773+6838-0x2228);}else{notifySetReq.mt=(0x1065+3866-0x1f7d);}zSms_SendMsg(
MSG_CMD_NOTIFY_SET_REQ,sizeof(T_zSms_NotifySetReq),¬ifySetReq);sem_wait(&
-g_sms_sem_id);if(g_smsOptRsp.result==(0x240+2701-0xccc)){return ZSMS_RESULT_OK;}
-else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR
-needSMS[(0x10cc+1226-0x1564)]={(0x574+1204-0xa28)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xfec+5918-0x270a)==strcmp(
+g_sms_sem_id);if(g_smsOptRsp.result==(0x1c71+812-0x1f9c)){return ZSMS_RESULT_OK;
+}else{return ZSMS_RESULT_ERROR;}}VOID zSms_RecvCmtInd(UINT8*pDatabuf){CHAR
+needSMS[(0xc37+6184-0x242d)]={(0x686+5892-0x1d8a)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1894+782-0x1ba2)==strcmp(
needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}T_zSms_SmsInd tCmtRsp={(0x4ed+4469-0x1662)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x7a2+2648-0x11fa)};memcpy(&tCmtRsp,(
T_zSms_SmsInd*)pDatabuf,sizeof(T_zSms_SmsInd));zUfiSms_CmtRespProc(&tCmtRsp);
zUfiMmi_SendSmsStatus();sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}VOID
-zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0x15e6+3100-0x21e4)]={
-(0x1878+43-0x18a3)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0x14bd+1310-0x19a9)]={(0x1bfc+2505-0x25c5)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x4df+5191-0x1926)==strcmp(
+zSms_RecvCmtiInd(UINT8*pDatabuf){char sms_Main_state[(0x7c0+1117-0xbff)]={
+(0x17ed+3499-0x2598)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf
+;CHAR needSMS[(0x5a5+3999-0x1512)]={(0x13a7+1686-0x1a3d)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xc8b+6751-0x26ea)==strcmp(
needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
);return;}sc_cfg_get(NV_SMS_STATE,sms_Main_state,sizeof(sms_Main_state));if(
strcmp(sms_Main_state,"\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67")==
-(0x4d8+6719-0x1f17)){printf(
+(0x1b7+7123-0x1d8a)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x3a\x20\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67" "\n"
-);return;}if((0xb35+3544-0x190d)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x972+1280-0xe70))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x1519+3546-0x22f3)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0xecd+5270-0x2361))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
zUfiSms_ChangeMainState(SMS_STATE_RECVING);zSms_SendZmgrReq(smsIdxInd->index);}
else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x20\x3a\x73\x74\x6f\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x6e\x6f\x74\x20\x53\x4d\x2e" "\n"
);}sc_cfg_set(NV_SMS_RECV_RESULT,"");}VOID zSms_RecvCdsInd(UINT8*pDatabuf){CHAR
-needSMS[(0x70c+3147-0x1325)]={(0x219+7034-0x1d93)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x382+7722-0x21ac)==strcmp(
+needSMS[(0x430+7753-0x2247)]={(0x143b+669-0x16d8)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x63b+4133-0x1660)==strcmp(
needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}T_zSms_SmsInd tCmtRsp={(0x1238+4411-0x2373)};memcpy(&tCmtRsp,(
+);return;}T_zSms_SmsInd tCmtRsp={(0x405+6987-0x1f50)};memcpy(&tCmtRsp,(
T_zSms_SmsInd*)pDatabuf,sizeof(T_zSms_SmsInd));zUfiSms_CdsRespProc(&tCmtRsp);
zUfiMmi_SendSmsStatus();sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}VOID
-zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0xc8f+5236-0x20e5)]={
-(0xdc6+6296-0x265e)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
-CHAR needSMS[(0xa47+352-0xb75)]={(0x783+2230-0x1039)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xd02+6005-0x2477)==strcmp(
+zSms_RecvCdsiInd(UINT8*pDatabuf){char sms_Main_state[(0x10b9+666-0x1335)]={
+(0x728+1128-0xb90)};T_zSms_SmsIndexInd*smsIdxInd=(T_zSms_SmsIndexInd*)pDatabuf;
+CHAR needSMS[(0x6e5+7164-0x22af)]={(0x12b+7807-0x1faa)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x1f7+8290-0x2259)==strcmp(
needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
);return;}sc_cfg_get(NV_SMS_STATE,sms_Main_state,sizeof(sms_Main_state));if(
strcmp(sms_Main_state,"\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67")==
-(0x47+6658-0x1a49)){printf(
+(0x9a4+1144-0xe1c)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x3a\x20\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67" "\n"
-);return;}if((0x174f+1775-0x1e3e)==strncmp("\x53\x4d",smsIdxInd->storetype,
-(0x1222+4434-0x2372))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
+);return;}if((0x1876+481-0x1a57)==strncmp("\x53\x4d",smsIdxInd->storetype,
+(0x189c+1771-0x1f85))){zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);
zUfiSms_ChangeMainState(SMS_STATE_RECVING);zSms_SendZmgrReq(smsIdxInd->index);}
else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x20\x3a\x73\x74\x6f\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x6e\x6f\x74\x20\x53\x4d\x2e" "\n"
);}sc_cfg_set(NV_SMS_RECV_RESULT,"");}int zSms_SendCnmaReq(int ack_mode){
-T_zSms_SmsAckReq ackReq={(0x1199+4568-0x2371)};CHAR ackPduStr[
-(0xf63+1711-0x15e0)]={(0xa8+9259-0x24d3)};ackReq.ackmode=ack_mode;if(ack_mode==
-(0x15c5+448-0x1783)){zUfiSms_EncodePdu_DeliverReport(ackPduStr,
-(0xaf9+4215-0x1a9d));memcpy(ackReq.pdu,ackPduStr,strlen(ackPduStr));
-#if (0x2147+627-0x23ba)
-if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x620+342-0x775)){memcpy(ackReq.pdu,
+T_zSms_SmsAckReq ackReq={(0xd77+2651-0x17d2)};CHAR ackPduStr[(0x1c4f+617-0x1e86)
+]={(0xcc8+5329-0x2199)};ackReq.ackmode=ack_mode;if(ack_mode==(0x288+2519-0xc5d))
+{zUfiSms_EncodePdu_DeliverReport(ackPduStr,(0x2da+8212-0x221b));memcpy(ackReq.
+pdu,ackPduStr,strlen(ackPduStr));
+#if (0x19d3+1442-0x1f75)
+if(strlen(ackPduStr)<ZSMS_PDU_SIZE-(0x617+1084-0xa52)){memcpy(ackReq.pdu,
ackPduStr,strlen(ackPduStr));}else{at_print(LOG_DEBUG
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x20\x70\x64\x75\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x25\x73" "\n"
-,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0x730+4626-0x1940));}
+,ackPduStr);memcpy(ackReq.pdu,ackPduStr,ZSMS_PDU_SIZE-(0x1485+3647-0x22c2));}
#endif
*(ackReq.pdu+strlen(ackPduStr))=ZSMS_CTRL_Z_CHAR;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x2e\x20\x70\x64\x75\x3d\x20\x25\x73" "\n"
-,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0x9e9+3107-0x160a);}zSms_SendMsg(
+,ackReq.pdu);ackReq.length=strlen(ackPduStr)/(0x474+483-0x655);}zSms_SendMsg(
MSG_CMD_SMSACK_REQ,sizeof(T_zSms_SmsAckReq),&ackReq);sem_wait(&g_sms_sem_id);if(
-g_smsOptRsp.result==(0xe05+2840-0x191c)){return ZSMS_RESULT_OK;}else{return
+g_smsOptRsp.result==(0x1578+262-0x167d)){return ZSMS_RESULT_OK;}else{return
ZSMS_RESULT_ERROR;}}int zSms_SendZmgrReq(int index){T_zSms_ReadSmsReq readSmsReq
-={(0x1c7+4110-0x11d5)};iSmsIndex=index;printf(
+={(0x140f+1078-0x1845)};iSmsIndex=index;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x5a\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);readSmsReq.index=index;zSms_SendMsg(MSG_CMD_READSMS_REQ,sizeof(
-T_zSms_ReadSmsReq),&readSmsReq);return(0x2a1+8196-0x22a5);}VOID zSms_RecvZmgrRsp
-(UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x9e2+2038-0x11d8)};memcpy(&tCmgrRsp,(
+T_zSms_ReadSmsReq),&readSmsReq);return(0x5c8+8102-0x256e);}VOID zSms_RecvZmgrRsp
+(UINT8*pDatabuf){T_zSms_SmsInd tCmgrRsp={(0x48d+8325-0x2512)};memcpy(&tCmgrRsp,(
T_zSms_SmsInd*)pDatabuf,sizeof(T_zSms_SmsInd));tCmgrRsp.index=iSmsIndex;
zUfiSms_ZmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();}VOID zSms_RecvZmgrOk(
-UINT8*pDatabuf){T_zSms_optRsp smsOptRsp={(0x8ca+7007-0x2429)};memcpy(&smsOptRsp,
+UINT8*pDatabuf){T_zSms_optRsp smsOptRsp={(0x796+7878-0x265c)};memcpy(&smsOptRsp,
(T_zSms_optRsp*)pDatabuf,sizeof(T_zSms_optRsp));if(smsOptRsp.result==
-(0xc1d+2296-0x1514)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{printf(
+(0x1183+2194-0x1a14)){sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x45\x72\x72\x20\x20\x53\x4d\x53\x20\x7a\x6d\x67\x72\x20\x69\x73\x20\x66\x61\x69\x6c" "\n"
);sc_cfg_set(NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(
SMS_STATE_RECVED);}}VOID zSms_RecvZpbicInd(UINT8*pDatabuf){T_zAt_ZpbicRes*ptPara
=ZUFI_NULL;if(pDatabuf==NULL){return;}ptPara=(T_zAt_ZpbicRes*)(pDatabuf);if((
-(0x1df1+1344-0x2330)==ptPara->result)&&((0x149c+543-0x16bb)==ptPara->opertype)){
-CHAR needSms[(0xd2f+6461-0x263a)]={(0xa40+6636-0x242c)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x1b16+1348-0x205a)!=strcmp(
+(0x53d+229-0x621)==ptPara->result)&&((0xd41+4582-0x1f27)==ptPara->opertype)){
+CHAR needSms[(0xce0+2151-0x1515)]={(0x134c+2318-0x1c5a)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSms,sizeof(needSms));if((0x1adf+2576-0x24ef)!=strcmp(
needSms,"\x6e\x6f")){zSvr_Zpbic_Sms_Init();}}}VOID zSms_RecvCpmsInd(UINT8*
pDatabuf){T_zSms_CpmsInd*cpmsInd=(T_zSms_CpmsInd*)pDatabuf;CHAR strBuf[
-(0x1c68+1607-0x22a5)]={(0x17d9+281-0x18f2)};int remainSpace=(0x148c+1376-0x19ec)
-;snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->total);sc_cfg_set(
+(0x271+405-0x3fc)]={(0x736+6241-0x1f97)};int remainSpace=(0xe2+3793-0xfb3);
+snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->total);sc_cfg_set(
ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,strBuf);sc_cfg_set(
-ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0x1d22+478-0x1f00),
-(0x1bc6+2168-0x2434));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
+ZTE_WMS_NVCONFIG_SIM_CAPABILITY,strBuf);memset(&strBuf,(0x4e3+7060-0x2077),
+(0x1151+3773-0x2004));snprintf(strBuf,sizeof(strBuf),"\x25\x64",cpmsInd->used);
sc_cfg_set(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strBuf);remainSpace=cpmsInd->total-
-cpmsInd->used;memset(&strBuf,(0x23f+2138-0xa99),(0x11d9+954-0x1589));snprintf(
+cpmsInd->used;memset(&strBuf,(0x1d13+2082-0x2535),(0x18a1+444-0x1a53));snprintf(
strBuf,sizeof(strBuf),"\x25\x64",remainSpace);sc_cfg_set(
ZTE_WMS_NVCONFIG_SIM_CARD_REMAIN,strBuf);sc_cfg_set(NV_SMS_STORE,"\x6f\x6b");}
-#define AT_CMD_MAX (0x1024+2275-0x18c7)
+#define AT_CMD_MAX (0x42d+1979-0xba8)
#define ZAT_TAB_REPLACE ((unsigned char )(\
-(0x12fc+640-0x1480)))
+(0x1c4+6728-0x1b10)))
#define ZAT_NULL_FILL ((unsigned char )(\
-(0x5b0+8398-0x2581)))
-#define ZAT_SPACE_REPLACE ((unsigned char )((0x645+706-0x809))\
-)
+(0x1b7+5049-0x1473)))
+#define ZAT_SPACE_REPLACE ((unsigned char )((0x878+1986-0xf3c)\
+))
#define ZAT_LF_REPLACE ((unsigned char )(\
-(0x1287+698-0x1446)))
-#define ZAT_CR_REPLACE ((unsigned char )((0xf01+205-0xed4))\
-)
+(0x3f9+5840-0x19ce)))
+#define ZAT_CR_REPLACE ((unsigned char )(\
+(0xc10+6126-0x2304)))
static void atBase_PreProcRes(char*pParaLine,int paraSize){signed long flg=
-(0x196+4236-0x1222);unsigned long i=(0x43f+1187-0x8e2);unsigned long length=
-(0xad1+1303-0xfe8);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
+(0x2310+141-0x239d);unsigned long i=(0x131+5383-0x1638);unsigned long length=
+(0x98b+369-0xafc);char*pSource=pParaLine;char*pDest=NULL;char*pStrDestMalloc=(
char*)malloc(AT_CMD_MAX);if(NULL==pStrDestMalloc){return;}memset(pStrDestMalloc,
-(0xac2+6547-0x2455),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
-length=strlen(pParaLine);if((length==(0xde1+1354-0x132b))||(length>=AT_CMD_MAX))
-{free(pStrDestMalloc);return;}for(i=(0x1195+1477-0x175a);(i<length)&&(pDest-
-pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x1c2c+630-0x1e80))==*pSource){flg=(
-(0x1381+1463-0x1938)==flg)?(0xfd6+2393-0x192e):(0x1e6+4940-0x1532);if(
-((char)(0x2fc+8646-0x24a0))==*(pSource+(0x8ec+7344-0x259b))){*pDest++=(char)
-ZAT_NULL_FILL;}}else if((((char)(0x1366+881-0x16ab))==*pSource)&&(
-(0xd08+5536-0x22a8)==flg)){*pDest++=((char)(0x68a+3707-0x14e5));if(
-((char)(0x294+4846-0x1556))==*(pSource+(0x2d0+8757-0x2504))){*pDest++=
-((char)(0xe5c+5541-0x23c8));}else if('\0'==*(pSource+(0x68+1000-0x44f))){*pDest
-++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x1b7+4846-0x1485))==*pSource)&&(
-(0x6a8+2990-0x1255)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
-pSource)&&((0x144a+2720-0x1ee9)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
-'\n'==*pSource)&&((0x1068+2405-0x19cc)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}
-else if(('\r'==*pSource)&&((0x9a3+5019-0x1d3d)==flg)){*pDest++=(char)
-ZAT_CR_REPLACE;}else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,
-(0x14a5+3841-0x23a6),paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-
-(0x24f7+265-0x25ff));free(pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf)
-{T_zSms_CscaInd cscaInd={(0x1865+2432-0x21e5)};
-#if (0xcad+1344-0x11ec)
+(0x2a0+474-0x47a),AT_CMD_MAX);assert(pParaLine!=NULL);pDest=pStrDestMalloc;
+length=strlen(pParaLine);if((length==(0x149+5136-0x1559))||(length>=AT_CMD_MAX))
+{free(pStrDestMalloc);return;}for(i=(0x172+1508-0x756);(i<length)&&(pDest-
+pStrDestMalloc<AT_CMD_MAX);i++){if(((char)(0x1af6+1517-0x20c1))==*pSource){flg=(
+(0x14a8+3836-0x23a4)==flg)?(0x106f+602-0x12c8):(0x1bc4+1359-0x2113);if(
+((char)(0x17ea+1109-0x1c1d))==*(pSource+(0xc68+861-0xfc4))){*pDest++=(char)
+ZAT_NULL_FILL;}}else if((((char)(0xa15+1578-0x1013))==*pSource)&&(
+(0x78a+2018-0xf6c)==flg)){*pDest++=((char)(0x1da5+642-0x2007));if(
+((char)(0x202a+1236-0x24d2))==*(pSource+(0x1cb+2578-0xbdc))){*pDest++=
+((char)(0x1a8d+2824-0x255c));}else if('\0'==*(pSource+(0x45b+4524-0x1606))){*
+pDest++=(char)ZAT_NULL_FILL;}}else{if((((char)(0x187d+150-0x18f3))==*pSource)&&(
+(0x1212+4543-0x23d0)==flg)){*pDest++=(char)ZAT_SPACE_REPLACE;}else if(('\t'==*
+pSource)&&((0x7f6+3782-0x16bb)==flg)){*pDest++=(char)ZAT_TAB_REPLACE;}else if((
+'\n'==*pSource)&&((0x4f0+1242-0x9c9)==flg)){*pDest++=(char)ZAT_LF_REPLACE;}else
+if(('\r'==*pSource)&&((0x91+7342-0x1d3e)==flg)){*pDest++=(char)ZAT_CR_REPLACE;}
+else{*pDest++=*pSource;}}pSource++;}memset(pParaLine,(0x17f3+2666-0x225d),
+paraSize);strncpy(pParaLine,pStrDestMalloc,paraSize-(0x1993+1535-0x1f91));free(
+pStrDestMalloc);}VOID zSms_RecvCscaInd(UINT8*pDatabuf){T_zSms_CscaInd cscaInd={
+(0x1368+1201-0x1819)};
+#if (0x1bc7+226-0x1ca8)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x7a\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x73\x63\x61\x49\x6e\x64\x20\x64\x61\x74\x61\x62\x75\x66\x3a\x25\x73" "\n"
,pDatabuf);
#endif
atBase_PreProcRes(pDatabuf,strlen(pDatabuf));sscanf(pDatabuf,
"\x25\x32\x31\x73\x20\x25\x32\x31\x73",cscaInd.sca,cscaInd.tosca);
-#if (0xa25+6039-0x21bb)
+#if (0x1277+2455-0x1c0d)
printf(
"\x5b\x53\x4d\x53\x63\x6f\x72\x65\x6d\x5d\x7a\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x73\x63\x61\x49\x6e\x64\x20\x73\x63\x61\x3a\x25\x73\x2c\x20\x74\x6f\x73\x63\x61\x25\x73" "\n"
,cscaInd.sca,cscaInd.tosca);
@@ -312,22 +312,22 @@
sc_cfg_set(NV_SMS_CENTER_NUM,cscaInd.sca);zUfiSms_SetScaPara(cscaInd.sca);}VOID
zSms_RecvZmglInd(UINT8*pDatabuf){zUfiSms_CmglRespProc((T_zSms_SmsInd*)pDatabuf);
}int zSms_SendSmsInitReq(VOID){zSms_SendMsg(MSG_CMD_SMSINIT_REQ,
-(0xc68+5750-0x22de),NULL);return(0xd50+4178-0x1da2);}VOID zSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0x1391+1385-0x18fa)};sc_cfg_set(NV_SMS_STORE,
+(0x1522+2546-0x1f14),NULL);return(0x48f+7465-0x21b8);}VOID zSms_initAtOk(VOID){
+T_zUfiSms_StatusInfo tStatus={(0x1968+218-0x1a42)};sc_cfg_set(NV_SMS_STORE,
"\x6f\x6b");sc_cfg_set(NV_SMS_LOAD_RESULT,"\x6f\x6b");tStatus.cmd_status=
WMS_CMD_SUCCESS;tStatus.cmd=WMS_SMS_CMD_INIT;(void)zUfiSms_SetCmdStatus(&tStatus
);zUfiSms_ChangeMainState(SMS_STATE_LOADED);}VOID zSms_initAtErr(VOID){
-T_zUfiSms_StatusInfo tStatus={(0xf23+4567-0x20fa)};sc_cfg_set(NV_SMS_LOAD_RESULT
+T_zUfiSms_StatusInfo tStatus={(0x1465+539-0x1680)};sc_cfg_set(NV_SMS_LOAD_RESULT
,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_LOADED);tStatus.
cmd_status=WMS_CMD_FAILED;tStatus.cmd=WMS_SMS_CMD_INIT;(void)
zUfiSms_SetCmdStatus(&tStatus);}VOID zSms_RecvSmsInitRst(UINT8*pDatabuf){memcpy(
&g_smsOptRsp,pDatabuf,sizeof(T_zSms_optRsp));if(g_smsOptRsp.result==
-(0x193d+2424-0x22b4)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
+(0x1830+3464-0x25b7)){zSms_initAtOk();}else{zSms_initAtErr();}}UINT8
zSms_SmsMsgCreat(VOID){g_zSms_MsqId=msgget(MODULE_ID_SMS,IPC_CREAT|
-(0x18aa+1507-0x1d0d));if(g_zSms_MsqId==-(0x653+6501-0x1fb7)){return ZUFI_FAIL;}
-g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0xddb+4569-0x1e34));if(
-g_zSms_LocalMsqId==-(0x107+4838-0x13ec)){return ZUFI_FAIL;}sem_init(&
-g_sms_sem_id,(0x306+4455-0x146d),(0x179a+3608-0x25b2));return ZUFI_SUCC;}void
+(0x8a7+3090-0x1339));if(g_zSms_MsqId==-(0x2f7+1497-0x8cf)){return ZUFI_FAIL;}
+g_zSms_LocalMsqId=msgget(MODULE_ID_SMS_LOCAL,IPC_CREAT|(0x6ea+6763-0x1fd5));if(
+g_zSms_LocalMsqId==-(0xd28+2661-0x178c)){return ZUFI_FAIL;}sem_init(&
+g_sms_sem_id,(0x104+9111-0x249b),(0xa1f+5172-0x1e53));return ZUFI_SUCC;}void
zSms_HandleAtctlLocalMsg(MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
"\x73\x6d\x73\x20\x6c\x6f\x63\x61\x6c\x20\x72\x65\x63\x76\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_ZPBIC_IND:
@@ -351,43 +351,43 @@
case MSG_CMD_NEWSMS_IND:case MSG_CMD_ZPBIC_IND:case MSG_CMD_ZMGL_IND:case
MSG_CMD_NEWSMS_STATUS_IND:ipc_send_message(MODULE_ID_SMS,MODULE_ID_SMS_LOCAL,
ptMsgBuf->usMsgCmd,ptMsgBuf->usDataLen,(unsigned char*)ptMsgBuf->aucDataBuf,
-(0x92f+1349-0xe74));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
-clearSms[(0x2f8+6410-0x1bd0)]={(0x4b0+6527-0x1e2f)};sc_cfg_get(
+(0xb75+5516-0x2101));break;default:break;}}VOID zSms_HandleResetToFactory(){CHAR
+ clearSms[(0x1735+3665-0x2554)]={(0x344+7120-0x1f14)};sc_cfg_get(
NV_CLEAR_SMS_WHEN_RESTORE,clearSms,sizeof(clearSms));printf(
"\x61\x74\x57\x65\x62\x5f\x52\x65\x73\x74\x6f\x72\x65\x46\x61\x63\x74\x6f\x72\x79\x53\x65\x74\x74\x69\x6e\x67\x20\x65\x6e\x74\x65\x72\x65\x64\x21\x20" "\n"
);printf(
"\x63\x6c\x65\x61\x72\x5f\x73\x6d\x73\x5f\x77\x68\x65\x6e\x5f\x72\x65\x73\x74\x6f\x72\x65\x3d\x25\x73\x20" "\n"
-,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0x1aca+1136-0x1f3a)){printf(
+,clearSms);if(strcmp(clearSms,"\x79\x65\x73")==(0xd62+959-0x1121)){printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x72\x6f\x70\x41\x6c\x6c\x54\x61\x62\x6c\x65\x20\x65\x6e\x74\x65\x72\x65\x64\x21\x20" "\n"
);zUfiSms_DropAllTable();}else{printf(
"\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x72\x6f\x70\x41\x6c\x6c\x54\x61\x62\x6c\x65\x45\x78\x63\x65\x70\x74\x53\x6d\x73\x20\x65\x6e\x74\x65\x72\x65\x64\x21\x20" "\n"
);zUfiSms_DropAllTableExceptSms();}ipc_send_message(MODULE_ID_SMS,
-MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0x1202+826-0x153c),NULL,(0xd8+254-0x1d6))
+MODULE_ID_MAIN_CTRL,MSG_CMD_RESET_RSP,(0x248b+143-0x251a),NULL,(0xe5+525-0x2f2))
;}void zSms_HandleMainCtrlMsg(MSG_BUF*ptMsgBuf){assert(ptMsgBuf!=NULL);printf(
"\x73\x6d\x73\x20\x72\x65\x63\x76\x20\x6d\x61\x69\x6e\x20\x63\x74\x72\x6c\x20\x6d\x73\x67\x20\x63\x6d\x64\x3a\x25\x64" "\n"
,ptMsgBuf->usMsgCmd);switch(ptMsgBuf->usMsgCmd){case MSG_CMD_RESET_NOTIFY:
zSms_HandleResetToFactory(ptMsgBuf->aucDataBuf);break;default:break;}}void
-sms_msg_thread_proc(void*arg){int iRet=(0xf85+5889-0x2686);MSG_BUF stMsg={
-(0xd8d+5501-0x230a)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
+sms_msg_thread_proc(void*arg){int iRet=(0x787+5142-0x1b9d);MSG_BUF stMsg={
+(0xab7+6413-0x23c4)};int msgSize=sizeof(MSG_BUF)-sizeof(long);int queueId=*((int
*)arg);prctl(PR_SET_NAME,"\x73\x6d\x73\x5f\x6c\x6f\x63\x61\x6c",
-(0x16dc+3353-0x23f5),(0xae9+1153-0xf6a),(0x18a9+24-0x18c1));while(
-(0x12cf+2986-0x1e78)){iRet=(0x120+6806-0x1bb6);memset(&stMsg,(0x28f+3728-0x111f)
-,sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0x1c4+4562-0x1396),
-(0x3bb+1562-0x9d5));if(iRet>=(0x451+7688-0x2259)){switch(stMsg.src_id){case
+(0x9cc+3475-0x175f),(0x1529+4007-0x24d0),(0xa57+4052-0x1a2b));while(
+(0xcf4+1083-0x112e)){iRet=(0xc97+3262-0x1955);memset(&stMsg,(0x1187+5205-0x25dc)
+,sizeof(MSG_BUF));iRet=msgrcv(queueId,&stMsg,msgSize,(0xf23+2928-0x1a93),
+(0x383+4090-0x137d));if(iRet>=(0x753+1942-0xee9)){switch(stMsg.src_id){case
MODULE_ID_WEB_CGI:{zSms_HandleWebMsg(&stMsg);break;}case MODULE_ID_AT_CTL:{
zSms_HandleAtctlMsg(&stMsg);break;}case MODULE_ID_SMS:{zSms_HandleWebMsg(&stMsg)
;zSms_HandleAtctlLocalMsg(&stMsg);break;}case MODULE_ID_MAIN_CTRL:{
zSms_HandleMainCtrlMsg(&stMsg);break;}default:{break;}}}else{at_print(AT_DEBUG,
"\x65\x72\x72\x6e\x6f\x20\x3d\x20\x25\x64\x2c\x20\x65\x72\x72\x6d\x73\x67\x20\x3d\x20\x25\x73" "\n"
,errno,strerror(errno));}}}int sms_main(int argc,char*argv[]){pthread_t
-recv_thread_tid=(0xec8+5109-0x22bd);MSG_BUF msgBuf={(0x54a+5606-0x1b30)};CHAR
-needSMS[(0xaa5+4308-0x1b47)]={(0x1d0+1708-0x87c)};prctl(PR_SET_NAME,
-"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x936+5535-0x1ed5),(0x1a45+864-0x1da5),
-(0xcf8+5757-0x2375));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
-sizeof(needSMS));if((0x659+4389-0x177e)!=strcmp(needSMS,"\x6e\x6f")){
+recv_thread_tid=(0x2e1+4893-0x15fe);MSG_BUF msgBuf={(0x815+4647-0x1a3c)};CHAR
+needSMS[(0x1ca8+1587-0x22a9)]={(0x1d8d+1563-0x23a8)};prctl(PR_SET_NAME,
+"\x73\x6d\x73\x5f\x6d\x61\x69\x6e",(0x348+818-0x67a),(0x1245+1748-0x1919),
+(0x1b3d+2000-0x230d));loglevel_init();sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,
+sizeof(needSMS));if((0x3fb+4564-0x15cf)!=strcmp(needSMS,"\x6e\x6f")){
zUfiSms_InitDb();zUfiSms_CfgSmsNvInit();zUfiMmi_SendSmsStatus();zSms_SmsMsgCreat
-();}else{return-(0x1be3+2678-0x2658);}printf(
+();}else{return-(0x1268+4265-0x2310);}printf(
"\x73\x6d\x73\x20\x61\x70\x70\x20\x69\x6e\x69\x74\x20\x66\x69\x6e\x69\x73\x68\x65\x64\x2c\x20\x77\x69\x6c\x6c\x20\x74\x6f\x20\x72\x65\x63\x65\x69\x76\x65\x20\x6d\x73\x67\x2c\x20\x6d\x73\x67\x69\x64\x3a\x25\x64" "\n"
,g_zSms_MsqId);if(pthread_create(&recv_thread_tid,NULL,sms_msg_thread_proc,(void
-*)(&g_zSms_LocalMsqId))==-(0x19ed+1624-0x2044)){assert((0xd26+568-0xf5e));}
-sms_msg_thread_proc(&g_zSms_MsqId);return(0x1d5b+794-0x2075);}
+*)(&g_zSms_LocalMsqId))==-(0xc08+3513-0x19c0)){assert((0x632+6875-0x210d));}
+sms_msg_thread_proc(&g_zSms_MsqId);return(0x3ad+6330-0x1c67);}
diff --git a/ap/app/zte_comm/sms/src/sms_proc.c b/ap/app/zte_comm/sms/src/sms_proc.c
index 762a717..1ac018a 100755
--- a/ap/app/zte_comm/sms/src/sms_proc.c
+++ b/ap/app/zte_comm/sms/src/sms_proc.c
@@ -5,115 +5,115 @@
T_zUfiSms_ConcatInfo g_zUfiSms_ConcatSms;T_zUfiSms_GroupInfo g_zUfiSms_GroupSms;
T_zUfiSms_DbStoreData g_zUfiSms_DbStoreData[ZTE_WMS_CONCAT_SMS_COUNT_MAX];UINT8
g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_MAX]={FALSE,FALSE};T_zUfiSms_DelSms
-g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x13cb+1793-0x1acc)};
-T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x1451+769-0x1752)};
-T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x35f+5957-0x1aa4)};int
-g_zUfiSms_UnitLen=(0x5f7+3453-0x1374);int g_zUfiSms_ConcatTotalNum=
-(0x87f+499-0xa72);int g_zUfiSms_CurConcatSegNo=(0xfbd+2690-0x1a3f);UINT8
-g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0x64c+6714-0x2086)
-;int g_zUfiSms_MsgRefer=(0x1331+4447-0x2490);int g_zUfiSms_SendFailedRetry=
-(0x65+8458-0x216f);char g_Zmena_value[(0x11b9+3574-0x1fad)]={(0x5bf+8005-0x2504)
-};int g_displaymode=(0x117f+3550-0x1f5d);extern SMS_LOCATION
+g_zUfiSms_DelMsg;T_zUfiSms_DelIndexInfo g_deleteIndex={(0x6b6+6149-0x1ebb)};
+T_zUfiSms_ModifySms g_zUfiSms_modifyMsg={(0x29b+6547-0x1c2e)};
+T_zUfiSms_ModifyIndexInfo g_modifyIndex={(0x77b+7607-0x2532)};int
+g_zUfiSms_UnitLen=(0x13d3+4772-0x2677);int g_zUfiSms_ConcatTotalNum=
+(0x809+441-0x9c2);int g_zUfiSms_CurConcatSegNo=(0x1487+2984-0x202f);UINT8
+g_zUfiSms_IsConcatSendSuc=TRUE;int g_zUfiSms_SendFailedCount=(0xd56+1243-0x1231)
+;int g_zUfiSms_MsgRefer=(0x1374+4768-0x2614);int g_zUfiSms_SendFailedRetry=
+(0xc3b+6081-0x23fc);char g_Zmena_value[(0x19b4+1834-0x20dc)]={
+(0x824+5684-0x1e58)};int g_displaymode=(0x283+5059-0x1646);extern SMS_LOCATION
g_zUfiSms_CurLocation;extern T_zUfiSms_CmdStatus zUfiSms_HandleReport(unsigned
char*ptPduData);extern void zUfiSms_GetReportStatus(char*pdu_tmp,int*stat);
extern VOID zUfiSms_ResendAtCmdZmena(int cid);extern int zUfiSms_DecodeSmsData(
T_zUfiSms_DbStoreData*pDb_Data,int msg_index,zUfiSms_StoreType iStorePos,
T_SmsStatus bSms_Status,wms_message_format_enum_v01 format,long iPdu_Len,
unsigned char*pPdu_Received);typedef struct{long mtype;char mtext[
-(0x1c99+1583-0x22bc)];}FOTA_MSG_BUF;
-#define WEBUI_NOTIFY_PUSH_MSG_ (0x14a9+2802-0x1f98)
+(0x151b+97-0x1570)];}FOTA_MSG_BUF;
+#define WEBUI_NOTIFY_PUSH_MSG_ (0x241+5942-0x1974)
typedef struct{unsigned int isread_record;unsigned int inbox_full;}
T_zUfiMmi_SmsRecord;void zUfiMmi_SendSmsStatus(void){int iSmsNum=
-(0x18bc+2110-0x20fa);T_zUfiMmi_SmsRecord tRecord={(0xa63+2994-0x1615)};CHAR
-smsNum[(0xa75+5342-0x1f21)]={(0xdca+2769-0x189b)};sc_cfg_get(NV_SMS_IN_NUM,
-smsNum,sizeof(smsNum));iSmsNum=atoi(smsNum);tRecord.isread_record=
-zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_MAX);if(iSmsNum>=ZSMS_NUM_MAX_CPE){tRecord.
-inbox_full=(0xf4b+1376-0x14aa);}else{tRecord.inbox_full=(0xe0+7534-0x1e4e);}}
-VOID zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(
-SMS_STATE_INITING);}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=
-(0x122c+2047-0x1a2b);T_zUfiSms_StatusInfo tStatus={(0xbfb+3939-0x1b5e)};CHAR
-outDate[(0x109a+638-0x12e6)]={(0x565+5660-0x1b81)};zUfiSms_Init();
-zUfiSms_InitCmdStatus(&tStatus,WMS_SMS_CMD_INIT);zSms_SendSmsInitReq();at_print(
-LOG_DEBUG,"corem zSvr_Zpbic_Sms_Init has send init req\n");zSms_SendZmenaReq(
-(0xb1c+5019-0x1eb7));at_print(LOG_DEBUG,
+(0x1d96+1218-0x2258);T_zUfiMmi_SmsRecord tRecord={(0x76a+5590-0x1d40)};CHAR
+smsNum[(0x98+86-0xbc)]={(0x19d+65-0x1de)};sc_cfg_get(NV_SMS_IN_NUM,smsNum,sizeof
+(smsNum));iSmsNum=atoi(smsNum);tRecord.isread_record=zUfiSms_IsUnreadSms(
+ZTE_WMS_MEMORY_MAX);if(iSmsNum>=ZSMS_NUM_MAX_CPE){tRecord.inbox_full=
+(0x151c+4249-0x25b4);}else{tRecord.inbox_full=(0x939+3522-0x16fb);}}VOID
+zUfiSms_Init(VOID){zUfiSms_CfgInit();zUfiSms_ChangeMainState(SMS_STATE_INITING);
+}VOID zSvr_Zpbic_Sms_Init(VOID){int atRes=(0x14ba+1333-0x19ef);
+T_zUfiSms_StatusInfo tStatus={(0x1118+490-0x1302)};CHAR outDate[
+(0x922+2729-0x1399)]={(0xe3d+654-0x10cb)};zUfiSms_Init();zUfiSms_InitCmdStatus(&
+tStatus,WMS_SMS_CMD_INIT);zSms_SendSmsInitReq();at_print(LOG_DEBUG,
+"corem zSvr_Zpbic_Sms_Init has send init req\n");zSms_SendZmenaReq(
+(0x56a+3862-0x1480));at_print(LOG_DEBUG,
"\x63\x6f\x72\x65\x6d\x20\x7a\x53\x76\x72\x5f\x5a\x70\x62\x69\x63\x5f\x53\x6d\x73\x5f\x49\x6e\x69\x74\x20\x68\x61\x73\x20\x73\x65\x6e\x64\x20\x7a\x6d\x65\x6e\x61\x20\x72\x65\x71" "\n"
);sc_cfg_get(NV_OUTDATE_DELETE,outDate,sizeof(outDate));at_print(LOG_DEBUG,
"\x63\x6f\x72\x65\x6d\x20\x7a\x53\x76\x72\x5f\x5a\x70\x62\x69\x63\x5f\x53\x6d\x73\x5f\x49\x6e\x69\x74\x20\x6f\x75\x74\x64\x61\x74\x65\x20\x63\x68\x65\x63\x6b\x20\x25\x73" "\n"
-,outDate);if((0xf4b+5415-0x2472)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
+,outDate);if((0x3b1+8640-0x2571)==strcmp(outDate,"\x31")){atWeb_OutdateSmsCheck(
ZUFI_NULL);}}VOID zUfiSms_DeleteAllSimSms(VOID){zUfiSms_DeleteAllSimSmsInDb();}
-#if (0x1a25+3302-0x270b)
-VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x145a+4058-0x2402)]={
-(0x66+9440-0x2546)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
-g_Zmena_rsp&&((0x70f+5852-0x1deb)!=strcmp(
-"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0xb19+6180-0x233d)!=strcmp
+#if (0x620+1308-0xb3c)
+VOID zUfiSms_ResendAtCmdZmena(int cid){CHAR netType[(0x66a+5411-0x1b5b)]={
+(0x417+2697-0xea0)};sc_cfg_get(NV_NETWORK_TYPE,netType,sizeof(netType));if(!
+g_Zmena_rsp&&((0xda5+5066-0x216f)!=strcmp(
+"\x4e\x6f\x20\x53\x65\x72\x76\x69\x63\x65",netType)&&(0x141+4993-0x14c2)!=strcmp
("\x4c\x69\x6d\x69\x74\x65\x64\x20\x53\x65\x72\x76\x69\x63\x65",netType))){
atUnsoli_Report_Zmena(NULL,cid);}}
#endif
void zUfiSms_Ack_new_msg(BOOL needAck){
-#if (0xadc+2388-0x1430)
-CHAR ackPduStr[(0xc71+5659-0x20fc)]={(0x6af+7356-0x236b)};SMS_PARAM reportParam=
-{(0x16eb+3419-0x2446)};int total_length=(0xf12+3137-0x1b53);UINT8 TP_FCS=
-(0x109b+1211-0x1556);CHAR strValue[(0x1961+1709-0x200c)]={(0x1e67+2116-0x26ab)};
-if(needAck){TP_FCS=(0x12c+1799-0x833);sprintf(strValue,"\x25\x64",
-(0x607+114-0x678));}else{TP_FCS=(0x9db+4022-0x18be);sprintf(strValue,"\x25\x64",
-(0x1a4a+1576-0x2070));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
+#if (0x2b+8681-0x2214)
+CHAR ackPduStr[(0xbaf+3462-0x17a5)]={(0x359+9081-0x26d2)};SMS_PARAM reportParam=
+{(0xb59+650-0xde3)};int total_length=(0x612+3971-0x1595);UINT8 TP_FCS=
+(0x1be7+844-0x1f33);CHAR strValue[(0x109f+857-0x13f6)]={(0x1adc+2077-0x22f9)};if
+(needAck){TP_FCS=(0xba3+211-0xc76);sprintf(strValue,"\x25\x64",
+(0xa8+7928-0x1f9f));}else{TP_FCS=(0xd9+7888-0x1ed6);sprintf(strValue,"\x25\x64",
+(0xaeb+3090-0x16fb));}sprintf(reportParam.SCA,"\x25\x73",cfg_get(
"\x73\x6d\x73\x5f\x63\x65\x6e\x74\x65\x72\x5f\x6e\x75\x6d"));total_length=
zUfiSms_EncodePdu_DeliverReport(&reportParam,ackPduStr,TP_FCS);memset(&
-g_zUfiSms_ackPdu,(0x7ba+4938-0x1b04),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
+g_zUfiSms_ackPdu,(0x93d+6424-0x2255),sizeof(g_zUfiSms_ackPdu));g_zUfiSms_ackPdu.
length=String2Bytes(ackPduStr,g_zUfiSms_ackPdu.pdu,strlen(ackPduStr));memset(
-g_zUfiSms_ackPdu.pdu,(0x635+137-0x6be),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
+g_zUfiSms_ackPdu.pdu,(0x823+4194-0x1885),sizeof(g_zUfiSms_ackPdu.pdu));memcpy(&
g_zUfiSms_ackPdu.pdu,&ackPduStr,sizeof(ackPduStr));atBase_SendMsgToSelf(
ZAT_CNMA_CMD,strValue,sizeof(strValue));
#endif
-#if (0xa4a+580-0xc8e)
-CHAR strValue[(0x99d+6469-0x22e0)]={(0x2023+1500-0x25ff)};if(needAck){snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0xea1+2395-0x17fb));}else{snprintf(
-strValue,sizeof(strValue),"\x25\x64",(0xc18+6284-0x24a2));}zSvr_InnerSendMsg(
+#if (0x9e6+4431-0x1b35)
+CHAR strValue[(0x2545+340-0x2697)]={(0x94f+4850-0x1c41)};if(needAck){snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0xafd+5649-0x210d));}else{snprintf(
+strValue,sizeof(strValue),"\x25\x64",(0x4fc+3463-0x1281));}zSvr_InnerSendMsg(
ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,MSG_CMD_AT_CNMA,strlen(strValue
),strValue);
#endif
-if(needAck){zSms_SendCnmaReq((0x208+6302-0x1aa5));}else{zSms_SendCnmaReq(
-(0x1f4+441-0x3ab));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
-ptSendMsg){if(NULL==ptSendMsg||(0x1438+2424-0x1db0)==ptSendMsg->receiver_count){
+if(needAck){zSms_SendCnmaReq((0x1372+959-0x1730));}else{zSms_SendCnmaReq(
+(0x2226+157-0x22c1));}}T_zUfiSms_CmdStatus zUfiSms_SendRawSms(T_zUfiSms_SendReq*
+ptSendMsg){if(NULL==ptSendMsg||(0x9ac+4705-0x1c0d)==ptSendMsg->receiver_count){
return WMS_CMD_FAILED;}at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x52\x61\x77\x53\x6d\x73\x20\x72\x65\x63\x65\x69\x76\x65\x72\x5f\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2f\x64\x65\x73\x74\x5f\x6e\x75\x6d\x3a\x25\x73\x2f\x6d\x73\x67\x5f\x6c\x65\x6e\x3a\x25\x64\x2f\x69\x64\x3a\x25\x64\x2e" "\n"
-,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0xdf8+654-0x1086)],ptSendMsg->
+,ptSendMsg->receiver_count,ptSendMsg->dest_num[(0x1f02+1909-0x2677)],ptSendMsg->
msg_len,ptSendMsg->id);
-#if (0xaa8+5963-0x21f2)
+#if (0x1174+2957-0x1d00)
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x52\x61\x77\x53\x6d\x73\x20\x64\x63\x73\x3a\x25\x64" "\n"
,ptSendMsg->dcs);
#endif
-sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0x26c+8466-0x237e);
-if(ptSendMsg->isDelete==TRUE||-(0x9ef+5622-0x1fe4)!=ptSendMsg->id){(void)
+sc_cfg_set(NV_SMS_SEND_RESULT,"");g_zUfiSms_SendFailedCount=(0xdca+1354-0x1314);
+if(ptSendMsg->isDelete==TRUE||-(0x80c+2909-0x1368)!=ptSendMsg->id){(void)
zUfiSms_DeleteDraftSms(ptSendMsg->id);}zUfiSms_SetGlobalDcsLang(ptSendMsg->dcs);
-memset(&g_zUfiSms_GroupSms,(0x469+1095-0x8b0),sizeof(g_zUfiSms_GroupSms));if(
+memset(&g_zUfiSms_GroupSms,(0x18d0+2657-0x2331),sizeof(g_zUfiSms_GroupSms));if(
ZUFI_FAIL==zUfiSms_FillGroupSms(ptSendMsg,&g_zUfiSms_GroupSms)){return
-WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x2b0+8477-0x23cd),sizeof(
+WMS_CMD_FAILED;}memset(&g_zUfiSms_ConcatSms,(0x4dd+2729-0xf86),sizeof(
g_zUfiSms_ConcatSms));g_zUfiSms_UnitLen=zUfiSms_FillConcatSms(ptSendMsg,&
g_zUfiSms_ConcatSms);g_zUfiSms_IsConcatSendSuc=TRUE;g_zUfiSms_CurConcatSegNo=
-(0x193c+1088-0x1d7c);memset(g_zUfiSms_DbStoreData,(0x76+4115-0x1089),sizeof(
-g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x165+8300-0x21c7)){
-g_displaymode=(0x32+9066-0x239b);at_print(LOG_DEBUG,
+(0x1143+4351-0x2242);memset(g_zUfiSms_DbStoreData,(0x1e9a+1245-0x2377),sizeof(
+g_zUfiSms_DbStoreData));if(ptSendMsg->mem_store==(0x10ac+4551-0x2269)){
+g_displaymode=(0xed2+6020-0x2655);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x53\x6d\x73\x3a\x20\x6d\x73\x67\x5f\x64\x69\x73\x70\x6c\x61\x79\x6d\x6f\x64\x65\x20\x3d\x20\x31" "\n"
-);}else{g_displaymode=(0x140+6453-0x1a75);at_print(LOG_DEBUG,
+);}else{g_displaymode=(0x1fc2+1428-0x2556);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x6e\x64\x53\x6d\x73\x3a\x20\x6d\x73\x67\x5f\x64\x69\x73\x70\x6c\x61\x79\x6d\x6f\x64\x65\x20\x3d\x20\x30" "\n"
);}return zUfiSms_SendSms();}T_zUfiSms_CmdStatus zUfiSms_WriteRawSms(
T_zUfiSms_SaveReq*pSaveBuff){T_zUfiSms_ConcatInfo tConcatSms;T_zUfiSms_GroupInfo
- tGroupSms;int iSmsLen=(0xb0+3747-0xf53);T_zUfiSms_CmdStatus result=
+ tGroupSms;int iSmsLen=(0x3bc+3868-0x12d8);T_zUfiSms_CmdStatus result=
WMS_CMD_SUCCESS;if(NULL==pSaveBuff){return WMS_CMD_FAILED;}if(
g_zUfiSms_MemFullFlag[ZTE_WMS_MEMORY_NV]){at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x52\x61\x77\x53\x6d\x73\x20\x6e\x76\x20\x6d\x65\x6d\x6f\x72\x79\x20\x69\x73\x20\x66\x75\x6c\x6c\x2c\x72\x65\x74\x75\x72\x6e" "\n"
);return WMS_CMD_FAILED;}if(pSaveBuff->isDelete==TRUE){(void)
zUfiSms_DeleteDraftSms(pSaveBuff->id);}zUfiSms_SetGlobalDcsLang(pSaveBuff->dcs);
-memset(&tConcatSms,(0x1a33+3109-0x2658),sizeof(T_zUfiSms_ConcatInfo));memset(&
-tGroupSms,(0x2ec+8153-0x22c5),sizeof(T_zUfiSms_GroupInfo));(void)
+memset(&tConcatSms,(0x4c6+8489-0x25ef),sizeof(T_zUfiSms_ConcatInfo));memset(&
+tGroupSms,(0xec3+720-0x1193),sizeof(T_zUfiSms_GroupInfo));(void)
zUfiSms_FillGroupSms(pSaveBuff,&tGroupSms);iSmsLen=zUfiSms_FillConcatSms(
pSaveBuff,&tConcatSms);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x52\x61\x77\x53\x6d\x73\x20\x74\x6f\x74\x61\x6c\x5f\x72\x65\x63\x65\x69\x76\x65\x72\x3d\x25\x64\x2c\x69\x53\x6d\x73\x4c\x65\x6e\x3d\x25\x64" "\n"
,tGroupSms.total_receiver,iSmsLen);for(tGroupSms.current_receiver=
-(0x2dc+4486-0x1462);tGroupSms.current_receiver<tGroupSms.total_receiver;
-tGroupSms.current_receiver++){tConcatSms.current_sending=(0xe1f+4944-0x216f);
+(0x94b+7451-0x2666);tGroupSms.current_receiver<tGroupSms.total_receiver;
+tGroupSms.current_receiver++){tConcatSms.current_sending=(0x13f0+3519-0x21af);
result=zUfiSms_SaveSmsToDb(pSaveBuff,&tConcatSms,&tGroupSms,iSmsLen);at_print(
LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x57\x72\x69\x74\x65\x52\x61\x77\x53\x6d\x73\x20\x63\x75\x72\x72\x65\x6e\x74\x5f\x72\x65\x63\x65\x69\x76\x65\x72\x3d\x25\x64\x2c\x72\x65\x73\x75\x6c\x74\x3d\x25\x64" "\n"
@@ -127,16 +127,16 @@
memoryFullbeforeDelete=FALSE;BOOL unreadBeforeDelete=FALSE;if(NULL==ptDelBuff){
return WMS_CMD_FAILED;}at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x21\x21\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2f\x69\x64\x5b\x25\x64\x5d\x2e" "\n"
-,ptDelBuff->all_or_count,ptDelBuff->id[(0xb8d+6963-0x26c0)]);(void)
+,ptDelBuff->all_or_count,ptDelBuff->id[(0xa1b+72-0xa63)]);(void)
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
-SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x2b9+7620-0x207d),sizeof(
+SMS_STATE_DELING);memset(&g_zUfiSms_DelMsg,(0x9d2+7371-0x269d),sizeof(
T_zUfiSms_DelSms));if(ZUFI_FAIL==zUfiSms_SetDeleteInfo(ptDelBuff)){at_print(
LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x74\x44\x65\x6c\x65\x74\x65\x49\x6e\x66\x6f\x20\x66\x61\x69\x6c\x2e" "\n"
);zUfiSms_ChangeMainState(SMS_STATE_DELED);return WMS_CMD_FAILED;}at_print(
LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x21\x21\x21\x7a\x55\x66\x69\x53\x6d\x73\x5f\x53\x65\x74\x44\x65\x6c\x65\x74\x65\x49\x6e\x66\x6f\x20\x52\x65\x61\x64\x20\x74\x6f\x20\x44\x65\x6c\x65\x74\x65\x3a\x6e\x76\x5f\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2f\x73\x69\x6d\x5f\x63\x6f\x75\x6e\x74\x3a\x25\x64\x2e" "\n"
-,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0x23c3+212-0x2497)<
+,g_zUfiSms_DelMsg.nv_count,g_zUfiSms_DelMsg.sim_count);if((0x668+2609-0x1099)<
g_zUfiSms_DelMsg.nv_count){if(g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
memoryFullbeforeDelete=TRUE;}unreadBeforeDelete=zUfiSms_IsUnreadSms(
ZTE_WMS_MEMORY_NV);result=(T_zUfiSms_CmdStatus)zUfiSms_DeleteNvSms();(void)
@@ -147,115 +147,115 @@
memoryFullbeforeDelete&&!g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]){
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x4e\x76\x53\x6d\x73\x3a\x20\x73\x65\x6e\x64\x20\x41\x54\x2b\x5a\x4d\x45\x4e\x41\x3d\x30" "\n"
-);zSms_SendZmenaReq((0x1b2f+1517-0x211c));}if(memoryFullbeforeDelete&&!
+);zSms_SendZmenaReq((0x56+9094-0x23dc));}if(memoryFullbeforeDelete&&!
g_zUfiSms_MemFullFlag[WMS_STORAGE_TYPE_NV_V01]||unreadBeforeDelete&&!
zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_DEFAULT);}}if((0x1163+5246-0x25e1)<g_zUfiSms_DelMsg.sim_count){result=
+MSG_SMS_DEFAULT);}}if((0x3fb+1922-0xb7d)<g_zUfiSms_DelMsg.sim_count){result=
zUfiSms_DeleteSimSms();(void)zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_SIM);}
at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x6d\x73\x20\x72\x65\x73\x75\x6c\x74\x3d\x25\x64" "\n"
,result);return result;}T_zUfiSms_CmdStatus zUfiSms_ModifySmsTag(
-T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0x259+8029-0x21b6);
-T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x1e2+7406-0x1e9e)]=
-{(0x9cb+3910-0x1911)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
+T_zUfiSms_ModifyFlag*ptModifyBuff){unsigned long i=(0x18f0+1448-0x1e98);
+T_zUfiSms_CmdStatus result=WMS_CMD_SUCCESS;char acStorePos[(0x595+7223-0x219a)]=
+{(0xdf2+6406-0x26f8)};if(NULL==ptModifyBuff){at_print(LOG_ERR,
"\x69\x6e\x70\x75\x74\x73\x20\x69\x73\x20\x6e\x75\x6c\x6c\x2e");return
-WMS_CMD_FAILED;}for(i=(0x531+4566-0x1707);i<ptModifyBuff->total_id;i++){if(
-ptModifyBuff->id[i]<(0x178c+3396-0x24cf)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
+WMS_CMD_FAILED;}for(i=(0x9a8+5914-0x20c2);i<ptModifyBuff->total_id;i++){if(
+ptModifyBuff->id[i]<(0x994+59-0x9ce)||ZUFI_FAIL==zUfiSms_UpdateSmsTagInDb(
ptModifyBuff->id[i],ptModifyBuff->tags)){result=WMS_CMD_FAILED;}else{result=
WMS_CMD_SUCCESS;}}if(ZUFI_FAIL==zUfiSms_GetStorePosById(
"\x4d\x65\x6d\x5f\x53\x74\x6f\x72\x65",acStorePos,sizeof(acStorePos),
-ptModifyBuff->id[(0x409+1558-0xa1f)])){return ZUFI_FAIL;}if((0x92f+3914-0x1879)
+ptModifyBuff->id[(0xed4+3508-0x1c88)])){return ZUFI_FAIL;}if((0x1f8+4445-0x1355)
==strcmp(acStorePos,ZTE_WMS_DB_NV_TABLE)){zUfiSms_SendSmsStatusInfo(
-MSG_SMS_READING);}if((0x8bb+7660-0x26a7)==strcmp(acStorePos,ZTE_WMS_DB_SIM_TABLE
-)&&ptModifyBuff->total_id>(0x46a+4306-0x153c)){zUfiSms_ModifyModemSms(
+MSG_SMS_READING);}if((0xc2f+5732-0x2293)==strcmp(acStorePos,ZTE_WMS_DB_SIM_TABLE
+)&&ptModifyBuff->total_id>(0x1937+585-0x1b80)){zUfiSms_ModifyModemSms(
ptModifyBuff);}return result;}T_zUfiSms_CmdStatus zUfiSms_SetSmsPara(
-T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0x567+8177-0x2558);CHAR sca[
-ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x910+1462-0xec5)]={(0x154a+4169-0x2593)};CHAR
-store[(0x4ff+7441-0x21fc)]={(0x1a27+2194-0x22b9)};CHAR defaultStore[
-(0x54f+7783-0x2384)]={(0x367+155-0x402)};if(ptParaBuff==ZUFI_NULL){return
-WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0xc7a+4096-0x1c7a)){strncpy(sca,
-ptParaBuff->sca,sizeof(sca)-(0x3b7+5751-0x1a2d));at_print(LOG_DEBUG,
+T_zUfiSms_ParaInfo*ptParaBuff){int atRes=(0xf52+5583-0x2521);CHAR sca[
+ZTE_WMS_ADDRESS_DIGIT_MAX_V01+(0x301+276-0x414)]={(0xe81+1786-0x157b)};CHAR
+store[(0x1008+5286-0x249a)]={(0x1102+78-0x1150)};CHAR defaultStore[
+(0x1e1c+1418-0x2374)]={(0x77+9292-0x24c3)};if(ptParaBuff==ZUFI_NULL){return
+WMS_CMD_FAILED;}if(strlen(ptParaBuff->sca)!=(0x6a+9157-0x242f)){strncpy(sca,
+ptParaBuff->sca,sizeof(sca)-(0x18b+4469-0x12ff));at_print(LOG_DEBUG,
"\x73\x65\x6e\x64\x20\x5a\x41\x54\x5f\x43\x53\x43\x41\x5f\x53\x45\x54\x5f\x43\x4d\x44\x20\x6d\x65\x73\x73\x61\x67\x65\x20\x63\x73\x63\x61\x20\x69\x73\x20\x25\x73\x2e" "\n"
,sca);atRes=zSms_SetCscaReq(ptParaBuff->sca);if(atRes!=ZSMS_RESULT_OK){return
WMS_CMD_FAILED;}}sc_cfg_get(NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));
-if((*(ptParaBuff->default_store)!='\0')&&((0x1884+2089-0x20ad)!=strcmp(
+if((*(ptParaBuff->default_store)!='\0')&&((0x9fd+5614-0x1feb)!=strcmp(
defaultStore,ptParaBuff->default_store))){{strncpy(store,ptParaBuff->
-default_store,sizeof(store)-(0x7f9+1469-0xdb5));}atRes=zSms_SendCnmiReq(store);
-if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x79f+6972-0x22da)==
+default_store,sizeof(store)-(0x1cc+2183-0xa52));}atRes=zSms_SendCnmiReq(store);
+if(atRes!=ZSMS_RESULT_OK){return WMS_CMD_FAILED;}}if(-(0x3c1+3853-0x12cd)==
zUfiSms_SetDbParameters(ptParaBuff)){at_print(LOG_ERR,
"\x73\x65\x74\x20\x70\x61\x72\x61\x6d\x65\x74\x65\x72\x73\x20\x74\x6f\x20\x74\x61\x62\x6c\x65\x20\x66\x61\x69\x6c\x65\x64\x2e"
);return WMS_CMD_FAILED;}return WMS_CMD_SUCCESS;}void zUfiSms_CmgrNvSet(void){
-char sms_rec_flag[(0x1f2+2586-0xc07)]={(0x16b8+2189-0x1f45)};char remind_flag[
-(0x6ef+4144-0x171a)];int sms_count=(0x11b+5730-0x177d);int remind_count=
-(0x1176+578-0x13b8);memset(sms_rec_flag,(0x170d+3514-0x24c7),sizeof(sms_rec_flag
-));sc_cfg_get(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag,sizeof(sms_rec_flag));
-sms_count=atoi(sms_rec_flag);if(sms_count<(0x8d6+5294-0x1d84)||sms_count>INT_MAX
--(0x20f8+1030-0x24fd)){at_print(LOG_ERR,
+char sms_rec_flag[(0x107a+234-0x115f)]={(0xd2+3263-0xd91)};char remind_flag[
+(0xe45+3865-0x1d59)];int sms_count=(0xf0b+59-0xf46);int remind_count=
+(0xd11+76-0xd5d);memset(sms_rec_flag,(0xb65+433-0xd16),sizeof(sms_rec_flag));
+sc_cfg_get(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag,sizeof(sms_rec_flag));
+sms_count=atoi(sms_rec_flag);if(sms_count<(0x1628+1716-0x1cdc)||sms_count>
+INT_MAX-(0x1350+2868-0x1e83)){at_print(LOG_ERR,
"\x5b\x53\x4d\x53\x5d\x73\x6d\x73\x5f\x63\x6f\x75\x6e\x74\x20\x65\x72\x72\x3a\x25\x64" "\n"
-,sms_count);return;}memset(sms_rec_flag,(0x4bb+3110-0x10e1),sizeof(sms_rec_flag)
-);snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
-(0x63b+4040-0x1602));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
+,sms_count);return;}memset(sms_rec_flag,(0x1734+1594-0x1d6e),sizeof(sms_rec_flag
+));snprintf(sms_rec_flag,sizeof(sms_rec_flag),"\x25\x64",sms_count+
+(0xf57+3593-0x1d5f));sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED,sms_rec_flag);
sc_cfg_set(ZTE_WMS_NVCONFIG_RECEVIED_LED,sms_rec_flag);memset(remind_flag,
-(0xba5+4001-0x1b46),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag
-),"\x25\x64",remind_count+(0xcec+1889-0x144c));sc_cfg_set(
+(0x7+2924-0xb73),sizeof(remind_flag));snprintf(remind_flag,sizeof(remind_flag),
+"\x25\x64",remind_count+(0x9c6+6417-0x22d6));sc_cfg_set(
ZTE_WMS_NVCONFIG_RECEVIED_REMIND,remind_flag);sc_cfg_set(NV_SMS_RECV_RESULT,
"\x6f\x6b");sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");}void zUfiSms_CdsRespProc(
T_zSms_SmsInd*ptRespData){unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
-(0x417+7475-0x214a)};T_zUfiSms_DbStoreData tDbStoreData={(0x24d3+483-0x26b6)};
-int isPushSms=(0x15d+8192-0x215d);if(strcmp(ptRespData->pdu,"")==
-(0x455+1767-0xb3c)){CHAR srState[(0x6c2+3725-0x151d)]={(0x1a82+2564-0x2486)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0xd79+1696-0x1419)!=strcmp(
+(0x1166+620-0x13d2)};T_zUfiSms_DbStoreData tDbStoreData={(0xe34+4729-0x20ad)};
+int isPushSms=(0x23db+799-0x26fa);if(strcmp(ptRespData->pdu,"")==
+(0x91f+6077-0x20dc)){CHAR srState[(0x27b+6241-0x1aaa)]={(0x3ac+9048-0x2704)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x34a+2535-0xd31)!=strcmp(
srState,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
return;}zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)
String2Bytes(ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if(
-(0x101+9642-0x26a6)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
+(0xa6d+5855-0x2147)==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);
sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");
zUfiSms_Ack_new_msg(TRUE);return;}return;}int zUfiSms_CheckIfWholeSms(
T_zUfiSms_DbStoreData*data,SMS_MSG_INFO*pmsg){if(data->concat_sms!=
-(0xac0+3032-0x1697)){return(0x5a0+144-0x630);}zUfiSms_GetCurrentRecvTotalSeq(
+(0xd3c+2626-0x177d)){return(0x55c+6561-0x1efd);}zUfiSms_GetCurrentRecvTotalSeq(
data,pmsg);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x68\x65\x63\x6b\x49\x66\x57\x68\x6f\x6c\x65\x53\x6d\x73\x20\x69\x64\x20\x3d\x20\x25\x73\x2c\x20\x74\x6f\x74\x61\x6c\x53\x65\x71\x20\x3d\x20\x25\x64\x2c\x72\x65\x66\x20\x3d\x25\x64\x2c\x74\x6f\x74\x61\x6c\x20\x3d\x25\x64\x2c\x20\x73\x65\x71\x3d\x25\x64" "\n"
-,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0x281+4373-0x1396)],data->
-concat_info[(0x1d92+1555-0x23a4)],data->concat_info[(0xae0+306-0xc10)]);if(data
-->concat_info[(0x1c70+721-0x1f40)]==atoi(pmsg->total_seq)){return
-(0x3e2+2342-0xd08);}return-(0xc63+3616-0x1a82);}void zUfiSms_TrafficChangeSmsTag
-(T_zUfiSms_DbStoreData*data){CHAR smsNumber[(0x103+9154-0x2493)]={
-(0x134a+4918-0x2680)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(
-smsNumber));if((0x2ac+6820-0x1d50)==strcmp(smsNumber,data->number)){data->tag=
-WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=(0x73+1800-0x77a);}}void
-zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){int iSmsId=
-(0x135c+305-0x148d);SMS_MSG_INFO msg={(0x7ed+7674-0x25e7)};CHAR smsNumber[
-(0x296+3675-0x10bf)]={(0x2031+743-0x2318)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
-smsNumber,sizeof(smsNumber));at_print(LOG_DEBUG,
+,pmsg->id,atoi(pmsg->total_seq),data->concat_info[(0xe5c+5506-0x23de)],data->
+concat_info[(0x109f+3335-0x1da5)],data->concat_info[(0xaf5+420-0xc97)]);if(data
+->concat_info[(0xab1+1000-0xe98)]==atoi(pmsg->total_seq)){return
+(0x343+3922-0x1295);}return-(0xf93+1194-0x143c);}void
+zUfiSms_TrafficChangeSmsTag(T_zUfiSms_DbStoreData*data){CHAR smsNumber[
+(0xa61+2845-0x154c)]={(0x3ab+5384-0x18b3)};sc_cfg_get(NV_TRAFFIC_SMS_NUMBER,
+smsNumber,sizeof(smsNumber));if((0x74a+7425-0x244b)==strcmp(smsNumber,data->
+number)){data->tag=WMS_TAG_TYPE_MT_READ_V01;data->msg_displaymode=
+(0x2698+1-0x2698);}}void zUfiSms_HandleTrafficSms(T_zUfiSms_DbStoreData*data){
+int iSmsId=(0xc40+1260-0x112c);SMS_MSG_INFO msg={(0x1d80+1942-0x2516)};CHAR
+smsNumber[(0x1068+4956-0x2392)]={(0x354+3225-0xfed)};sc_cfg_get(
+NV_TRAFFIC_SMS_NUMBER,smsNumber,sizeof(smsNumber));at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x74\x44\x62\x53\x74\x6f\x72\x65\x44\x61\x74\x61\x2e\x6e\x75\x6d\x62\x65\x72\x20\x3d\x20\x25\x73\x2c\x20\x74\x72\x61\x66\x66\x69\x63\x5f\x73\x6d\x73\x5f\x6e\x75\x6d\x62\x65\x72\x20\x3d\x20\x25\x73" "\n"
-,data->number,smsNumber);if((0x1390+2806-0x1e86)==strcmp(smsNumber,data->number)
-){if((0x388+5678-0x19b6)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(LOG_DEBUG
-,
+,data->number,smsNumber);if((0x1bfc+1598-0x223a)==strcmp(smsNumber,data->number)
+){if((0x1c93+1849-0x23cc)!=zUfiSms_CheckIfWholeSms(data,&msg)){at_print(
+LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x63\x6d\x74\x20\x69\x6e\x64\x2c\x20\x72\x65\x63\x76\x20\x73\x6d\x73\x2c\x20\x62\x75\x74\x20\x6e\x6f\x74\x20\x77\x68\x6f\x6c\x65\x20\x73\x6d\x73\x2c\x20\x77\x61\x69\x74\x20\x74\x6f\x20\x72\x65\x63\x76\x20\x6e\x65\x78\x74\x20\x73\x65\x67" "\n"
);return;}sc_cfg_set(NV_TRAFFIC_RECV_SMS_ID,msg.id);sc_cfg_set(
NV_TRAFFIC_SMS_NUMBER,"\x30");at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x5b\x74\x72\x61\x66\x66\x69\x63\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x48\x61\x6e\x64\x6c\x65\x54\x72\x61\x66\x66\x69\x63\x53\x6d\x73\x20\x20\x20\x74\x72\x61\x66\x66\x69\x63\x5f\x72\x65\x63\x76\x5f\x73\x6d\x73\x5f\x69\x64\x20\x3d\x20\x25\x73" "\n"
,msg.id);}}void zUfiSms_CmtRespProc(T_zSms_SmsInd*ptRespData){zUfiSms_StoreType
iStorePos=WMS_STORAGE_TYPE_NV_V01;unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
-(0x1fe3+187-0x209e)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x380+5082-0x175a);SMS_PARAM one_sms={(0x2245+834-0x2587)};int
-unread_sms_before_recv_new_sms=(0x551+8546-0x26b3);memset(&tDbStoreData,
-(0x56c+4426-0x16b6),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x5c9+1267-0xabc)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0xa4f+1882-0x11a9);SMS_PARAM one_sms={(0x1674+1791-0x1d73)};int
+unread_sms_before_recv_new_sms=(0x484+5077-0x1859);memset(&tDbStoreData,
+(0x168a+636-0x1906),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2f\x70\x64\x75\x3a\x25\x73\x21" "\n"
,ptRespData->index,ptRespData->stat,ptRespData->length,ptRespData->pdu);if(
-strcmp(ptRespData->pdu,"")==(0x1074+1852-0x17b0)){CHAR srState[
-(0x1d51+99-0x1d82)]={(0x1930+2610-0x2362)};sc_cfg_get(NV_SR_STATE,srState,sizeof
-(srState));if((0x1b9+940-0x565)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0xa24+940-0xdd0)){CHAR srState[(0xcfc+5553-0x227b)]
+={(0x49a+7498-0x21e4)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
+(0x1336+307-0x1469)!=strcmp(srState,
"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
return;}isPushSms=DecodePushPdu(ptRespData->pdu,&one_sms);at_print(LOG_DEBUG,
"\x5b\x73\x6d\x73\x5d\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x20\x25\x64" "\n"
,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x5e4+628-0x858));}if(SMS_NO_PUSH
-!=isPushSms){at_print(LOG_DEBUG,
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x98b+4876-0x1c97));}if(
+SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x52\x65\x66\x65\x72\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
@@ -266,32 +266,32 @@
,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);
zUfiSms_Ack_new_msg(TRUE);return;}zUfiSms_GetReportStatus(ptRespData->pdu,&
ptRespData->stat);(void)String2Bytes(ptRespData->pdu,acFormatPdu,(int)strlen(
-ptRespData->pdu));if((0x9d4+6045-0x216c)==ptRespData->stat){(void)
+ptRespData->pdu));if((0x56a+1686-0xbfb)==ptRespData->stat){(void)
zUfiSms_HandleReport(acFormatPdu);sc_cfg_set(NV_SR_STATE,
"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");zUfiSms_Ack_new_msg(TRUE);return
;}(void)zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->index,iStorePos,(
T_SmsStatus)ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,ptRespData->length,
acFormatPdu);if(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){iStorePos=
WMS_STORAGE_TYPE_UIM_V01;}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){
-unread_sms_before_recv_new_sms=(0x239+3884-0x1164);}else{
-unread_sms_before_recv_new_sms=(0xd43+5270-0x21d9);}zUfiSms_TrafficChangeSmsTag(
+unread_sms_before_recv_new_sms=(0x291+4168-0x12d8);}else{
+unread_sms_before_recv_new_sms=(0x4c4+4708-0x1728);}zUfiSms_TrafficChangeSmsTag(
&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,
-iStorePos,-(0x1042+1012-0x1435))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
-(0x1be5+45-0x1c11));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
+iStorePos,-(0x108d+353-0x11ed))){zUfiSms_Ack_new_msg(FALSE);zSms_SendZmenaReq(
+(0x3c7+8021-0x231b));return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){
zUfiSms_Ack_new_msg(TRUE);}zUfiSms_CmgrNvSet();zUfiSms_CheckMemoryFull(
ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(SMS_STATE_RECVED);
zUfiSms_SendSmsStatusInfo(MSG_SMS_NEW);zUfiSms_HandleTrafficSms(&tDbStoreData);
return;}void zUfiSms_ZmgrRespProc(T_zSms_SmsInd*ptRespData){zUfiSms_StoreType
iStorePos=WMS_STORAGE_TYPE_NV_V01;unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
-(0xb3f+5768-0x21c7)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x9c1+7137-0x25a2);SMS_PARAM one_sms={(0x1aa3+1749-0x2178)};CHAR defaultStore[
-(0x21d+4009-0x1194)]={(0x156+2345-0xa7f)};memset(&tDbStoreData,
-(0x6f2+6175-0x1f11),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x1bd+5908-0x18d1)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x33f+4721-0x15b0);SMS_PARAM one_sms={(0xeb6+2046-0x16b4)};CHAR defaultStore[
+(0xd51+5503-0x229e)]={(0x7b5+7847-0x265c)};memset(&tDbStoreData,
+(0x14d3+1094-0x1919),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2f\x70\x64\x75\x3a\x25\x73\x21" "\n"
,ptRespData->index,ptRespData->stat,ptRespData->length,ptRespData->pdu);if(
-strcmp(ptRespData->pdu,"")==(0x1e0d+454-0x1fd3)){CHAR srState[
-(0xd7d+5441-0x228c)]={(0x456+1161-0x8df)};sc_cfg_get(NV_SR_STATE,srState,sizeof(
-srState));if((0x1c06+423-0x1dad)!=strcmp(srState,
+strcmp(ptRespData->pdu,"")==(0x4d3+2205-0xd70)){CHAR srState[(0xd12+3260-0x199c)
+]={(0x13f8+4724-0x266c)};sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if(
+(0x9a4+3127-0x15db)!=strcmp(srState,
"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
@@ -300,7 +300,7 @@
,isPushSms);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x84f+5942-0x1f85));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x1c1d+1331-0x2150));}if(
SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
@@ -311,30 +311,30 @@
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x43\x75\x72\x72\x65\x6e\x74\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
-ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0xbe9+153-0xc7d)==
-ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);sc_cfg_set(NV_SR_STATE
-,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}sc_cfg_get(
-NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0x1ff6+1309-0x2513)==
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0x24a+2231-0xafc)
+==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);sc_cfg_set(
+NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}sc_cfg_get(
+NV_DEFAULT_STORE,defaultStore,sizeof(defaultStore));if((0xd34+6149-0x2539)==
strcmp(defaultStore,"\x73\x69\x6d")){iStorePos=WMS_STORAGE_TYPE_UIM_V01;}(void)
zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->index,iStorePos,(T_SmsStatus)
ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,ptRespData->length,acFormatPdu);if
(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){iStorePos=WMS_STORAGE_TYPE_UIM_V01
;}zUfiSms_TrafficChangeSmsTag(&tDbStoreData);if(ZTE_WMS_NV_MEMORY_FULL==
-zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-(0xa9a+2472-0x1441))){return;}if(
+zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-(0x12da+1704-0x1981))){return;}if(
tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}zUfiSms_CmgrNvSet();
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);zUfiSms_ChangeMainState(
SMS_STATE_RECVED);zUfiSms_HandleTrafficSms(&tDbStoreData);return;}void
zUfiSms_CmgrRespProc(T_zSms_SmsInd*ptRespData){zUfiSms_StoreType iStorePos=
WMS_STORAGE_TYPE_NV_V01;unsigned char acFormatPdu[ZSMS_PDU_SIZE]={
-(0x183+9130-0x252d)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
-(0x1b26+1353-0x206f);SMS_PARAM one_sms={(0x168+8155-0x2143)};int
-unread_sms_before_recv_new_sms=(0xb0+2592-0xad0);memset(&tDbStoreData,
-(0x119f+291-0x12c2),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
+(0x537+3798-0x140d)};T_zUfiSms_DbStoreData tDbStoreData;int isPushSms=
+(0x124b+1537-0x184c);SMS_PARAM one_sms={(0x16f4+2747-0x21af)};int
+unread_sms_before_recv_new_sms=(0x887+5826-0x1f49);memset(&tDbStoreData,
+(0x160+6566-0x1b06),sizeof(T_zUfiSms_DbStoreData));at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x45\x6e\x74\x65\x72\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2f\x70\x64\x75\x3a\x25\x73\x21" "\n"
,ptRespData->index,ptRespData->stat,ptRespData->length,ptRespData->pdu);
zUfiSms_SendSmsStatusInfo(MSG_SMS_READING);if(strcmp(ptRespData->pdu,"")==
-(0x1515+3644-0x2351)){CHAR srState[(0x1980+181-0x1a03)]={(0x3ef+3044-0xfd3)};
-sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x1792+1264-0x1c82)!=strcmp(
+(0x684+2999-0x123b)){CHAR srState[(0x15c0+3924-0x24e2)]={(0x289+5920-0x19a9)};
+sc_cfg_get(NV_SR_STATE,srState,sizeof(srState));if((0x3a2+4858-0x169c)!=strcmp(
srState,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x69\x6e\x67")){sc_cfg_set(
NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(SMS_STATE_RECVED)
;}else{sc_cfg_set(NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");}
@@ -343,7 +343,7 @@
,isPushSms);at_print(LOG_DEBUG,
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x43\x6d\x67\x72\x52\x65\x73\x70\x50\x72\x6f\x63\x20\x69\x73\x50\x75\x73\x68\x53\x6d\x73\x20\x3d\x25\x64\x20" "\n"
,isPushSms);if(SMS_NOTIFICATION==isPushSms){BakNotificationSms(one_sms.TP_UD,
-strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x1f67+1758-0x2645));}if(
+strlen(one_sms.TP_UD));zte_fota_notifyPushMsg((0x1981+1942-0x2117));}if(
SMS_NO_PUSH!=isPushSms){at_print(LOG_DEBUG,
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x69\x6e\x64\x65\x78\x20\x3d\x20\x25\x64" "\n"
,one_sms.index);at_print(LOG_DEBUG,
@@ -354,81 +354,81 @@
"\x20\x6f\x6e\x65\x5f\x73\x6d\x73\x2e\x54\x50\x5f\x43\x75\x72\x72\x65\x6e\x74\x50\x69\x65\x63\x65\x4e\x75\x6d\x20\x3d\x20\x25\x64" "\n"
,one_sms.TP_CurrentPieceNum);zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}
zUfiSms_GetReportStatus(ptRespData->pdu,&ptRespData->stat);(void)String2Bytes(
-ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0x767+4638-0x1980)
+ptRespData->pdu,acFormatPdu,(int)strlen(ptRespData->pdu));if((0x173+4974-0x14dc)
==ptRespData->stat){(void)zUfiSms_HandleReport(acFormatPdu);sc_cfg_set(
NV_SR_STATE,"\x73\x72\x5f\x72\x65\x63\x65\x69\x76\x65\x64");return;}(void)
zUfiSms_DecodeSmsData(&tDbStoreData,ptRespData->index,iStorePos,(T_SmsStatus)
ptRespData->stat,WMS_MESSAGE_FORMAT_GW_PP_V01,ptRespData->length,acFormatPdu);if
(tDbStoreData.sms_class==WMS_MESSAGE_CLASS_2){iStorePos=WMS_STORAGE_TYPE_UIM_V01
;}if(zUfiSms_IsUnreadSms(ZTE_WMS_MEMORY_NV)){unread_sms_before_recv_new_sms=
-(0xc5b+3770-0x1b14);}else{unread_sms_before_recv_new_sms=(0x2ba+4792-0x1572);}if
-(ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
-(0xd32+2374-0x1677))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
+(0x14+8854-0x22a9);}else{unread_sms_before_recv_new_sms=(0x1660+825-0x1999);}if(
+ZTE_WMS_NV_MEMORY_FULL==zUfiSms_WriteSmsToDb(&tDbStoreData,iStorePos,-
+(0x1c26+2693-0x26aa))){return;}if(tDbStoreData.sms_class!=WMS_MESSAGE_CLASS_2){}
zUfiSms_CmgrNvSet();zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);
zUfiSms_ChangeMainState(SMS_STATE_RECVED);return;}void zUfiSms_CmgsRespProc(VOID
-){T_zUfiSms_StatusInfo tStatusInfo={(0x1fe5+1066-0x240f)};g_zUfiSms_DbStoreData
-->msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
-(0x1124+2981-0x1cc8)){if((0x79+6185-0x18a2)==zUfiSms_WriteSmsToDb(&
-g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1508+1289-0x1a10)],
-WMS_STORAGE_TYPE_NV_V01,-(0xced+4737-0x1f6d))){g_zUfiSms_MsgRefer++;(void)
+){T_zUfiSms_StatusInfo tStatusInfo={(0x738+2306-0x103a)};g_zUfiSms_DbStoreData->
+msg_displaymode=g_displaymode;if(g_zUfiSms_DbStoreData->msg_displaymode!=
+(0x6ec+6201-0x1f24)){if((0xf1f+665-0x11b8)==zUfiSms_WriteSmsToDb(&
+g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xc46+3939-0x1ba8)],
+WMS_STORAGE_TYPE_NV_V01,-(0x1abf+2209-0x235f))){g_zUfiSms_MsgRefer++;(void)
zUfiSms_SetMaxReference(g_zUfiSms_MsgRefer);}}printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x67\x73\x52\x73\x70\x20\x73\x65\x67\x4e\x6f\x3a\x25\x64\x2f\x54\x6f\x74\x61\x6c\x4e\x75\x6d\x3a\x25\x64\x2f\x46\x61\x69\x6c\x4e\x75\x6d\x3a\x25\x64\x2e" "\n"
,g_zUfiSms_CurConcatSegNo,g_zUfiSms_ConcatTotalNum,g_zUfiSms_SendFailedCount);if
(g_zUfiSms_CurConcatSegNo==g_zUfiSms_ConcatTotalNum){g_zUfiSms_CurConcatSegNo=
-(0x6cd+2472-0x1075);memset((void*)&tStatusInfo,(0x146f+3518-0x222d),sizeof(
+(0x7cb+2772-0x129f);memset((void*)&tStatusInfo,(0x1121+5079-0x24f8),sizeof(
T_zUfiSms_StatusInfo));tStatusInfo.err_code=ZTE_SMS_CMS_NONE;tStatusInfo.
send_failed_count=g_zUfiSms_SendFailedCount;tStatusInfo.delete_failed_count=
-(0x1320+3003-0x1edb);if(g_zUfiSms_SendFailedCount==(0x274+1178-0x70e)){
+(0x59+2734-0xb07);if(g_zUfiSms_SendFailedCount==(0x1e11+2282-0x26fb)){
tStatusInfo.cmd_status=WMS_CMD_SUCCESS;sc_cfg_set(NV_SMS_SEND_RESULT,"\x6f\x6b")
;}else{tStatusInfo.cmd_status=WMS_CMD_FAILED;sc_cfg_set(NV_SMS_SEND_RESULT,
"\x66\x61\x69\x6c");}tStatusInfo.cmd=WMS_SMS_CMD_MSG_SEND;(void)
zUfiSms_SetCmdStatus(&tStatusInfo);sc_cfg_set(NV_SMS_DB_CHANGE,"\x31");
zUfiSms_CheckMemoryFull(ZTE_WMS_MEMORY_NV);if(g_zUfiSms_MemFullFlag[
WMS_STORAGE_TYPE_NV_V01]){zUfiSms_SendSmsStatusInfo(MSG_SMS_DEFAULT);}}else{}}
-int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x13ac+367-0x151b)};int
-errs=(0x7e8+1001-0xbd1);key_t req_id=ftok(
+int zte_fota_notifyPushMsg(int cmd){FOTA_MSG_BUF msg={(0x204+7454-0x1f22)};int
+errs=(0x21dd+1276-0x26d9);key_t req_id=ftok(
"\x2f\x6d\x65\x64\x69\x61\x2f\x7a\x74\x65\x2f\x7a\x74\x65\x5f\x73\x6f\x63\x6b\x65\x74\x2f\x66\x6f\x74\x61\x5f\x64\x6d\x61\x70\x70\x5f\x6d\x73\x67"
-,(0x2274+235-0x235e));int msgid=msgget(req_id,(0xd60+2025-0x1549));if(msgid!=-
-(0x93d+4981-0x1cb1)){msg.mtype=(0x1116+1929-0x189e);msg.mtext[(0x7b7+1167-0xc46)
-]=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-sizeof(long),
-(0xd98+3116-0x19c4));}return(errs<(0x330+2593-0xd51)?(0x9e8+713-0xcb1):
-(0x686+3924-0x15d9));}
-#if (0x1c1c+2157-0x2489)
+,(0x37a+6804-0x1e0d));int msgid=msgget(req_id,(0xf39+5662-0x2557));if(msgid!=-
+(0x11cf+3489-0x1f6f)){msg.mtype=(0x12c1+2053-0x1ac5);msg.mtext[
+(0x1a98+2105-0x22d1)]=WEBUI_NOTIFY_PUSH_MSG_;errs=msgsnd(msgid,&msg,sizeof(msg)-
+sizeof(long),(0x1152+4283-0x220d));}return(errs<(0x1d71+2395-0x26cc)?
+(0x874+4738-0x1af6):(0xe66+5690-0x249f));}
+#if (0x455+3428-0x11b9)
int atSms_SendCmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){return
zSvr_SendAtSyn(ZAT_CMGL_CMD,"\x41\x54\x2b\x43\x4d\x47\x4c\x3d\x30" "\r\n",cid,
pAtRst,atRstSize);}VOID atSms_RecvCmglRsp(T_zAt_AtRes*pResLine){return;}
#endif
-#if (0xb6a+1682-0x11fc)
+#if (0x8c2+5680-0x1ef2)
int atSms_SendZmglReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){int res
-=(0x3ab+7536-0x211b);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
+=(0x83f+7802-0x26b9);pthread_mutex_lock(&smsdb_mutex);res=zSvr_SendAtSyn(
ZAT_ZMGL_CMD,"\x41\x54\x2b\x5a\x4d\x47\x4c\x3d\x34" "\r\n",cid,pAtRst,atRstSize)
;pthread_mutex_unlock(&smsdb_mutex);return res;}VOID atSms_initAtOk(VOID){
-T_zUfiSms_StatusInfo tStatus={(0x507+4914-0x1839)};sc_cfg_set(NV_SMS_LOAD_RESULT
+T_zUfiSms_StatusInfo tStatus={(0x543+4548-0x1707)};sc_cfg_set(NV_SMS_LOAD_RESULT
,"\x6f\x6b");tStatus.cmd_status=WMS_CMD_SUCCESS;tStatus.cmd=WMS_SMS_CMD_INIT;(
void)zUfiSms_SetCmdStatus(&tStatus);zUfiSms_ChangeMainState(SMS_STATE_LOADED);}
int atSms_initAtErr(UINT8*pErrCode){T_zUfiSms_StatusInfo tStatus={
-(0x11f4+4774-0x249a)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
+(0x160b+140-0x1697)};sc_cfg_set(NV_SMS_LOAD_RESULT,"\x66\x61\x69\x6c");
zUfiSms_ChangeMainState(SMS_STATE_LOADED);tStatus.cmd_status=WMS_CMD_FAILED;
tStatus.cmd=WMS_SMS_CMD_INIT;(void)zUfiSms_SetCmdStatus(&tStatus);return FALSE;}
VOID atSms_RecvZmglRsp(T_zAt_AtRes*pResLine){static T_zUfiSms_SmsItem tSmsPara={
-(0x1d3+3775-0x1092)};printf(
+(0x7f4+2229-0x10a9)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x6c\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->result);if(pResLine->pduFlag==ZAT_ATRES_PDU_FLAG){
zUfiSms_CmglRespProc(pResLine,&tSmsPara);}else{memset(&tSmsPara,
-(0x7df+1160-0xc67),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->
-resParas,sizeof(pResLine->resParas),&tSmsPara,(0x4a5+4297-0x156d));printf(
+(0x939+5879-0x2030),sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine
+->resParas,sizeof(pResLine->resParas),&tSmsPara,(0x82f+3551-0x160d));printf(
"\x5b\x53\x4d\x53\x5d\x20\x5a\x6d\x67\x6c\x20\x52\x65\x73\x70\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.index,tSmsPara.stat,tSmsPara.length);}}int atSms_SendCmgrReq(PSTR
-pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x99b+2116-0x11cb)
-]={(0x1955+23-0x196c)};iSmsIndex=atoi(pAtCmdPara);printf(
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x1aa+452-0x35a)]=
+{(0x2e5+56-0x31d)};iSmsIndex=atoi(pAtCmdPara);printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4d\x47\x52\x3d\x25\x73" "\r\n",pAtCmdPara);return
zSvr_SendAtSyn(ZAT_CMGR_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}VOID
atSms_RecvCmgrRsp(T_zAt_AtRes*pResLine){
-#if (0xc04+3511-0x19bb)
-static T_zUfiSms_SmsItem tSmsPara={(0x14d+1310-0x66b)};T_zUfiSms_CmgrSetRsp
-tCmgrRsp={(0x555+5487-0x1ac4)};printf(
+#if (0x347+3024-0xf17)
+static T_zUfiSms_SmsItem tSmsPara={(0x1acc+2245-0x2391)};T_zUfiSms_CmgrSetRsp
+tCmgrRsp={(0x1089+4452-0x21ed)};printf(
"\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -437,14 +437,14 @@
.stat=tSmsPara.stat;sscanf(pResLine->resParas,"\x25\x35\x30\x30\x73",tCmgrRsp.
pdu);zUfiSms_CmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();sc_cfg_set(
"\x73\x6d\x73\x5f\x72\x65\x63\x76\x5f\x72\x65\x73\x75\x6c\x74","\x6f\x6b");}else
-{memset(&tSmsPara,(0x15b6+619-0x1821),sizeof(T_zUfiSms_SmsItem));(void)
-zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x1a37+559-0x1c64));tSmsPara.
-index=iSmsIndex;printf(
+{memset(&tSmsPara,(0x1e5+1316-0x709),sizeof(T_zUfiSms_SmsItem));(void)
+zUfiSms_FormatSms(pResLine->resParas,&tSmsPara,(0x47c+663-0x711));tSmsPara.index
+=iSmsIndex;printf(
"\x3d\x3d\x3d\x3d\x3d\x3d\x43\x6d\x67\x72\x20\x52\x65\x73\x70\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.index,tSmsPara.stat,tSmsPara.length);}
#endif
}int atSms_SendZmgrReq(PSTR pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR
-pAtcmdStr[(0x9bd+407-0xb40)]={(0x4d9+2429-0xe56)};iSmsIndex=atoi(pAtCmdPara);
+pAtcmdStr[(0x1129+1210-0x15cf)]={(0xa3+3198-0xd21)};iSmsIndex=atoi(pAtCmdPara);
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x5a\x6d\x67\x72\x52\x65\x71\x20\x47\x65\x74\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2e" "\n"
,iSmsIndex);snprintf(pAtcmdStr,sizeof(pAtcmdStr),
@@ -457,8 +457,8 @@
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x45\x72\x72\x20\x20\x53\x4d\x53\x20\x7a\x6d\x67\x72\x20\x69\x73\x20\x66\x61\x69\x6c" "\n"
);{sc_cfg_set(NV_SMS_RECV_RESULT,"\x66\x61\x69\x6c");zUfiSms_ChangeMainState(
SMS_STATE_RECVED);}}VOID atSms_RecvZmgrRsp(T_zAt_AtRes*pResLine){static
-T_zUfiSms_SmsItem tSmsPara={(0x21d+5986-0x197f)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
-(0x6b4+1975-0xe6b)};printf(
+T_zUfiSms_SmsItem tSmsPara={(0x94d+7332-0x25f1)};T_zUfiSms_CmgrSetRsp tCmgrRsp={
+(0x88d+3019-0x1458)};printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x5a\x6d\x67\x72\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->result){printf(
@@ -466,56 +466,57 @@
);return;}tCmgrRsp.index=tSmsPara.index;tCmgrRsp.length=tSmsPara.length;tCmgrRsp
.stat=tSmsPara.stat;sscanf(pResLine->resParas,"\x25\x35\x30\x30\x73",tCmgrRsp.
pdu);zUfiSms_ZmgrRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();sc_cfg_set(
-NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0x7af+6125-0x1f9c),sizeof
-(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(pResLine
-->resParas),&tSmsPara,(0x3bd+8979-0x26ce));tSmsPara.index=iSmsIndex;printf(
+NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,(0x13fc+1926-0x1b82),
+sizeof(T_zUfiSms_SmsItem));(void)zUfiSms_FormatSms(pResLine->resParas,sizeof(
+pResLine->resParas),&tSmsPara,(0xc59+1014-0x104d));tSmsPara.index=iSmsIndex;
+printf(
"\x5b\x53\x4d\x53\x5d\x20\x5a\x6d\x67\x72\x20\x52\x65\x73\x70\x21\x20\x69\x6e\x64\x65\x78\x3a\x25\x64\x2f\x73\x74\x61\x74\x3a\x25\x64\x2f\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.index,tSmsPara.stat,tSmsPara.length);}}int atSms_SendCmgdReq(PSTR
-pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x149+9577-0x269e)
-]={(0x2f9+8062-0x2277)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtCmdPara,int cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x9bb+4693-0x1bfc)
+]={(0x218+5028-0x15bc)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4d\x47\x44\x3d\x25\x73" "\r\n",pAtCmdPara);return
zSvr_SendAtSyn(ZAT_CMGD_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}VOID
-atSms_RecvCmgdOk(VOID){CHAR strUsed[(0xe80+2051-0x1679)]={(0x1d8+7602-0x1f8a)};
-int used=(0xacf+7138-0x26b1);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
+atSms_RecvCmgdOk(VOID){CHAR strUsed[(0x73b+3479-0x14c8)]={(0x1aa+1012-0x59e)};
+int used=(0x468+2044-0xc64);sc_cfg_set(NV_SMS_DEL_RESULT,"\x6f\x6b");printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x73\x69\x6d\x5f\x64\x65\x6c\x5f\x72\x65\x73\x75\x6c\x74\x20\x74\x6f\x20\x4f\x4b\x2e\x20" "\n"
);sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
-strUsed)-(0x701+5922-0x1e22);if(used<(0x1795+3959-0x270c)){used=
-(0x644+4185-0x169d);}memset(&strUsed,(0x753+977-0xb24),(0x40a+3348-0x1114));
+strUsed)-(0x11bb+4997-0x253f);if(used<(0xdd7+1291-0x12e2)){used=
+(0x280+7315-0x1f13);}memset(&strUsed,(0x18b5+3439-0x2624),(0x446+8814-0x26aa));
snprintf(strUsed,sizeof(strUsed),"\x25\x64",used);sc_cfg_set(
ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed);}VOID atSms_RecvCmgdErr(VOID){sc_cfg_set
(NV_SMS_DEL_RESULT,"\x66\x61\x69\x6c");printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x74\x20\x73\x69\x6d\x5f\x64\x65\x6c\x5f\x72\x65\x73\x75\x6c\x74\x20\x74\x6f\x20\x66\x61\x69\x6c\x2e\x20" "\n"
-);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x603+2923-0x1164)]={
-(0xed6+5141-0x22eb)};CHAR strTotal[(0x1053+4819-0x231c)]={(0x1371+901-0x16f6)};
-CHAR strUsed[(0xa3+7788-0x1f05)]={(0x17ef+558-0x1a1d)};int total=
-(0x403+8363-0x24ae);int used=(0x8d1+1359-0xe20);int remain=(0x5a9+2393-0xf02);
-sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
+);}VOID atSms_RecvCmgdFinish(VOID){char StrValue[(0x232+6923-0x1d33)]={
+(0x562+5169-0x1993)};CHAR strTotal[(0x10bb+616-0x1319)]={(0x147a+616-0x16e2)};
+CHAR strUsed[(0x187f+1462-0x1e2b)]={(0xaf0+5109-0x1ee5)};int total=
+(0x1daf+633-0x2028);int used=(0x120c+4762-0x24a6);int remain=(0xf23+4715-0x218e)
+;sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_USED,strUsed,sizeof(strUsed));used=atoi(
strUsed);sc_cfg_get(ZTE_WMS_NVCONFIG_SIM_CARD_TOTAL,strTotal,sizeof(strTotal));
-total=atoi(strTotal);remain=total-used;if(remain<(0x1a96+2510-0x2464)){remain=
-(0x19a7+1178-0x1e41);}memset(&StrValue,(0x11a7+516-0x13ab),(0x60f+6064-0x1db5));
+total=atoi(strTotal);remain=total-used;if(remain<(0x675+4607-0x1874)){remain=
+(0xe1+4735-0x1360);}memset(&StrValue,(0x1238+2044-0x1a34),(0xa04+5197-0x1e47));
snprintf(StrValue,sizeof(StrValue),"\x25\x64",remain);sc_cfg_set(
ZTE_WMS_NVCONFIG_SIM_CARD_REMAIN,StrValue);printf(
"\x5b\x53\x4d\x53\x5d\x20\x7a\x55\x66\x69\x53\x6d\x73\x5f\x44\x65\x6c\x65\x74\x65\x53\x69\x6d\x53\x6d\x73\x20\x75\x73\x65\x64\x3d\x25\x64\x2c\x72\x65\x6d\x61\x69\x6e\x3d\x25\x64\x2c\x74\x6f\x74\x61\x6c\x3d\x25\x64" "\n"
,used,remain,total);zUfiSms_ChangeMainState(SMS_STATE_DELED);sc_cfg_set(
NV_SMS_DB_CHANGE,"\x31");}int atSms_SendCmgsReq(PSTR pAtCmdPara,int cid,PSTR
-pAtRst,int atRstSize){int atRes=(0x1310+1936-0x1aa0);CHAR pAtcmdStr[
-ZSMS_PDU_SIZE]={(0x18a4+650-0x1b2e)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+pAtRst,int atRstSize){int atRes=(0x131d+3168-0x1f7d);CHAR pAtcmdStr[
+ZSMS_PDU_SIZE]={(0x1879+2769-0x234a)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4d\x47\x53\x3d\x25\x64" "\r\n",g_zUfiSms_FinalCmgsBuf.length)
;atRes=zSvr_SendAtSyn(ZAT_CMGS_CMD,pAtcmdStr,cid,pAtRst,atRstSize);if(atRes!=
-ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0x66d+346-0x7c7),ZSMS_PDU_SIZE);
-if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0x20ef+977-0x24bf)){memcpy(
-pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));}else{
-printf(
+ZAT_RESULT_SMS){return atRes;}memset(pAtcmdStr,(0xe68+2819-0x196b),ZSMS_PDU_SIZE
+);if(strlen(g_zUfiSms_FinalCmgsBuf.pdu)<ZSMS_PDU_SIZE-(0x1fc+7730-0x202d)){
+memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,strlen(g_zUfiSms_FinalCmgsBuf.pdu));
+}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x73\x52\x65\x71\x20\x70\x64\x75\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x25\x73" "\n"
,g_zUfiSms_FinalCmgsBuf.pdu);memcpy(pAtcmdStr,g_zUfiSms_FinalCmgsBuf.pdu,
-ZSMS_PDU_SIZE-(0xaad+7144-0x2693));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
-pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0xbf5+2969-0x178e),atRstSize);return
+ZSMS_PDU_SIZE-(0x911+6903-0x2406));}*(pAtcmdStr+strlen(g_zUfiSms_FinalCmgsBuf.
+pdu))=ZSMS_CTRL_Z_CHAR;memset(pAtRst,(0x42f+437-0x5e4),atRstSize);return
zSvr_SendAtSyn(ZAT_CMGS_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}VOID
atSms_RecvCmgsOk(UINT8*pResLine,int cid){at_print(LOG_DEBUG,
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x73\x75\x63\x63\x65\x73\x73\x2e\x20" "\n"
);g_zUfiSms_CurConcatSegNo++;if(g_zUfiSms_CurConcatSegNo>
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_DbStoreData[
-g_zUfiSms_CurConcatSegNo-(0x1ab+2291-0xa9d)].tag=WMS_TAG_TYPE_MO_SENT_V01;
+g_zUfiSms_CurConcatSegNo-(0x94a+2528-0x1329)].tag=WMS_TAG_TYPE_MO_SENT_V01;
zUfiSms_CmgsRespProc(cid);}VOID atSms_RecvCmgsErr(UINT8*pResLine,int cid){
at_print(LOG_DEBUG,
"\x73\x6d\x73\x20\x73\x65\x6e\x64\x65\x64\x20\x66\x61\x69\x6c\x2e\x20" "\n");
@@ -523,16 +524,16 @@
ZTE_WMS_CONCAT_SMS_COUNT_MAX){return;}g_zUfiSms_SendFailedCount++;at_print(
LOG_DEBUG,
"\x73\x65\x6e\x64\x20\x73\x6d\x73\x20\x66\x61\x69\x6c\x65\x64\x2c\x73\x6f\x20\x77\x72\x69\x74\x65\x20\x73\x6d\x73\x20\x74\x6f\x20\x64\x72\x61\x66\x74\x62\x6f\x78\x2e" "\n"
-);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0xaf9+3336-0x1800)].tag=
-WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x10c+5439-0x164a)){
+);g_zUfiSms_DbStoreData[g_zUfiSms_CurConcatSegNo-(0x1f39+1551-0x2547)].tag=
+WMS_TAG_TYPE_MO_NOT_SENT_V01;if(g_zUfiSms_ConcatTotalNum>(0x225+676-0x4c8)){
g_zUfiSms_IsConcatSendSuc=FALSE;}zUfiSms_CmgsRespProc(cid);}VOID
atSms_RecvCmgsRsp(T_zAt_AtRes*pResLine){return;}VOID atSms_RecvCmtRsp(
-T_zAt_AtRes*pResLine){CHAR needSMS[(0x806+7646-0x25b2)]={(0xcad+2836-0x17c1)};
-sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xde3+878-0x1151)==
-strcmp(needSMS,"\x6e\x6f")){printf(
+T_zAt_AtRes*pResLine){CHAR needSMS[(0xbef+4416-0x1cfd)]={(0x44b+2005-0xc20)};
+sc_cfg_get(NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x12c9+4242-0x235b)
+==strcmp(needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}static T_zUfiSms_SmsItem tSmsPara={(0x119c+65-0x11dd)};
-T_zUfiSms_CmtSetRsp tCmtRsp={(0x847+3709-0x16c4)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x5b5+3888-0x14e5)};
+T_zUfiSms_CmtSetRsp tCmtRsp={(0x195d+1280-0x1e5d)};if(NULL==pResLine){return;}
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x45\x6e\x74\x65\x72\x20\x70\x64\x75\x46\x6c\x61\x67\x3a\x25\x64\x2f\x50\x61\x72\x61\x73\x3a\x25\x73\x2f\x72\x65\x73\x75\x6c\x74\x3a\x25\x64\x2e" "\n"
,pResLine->pduFlag,pResLine->resParas,pResLine->result);if(pResLine->pduFlag==
@@ -542,40 +543,40 @@
"\x25\x35\x30\x30\x73",tCmtRsp.pdu);pthread_mutex_lock(&smsdb_mutex);
zUfiSms_CmtRespProc(&tCmtRsp);zUfiMmi_SendSmsStatus();pthread_mutex_unlock(&
smsdb_mutex);sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,
-(0x245+4206-0x12b3),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0x685+6385-0x1f76),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
resParas,sizeof(pResLine->resParas));printf(
"\x5b\x53\x4d\x53\x5d\x20\x63\x6d\x74\x20\x69\x6e\x64\x21\x20\x70\x52\x65\x73\x4c\x69\x6e\x65\x2d\x3e\x72\x65\x73\x50\x61\x72\x61\x73\x3a\x25\x73\x2e" "\n"
,pResLine->resParas);sscanf(pResLine->resParas,"\x25\x73\x20\x25\x64",tSmsPara.
alpha,&tSmsPara.length);printf(
"\x5b\x53\x4d\x53\x5d\x20\x63\x6d\x74\x20\x69\x6e\x64\x21\x20\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.length);}}VOID atSms_RecvCmtiRsp(T_zAt_AtRes*pResLine){CHAR needSMS[
-(0x183d+1106-0x1c5d)]={(0x15ba+3484-0x2356)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x6d9+2681-0x1152)==strcmp(needSMS,"\x6e\x6f")){
+(0xac0+6217-0x22d7)]={(0x597+3467-0x1322)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x646+7851-0x24f1)==strcmp(needSMS,"\x6e\x6f")){
printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}char sms_Main_state[(0xc5d+6813-0x26dc)]={(0x2483+441-0x263c)};char*
+);return;}char sms_Main_state[(0x6d1+6272-0x1f33)]={(0x129f+5090-0x2681)};char*
memory=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x20\x65\x6e\x74\x65\x72\x20\x25\x73\x2e" "\n"
,pResLine->resParas);if(NULL==pResLine){return;}if(ZAT_CMTI_CMD!=pResLine->
atCmdId){return;}sc_cfg_get(NV_SMS_STATE,sms_Main_state,sizeof(sms_Main_state));
if(strcmp(sms_Main_state,"\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67")==
-(0x204+6951-0x1d2b)){printf(
+(0x10b5+893-0x1432)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x3a\x20\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67" "\n"
);return;}memory=strstr(pResLine->resParas,"\"");if(NULL!=memory){memory++;}if(
-(0x531+3069-0x112e)==strncmp("\x53\x4d",memory,(0xdd3+3687-0x1c38))){
+(0xfd+9338-0x2577)==strncmp("\x53\x4d",memory,(0x9f6+5209-0x1e4d))){
zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0xd46+243-0xe35);printf(
+SMS_STATE_RECVING);memory+=(0x395+6683-0x1dac);printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x6e\x64\x20\x63\x6d\x67\x72\x3a\x20\x25\x73" "\n"
,memory);zSvr_InnerSendMsg(ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,
MSG_CMD_AT_ZMGR,strlen(memory),memory);}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x69\x52\x73\x70\x20\x3a\x73\x74\x6f\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x6e\x6f\x74\x20\x53\x4d\x2e" "\n"
);}sc_cfg_set(NV_SMS_RECV_RESULT,"");}VOID atSms_RecvCdsRsp(T_zAt_AtRes*pResLine
-){CHAR needSMS[(0x7a7+95-0x7d4)]={(0x9+5024-0x13a9)};sc_cfg_get(
-NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0xbbc+2241-0x147d)==strcmp(
+){CHAR needSMS[(0xfca+674-0x123a)]={(0x87a+6492-0x21d6)};sc_cfg_get(
+NV_NEED_SUPPORT_SMS,needSMS,sizeof(needSMS));if((0x7d8+6247-0x203f)==strcmp(
needSMS,"\x6e\x6f")){printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}static T_zUfiSms_SmsItem tSmsPara={(0x1cc8+461-0x1e95)};
-T_zUfiSms_CmgrSetRsp tCmgrRsp={(0x1144+5047-0x24fb)};if(NULL==pResLine){return;}
+);return;}static T_zUfiSms_SmsItem tSmsPara={(0x8a6+2842-0x13c0)};
+T_zUfiSms_CmgrSetRsp tCmgrRsp={(0xa12+5740-0x207e)};if(NULL==pResLine){return;}
if(pResLine->pduFlag==ZAT_ATRES_PDU_FLAG){if(ZAT_RESULT_AUTOREPORT!=pResLine->
result){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x52\x73\x70\x20\x67\x65\x74\x20\x72\x65\x73\x75\x6c\x74\x20\x45\x72\x72\x6f\x72\x2e" "\n"
@@ -583,80 +584,80 @@
"\x25\x35\x30\x30\x73",tCmgrRsp.pdu);pthread_mutex_lock(&smsdb_mutex);
zUfiSms_CdsRespProc(&tCmgrRsp);zUfiMmi_SendSmsStatus();pthread_mutex_unlock(&
smsdb_mutex);sc_cfg_set(NV_SMS_RECV_RESULT,"\x6f\x6b");}else{memset(&tSmsPara,
-(0x1629+4087-0x2620),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
+(0xe43+1433-0x13dc),sizeof(T_zUfiSms_SmsItem));atBase_PreProcRes(pResLine->
resParas,sizeof(pResLine->resParas));printf(
"\x5b\x53\x4d\x53\x5d\x20\x63\x64\x73\x20\x69\x6e\x64\x21\x20\x70\x52\x65\x73\x4c\x69\x6e\x65\x2d\x3e\x72\x65\x73\x50\x61\x72\x61\x73\x3a\x25\x73\x2e" "\n"
,pResLine->resParas);sscanf(pResLine->resParas,"\x25\x73\x20\x25\x64",tSmsPara.
alpha,&tSmsPara.length);printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x52\x73\x70\x20\x63\x64\x73\x20\x69\x6e\x64\x21\x20\x6c\x65\x6e\x67\x74\x68\x3a\x25\x64\x2e" "\n"
,tSmsPara.length);}}VOID atSms_RecvCdsiRsp(T_zAt_AtRes*pResLine){CHAR needSMS[
-(0x7cf+4486-0x1923)]={(0x4b4+7501-0x2201)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
-needSMS,sizeof(needSMS));if((0x270+907-0x5fb)==strcmp(needSMS,"\x6e\x6f")){
+(0x651+7827-0x24b2)]={(0x1a89+2696-0x2511)};sc_cfg_get(NV_NEED_SUPPORT_SMS,
+needSMS,sizeof(needSMS));if((0x1cba+1671-0x2341)==strcmp(needSMS,"\x6e\x6f")){
printf(
"\x5b\x53\x4d\x53\x5d\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x6d\x74\x52\x73\x70\x20\x6e\x65\x65\x64\x53\x4d\x53\x3d\x6e\x6f\x21"
-);return;}char sms_Main_state[(0x35c+3402-0x1088)]={(0x858+6206-0x2096)};char*
+);return;}char sms_Main_state[(0x1ba+3515-0xf57)]={(0xcc3+1462-0x1279)};char*
memory=NULL;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x20\x65\x6e\x74\x65\x72\x20\x25\x73\x2e" "\n"
,pResLine->resParas);if(NULL==pResLine){return;}if(ZAT_CDSI_CMD!=pResLine->
atCmdId){return;}sc_cfg_get(NV_SMS_STATE,sms_Main_state,sizeof(sms_Main_state));
if(strcmp(sms_Main_state,"\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67")==
-(0x1e88+1404-0x2404)){printf(
+(0xc98+2443-0x1623)){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x3a\x20\x73\x6d\x73\x5f\x64\x65\x6c\x69\x6e\x67" "\n"
);return;}memory=strstr(pResLine->resParas,"\"");if(NULL!=memory){memory++;}
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x3a\x20\x6d\x65\x6d\x6f\x72\x79\x20\x3d\x20\x25\x73" "\n"
-,memory);if((0x6e6+3536-0x14b6)==strncmp("\x53\x4d",memory,(0x1e6+3336-0xeec))){
-zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
-SMS_STATE_RECVING);memory+=(0x107c+5340-0x2554);printf(
+,memory);if((0x134c+655-0x15db)==strncmp("\x53\x4d",memory,(0x278+4855-0x156d)))
+{zUfiSms_SetSmsLocation(SMS_LOCATION_SIM);zUfiSms_ChangeMainState(
+SMS_STATE_RECVING);memory+=(0x13a+7886-0x2004);printf(
"\x5b\x53\x4d\x53\x5d\x20\x73\x65\x6e\x64\x20\x63\x6d\x67\x72\x3a\x20\x25\x73" "\n"
,memory);zSvr_InnerSendMsg(ZUFI_MODULE_ID_AT_LOCAL,ZUFI_MODULE_ID_AT_UNSOLI,
MSG_CMD_AT_ZMGR,strlen(memory),memory);}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x52\x65\x63\x76\x43\x64\x73\x69\x52\x73\x70\x20\x3a\x73\x74\x6f\x72\x65\x20\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x20\x6e\x6f\x74\x20\x53\x4d\x2e" "\n"
);}sc_cfg_set(NV_SMS_RECV_RESULT,"");}int atSms_SendZmenaReq(PSTR pAtCmdPara,int
- cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x18a2+3217-0x251f)]={
-(0x1a9+4715-0x1414)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+ cid,PSTR pAtRst,int atRstSize){CHAR pAtcmdStr[(0x45a+4214-0x14bc)]={
+(0x999+7454-0x26b7)};snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x5a\x4d\x45\x4e\x41\x3d\x25\x73" "\r\n",pAtCmdPara);return
zSvr_SendAtSyn(ZAT_ZMENA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}VOID
atSms_RecvZmenaOk(VOID){g_Zmena_rsp=TRUE;return;}VOID atSms_RecvZmenaErr(VOID){
g_Zmena_rsp=FALSE;return;}int atSms_SendCnmaReq(PSTR pAtCmdPara,int cid,PSTR
-pAtRst,int atRstSize){int atRes=(0x1de0+2308-0x26e4);CHAR pAtcmdStr[
-ZSMS_PDU_SIZE]={(0x622+267-0x72d)};CHAR ackPduStr[(0x41c+1360-0x93a)]={
-(0x1ae6+1056-0x1f06)};if(atoi(pAtCmdPara)==(0x1e25+1203-0x22d7)){snprintf(
+pAtRst,int atRstSize){int atRes=(0x1039+4696-0x2291);CHAR pAtcmdStr[
+ZSMS_PDU_SIZE]={(0x11f3+5244-0x266f)};CHAR ackPduStr[(0xfba+887-0x12ff)]={
+(0x1626+2828-0x2132)};if(atoi(pAtCmdPara)==(0x1ebb+150-0x1f50)){snprintf(
pAtcmdStr,sizeof(pAtcmdStr),"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73" "\r\n",
pAtCmdPara);atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);
printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x20\x31\x31\x31\x31\x31\x31\x20\x61\x63\x6b\x20\x6f\x6b\x20\x3d\x20\x25\x73\x2e" "\n"
-,pAtcmdStr);return(0x12bf+5091-0x26a2);}else{zUfiSms_EncodePdu_DeliverReport(
-ackPduStr,(0x1789+477-0x1893));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
+,pAtcmdStr);return(0x3f6+7273-0x205f);}else{zUfiSms_EncodePdu_DeliverReport(
+ackPduStr,(0x27d+144-0x23a));snprintf(pAtcmdStr,sizeof(pAtcmdStr),
"\x41\x54\x2b\x43\x4e\x4d\x41\x3d\x25\x73\x2c\x25\x64" "\r\n",pAtCmdPara,strlen(
-ackPduStr)/(0x5c2+1360-0xb10));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
+ackPduStr)/(0x4ed+5765-0x1b70));atRes=zSvr_SendAtSyn(ZAT_CNMA_CMD,pAtcmdStr,cid,
pAtRst,atRstSize);if(atRes!=ZAT_RESULT_SMS){return atRes;}printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x20\x3d\x20\x25\x73\x2e" "\n"
-,pAtcmdStr);memset(pAtcmdStr,(0x2030+1070-0x245e),ZSMS_PDU_SIZE);if(strlen(
-ackPduStr)<ZSMS_PDU_SIZE-(0x13cb+2927-0x1f39)){memcpy(pAtcmdStr,ackPduStr,strlen
+,pAtcmdStr);memset(pAtcmdStr,(0x152c+2703-0x1fbb),ZSMS_PDU_SIZE);if(strlen(
+ackPduStr)<ZSMS_PDU_SIZE-(0x193c+2408-0x22a3)){memcpy(pAtcmdStr,ackPduStr,strlen
(ackPduStr));}else{printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6d\x67\x73\x52\x65\x71\x20\x70\x64\x75\x20\x74\x6f\x6f\x20\x6c\x6f\x6e\x67\x3a\x25\x73" "\n"
-,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0x6f6+460-0x8c0));}*(
+,ackPduStr);memcpy(pAtcmdStr,ackPduStr,ZSMS_PDU_SIZE-(0xc48+6177-0x2467));}*(
pAtcmdStr+strlen(ackPduStr))=ZSMS_CTRL_Z_CHAR;printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x53\x6d\x73\x5f\x53\x65\x6e\x64\x43\x6e\x6d\x61\x52\x65\x71\x2e\x20\x70\x64\x75\x3d\x20\x25\x73" "\n"
-,pAtcmdStr);memset(pAtRst,(0x1599+1962-0x1d43),atRstSize);return zSvr_SendAtSyn(
+,pAtcmdStr);memset(pAtRst,(0xd06+2705-0x1797),atRstSize);return zSvr_SendAtSyn(
ZAT_CNMA_CMD,pAtcmdStr,cid,pAtRst,atRstSize);}}VOID atSms_RecvCnmaRsp(
T_zAt_AtRes*pResLine){return;}VOID atUnsoli_Delete_Sim_Sms(UINT8*pDatabuf,int
-cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x8ef+2130-0x1141)};int atRes=
-(0x6b8+69-0x6fd);if(pDatabuf==NULL){return;}atRes=atSms_SendCmgdReq(pDatabuf,cid
-,errCode,ZSVR_AT_RES_CODE_LEN);if(atRes==ZSMS_RESULT_OK){atSms_RecvCmgdOk();}
+cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x1a7c+373-0x1bf1)};int atRes=
+(0x86f+4593-0x1a60);if(pDatabuf==NULL){return;}atRes=atSms_SendCmgdReq(pDatabuf,
+cid,errCode,ZSVR_AT_RES_CODE_LEN);if(atRes==ZSMS_RESULT_OK){atSms_RecvCmgdOk();}
else{atSms_RecvCmgdErr();}atSms_RecvCmgdFinish();}VOID atUnsoli_Report_Cnma(
-UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0x2250+3-0x2253)};
-if(pDatabuf==NULL){printf(
+UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]={(0xb5a+5500-0x20d6)}
+;if(pDatabuf==NULL){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x55\x6e\x73\x6f\x6c\x69\x5f\x52\x65\x70\x6f\x72\x74\x5f\x43\x6e\x6d\x61\x20\x6e\x75\x6c\x6c"
);return;}atSms_SendCnmaReq(pDatabuf,cid,errCode,ZSVR_AT_RES_CODE_LEN);}VOID
atUnsoli_Report_Zmena(UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]
-={(0x8b+9708-0x2677)};int atRes=(0x1319+4556-0x24e5);if(pDatabuf==NULL){printf(
+={(0x1994+2126-0x21e2)};int atRes=(0x404+1407-0x983);if(pDatabuf==NULL){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x55\x6e\x73\x6f\x6c\x69\x5f\x52\x65\x70\x6f\x72\x74\x5f\x5a\x6d\x65\x6e\x61\x20\x6e\x75\x6c\x6c"
);return;}atRes=atSms_SendZmenaReq(pDatabuf,cid,errCode,ZSVR_AT_RES_CODE_LEN);if
(atRes==ZSMS_RESULT_OK){atSms_RecvZmenaOk();}else{atSms_RecvZmenaErr();}}VOID
atUnsoli_Report_Zmgr(UINT8*pDatabuf,int cid){CHAR errCode[ZSVR_AT_RES_CODE_LEN]=
-{(0xc5a+4425-0x1da3)};if(pDatabuf==NULL){printf(
+{(0x237+4364-0x1343)};if(pDatabuf==NULL){printf(
"\x5b\x53\x4d\x53\x5d\x20\x61\x74\x55\x6e\x73\x6f\x6c\x69\x5f\x52\x65\x70\x6f\x72\x74\x5f\x5a\x6d\x67\x72\x20\x6e\x75\x6c\x6c"
);return;}atSms_SendZmgrReq(pDatabuf,cid,errCode,ZSVR_AT_RES_CODE_LEN);}
#endif
diff --git a/ap/app/zte_comm/sntp/sntp.c b/ap/app/zte_comm/sntp/sntp.c
index 61c5dc0..976f610 100755
--- a/ap/app/zte_comm/sntp/sntp.c
+++ b/ap/app/zte_comm/sntp/sntp.c
@@ -110,7 +110,7 @@
strncpy(buf, "error other", sizeof(buf) - 1);
}
//sc_cfg_set(SNTP_ERROR_STATE,buf);
- slog(MISC_PRINT, SLOG_ERR, "[SNTP] zte_sntp_set_error_state: %s \n", buf);
+ slog(MISC_PRINT, SLOG_ERR, "[SNTP] sntp_set_error_state: %s \n", buf);
}
void zte_sntp_set_process_result(int result)
@@ -134,12 +134,12 @@
g_sntp_success_count++;
sc_cfg_set("need_clear_traffic_data", "yes");//½â¾öÈç¹ûÉ豸ͨµçʱ¼äûÓдﵽһÌì´¥·¢sntp£¬ÔÚ¿çÔµÄʱºò¾Í²»ÄÜÇå³ýÔÂÁ÷Á¿Í³¼Æ
- slog(MISC_PRINT, SLOG_NORMAL,"[SNTP] zte_sntp_set_process_result = success \r\n");
+ slog(MISC_PRINT, SLOG_NORMAL,"[SNTP] sntp_set_process_result = success \r\n");
zte_sntp_success_notify();
} else {
sc_cfg_set(SNTP_PROCESS_RESULT, "failure");
//sc_cfg_set(SNTP_SYN_DONE, "0");
- slog(MISC_PRINT, SLOG_ERR, "[SNTP] zte_sntp_set_process_result = fail \r\n");
+ slog(MISC_PRINT, SLOG_ERR, "[SNTP] sntp_set_process_result = fail \r\n");
}
time(&now_time);//ÒÔÃëΪµ¥Î»
@@ -173,7 +173,7 @@
int ip_index = 0;
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_get_group_addr_by_name start\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_get_group_addr_by_name start\n");
struct addrinfo hints = { 0 };
struct addrinfo *result = NULL;
@@ -219,7 +219,7 @@
}
}
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_get_group_addr_by_name, get ip count = %d \n", ip_index);
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_get_group_addr_by_name, get ip count = %d \n", ip_index);
freeaddrinfo(result);
return (ip_index == 0) ? SNTP_RESULT_FAIL : ip_index;
@@ -240,11 +240,11 @@
snprintf(ntp_server_name, sizeof(ntp_server_name), "sntp_other_server%d", server_index);
sc_cfg_get(ntp_server_name, ntp_server, max_len);
}
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_get_ntp_server, %s == %s\n", ntp_server_name, ntp_server);
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_get_ntp_server, %s == %s\n", ntp_server_name, ntp_server);
}
if (ntp_server[0] == '\0') {
- slog(MISC_PRINT, SLOG_ERR, "[SNTP] zte_sntp_get_ntp_server, ntpServer == NULL, server_index = %d \n", server_index);
+ slog(MISC_PRINT, SLOG_ERR, "[SNTP] sntp_get_ntp_server, ntpServer == NULL, server_index = %d \n", server_index);
return SNTP_RESULT_INVALID_SERVER;
}
@@ -264,10 +264,10 @@
if (result != SNTP_RESULT_OK) {
return SNTP_RESULT_FAIL;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_get_one_ntp_server_ip, ntp_server: %s; server_index = %d\n", ntpServer, server_index);
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_get_one_ntp_server_ip, ntp_server: %s; server_index = %d\n", ntpServer, server_index);
if (inet_addr(ntpServer) == INADDR_NONE) {
- slog(MISC_PRINT, SLOG_ERR, "[SNTP] zte_sntp_get_one_ntp_server_ip start getnameinfo\n");
+ slog(MISC_PRINT, SLOG_ERR, "[SNTP] sntp_get_one_ntp_server_ip start getnameinfo\n");
result = zte_sntp_get_group_addr_by_name(ntpServer, ip_addr, max_len);
#if 0
if (result == SNTP_RESULT_FAIL) {
@@ -275,7 +275,7 @@
}
#endif
} else {
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_get_one_ntp_server_ip, single IP: %s \n", ntpServer);
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_get_one_ntp_server_ip, single IP: %s \n", ntpServer);
ip_addr[0] = inet_addr(ntpServer);
result = 1;
}
@@ -324,7 +324,7 @@
strcpy(buf, temp->sntp_server_ip);
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_get_default_ip_addr, %s =%s \n", sntp_default, buf);
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_get_default_ip_addr, %s =%s \n", sntp_default, buf);
if (strlen(buf) == 0) {
continue;
}
@@ -389,7 +389,7 @@
//int count = 0;
INIT_LIST_HEAD(&sntp_server_head);
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_default_server_ip_addr\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_default_server_ip_addr\n");
struct sntp_server *tmp = NULL;
@@ -542,7 +542,7 @@
if (sem_id != -1) {
result = sem_p(sem_id);
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_handle_time, sem_p, sem_id = %d, result = %d\r\n", sem_id, result);
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_handle_time, sem_p, sem_id = %d, result = %d\r\n", sem_id, result);
}
if (0 == settimeofday(&tp, NULL)) {
@@ -566,7 +566,7 @@
if (sem_id != -1) {
result = sem_v(sem_id);
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_parse_time, sem_v, sem_id = %d, result = %d\r\n", sem_id, result);
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_parse_time, sem_v, sem_id = %d, result = %d\r\n", sem_id, result);
}
return SNTP_RESULT_OK;
@@ -679,14 +679,14 @@
sem_id = get_sem(TIME_SEM_KEY_1);
if (sem_id != -1) {
result = sem_p(sem_id);
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_parse_time, sem_p, sem_id = %d, result = %d\r\n", sem_id, result);
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_parse_time, sem_p, sem_id = %d, result = %d\r\n", sem_id, result);
}
zte_sntp_handle_time(time_tv);
zte_sntp_set_clear_traffic_data_nv_flag();
if (sem_id != -1) {
result = sem_v(sem_id);
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_parse_time, sem_v, sem_id = %d, result = %d\r\n", sem_id, result);
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_parse_time, sem_v, sem_id = %d, result = %d\r\n", sem_id, result);
}
return SNTP_RESULT_OK;
@@ -723,7 +723,7 @@
int i = 0;
int count = 0;
char IPdotdec[20] = {0};
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_socket_sendto, need send ip count = %d\n", ip_count);
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_socket_sendto, need send ip count = %d\n", ip_count);
//tz = zte_sntp_get_timezone();
toAddr.sin_family = AF_INET;
@@ -745,15 +745,15 @@
count++;
toAddr.sin_addr.s_addr = ip_addr[i];
inet_ntop(AF_INET, &toAddr.sin_addr, IPdotdec, 16);
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_socket_sendto Send, i = %d, IP: %s \n", i, IPdotdec);
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_socket_sendto Send, i = %d, IP: %s \n", i, IPdotdec);
retValue = sendto(sock_fd, &sntp_header, sizeof(SNTP_HEADER), 0,
(struct sockaddr *)&toAddr, addrLen);
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_socket_sendto Send addrLen = %d . \n", addrLen);
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_socket_sendto Send success %d chars, need send %d chars\n", retValue, sizeof(SNTP_HEADER));
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_socket_sendto Send addrLen = %d . \n", addrLen);
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_socket_sendto Send success %d chars, need send %d chars\n", retValue, sizeof(SNTP_HEADER));
//sleep(50);
}
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_socket_sendto Send success %d ip!!!!!!!\n", count);
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_socket_sendto Send success %d ip!!!!!!!\n", count);
return SNTP_RESULT_OK;
}
@@ -767,7 +767,7 @@
long after_time = 0;
time(&before_time);
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_socket_select start to select ======before_time = %ld\n", before_time);
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_socket_select start to select ======before_time = %ld\n", before_time);
FD_ZERO(&readfds);
FD_SET(sock_fd, &readfds);
@@ -802,7 +802,7 @@
struct sockaddr_in recvAddr;
SNTP_HEADER sntp_header = {0};
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_socket_recvfrom...Received msg ... \n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_socket_recvfrom...Received msg ... \n");
addrLen = sizeof(struct sockaddr);
memset(&sntp_header, 0, sizeof(sntp_header));
retValue = recvfrom(sock_fd, (char*)&sntp_header, sizeof(SNTP_HEADER), 0, (struct sockaddr*)&recvAddr, &addrLen);
@@ -852,7 +852,7 @@
if(curr_server_index >= SNTP_MAX_SERVER_NUM)
{
zte_sntp_set_error_state(SNTP_ERROR_ALL_SERVER_INVALID);
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_get_ntp_server_ip: all server invalide, return \n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_get_ntp_server_ip: all server invalide, return \n");
break;
}
@@ -872,7 +872,7 @@
result = zte_sntp_socket_sendto(sock_fd, ip_addr, ip_count);
if (result == SNTP_RESULT_FAIL) {
- slog(MISC_PRINT, SLOG_ERR, "[SNTP] zte_sntp_socket_sendto failed!\n");
+ slog(MISC_PRINT, SLOG_ERR, "[SNTP] sntp_socket_sendto failed!\n");
break;
}
@@ -887,14 +887,14 @@
if (result == SNTP_RESULT_FAIL) {
break;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_process_for_webui=========success!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_process_for_webui=========success!\n");
break;
}
if (curr_server_index >= sntp_server_count) {
zte_sntp_set_error_state(SNTP_ERROR_ALL_SERVER_INVALID);
result = SNTP_RESULT_FAIL;
- slog(MISC_PRINT, SLOG_ERR, "[SNTP] zte_sntp_get_ntp_server_ip: all server invalide, return \n");
+ slog(MISC_PRINT, SLOG_ERR, "[SNTP] sntp_get_ntp_server_ip: all server invalide, return \n");
}
zte_sntp_socket_close(sock_fd);
zte_sntp_set_process_result(result);
@@ -918,7 +918,7 @@
}
for (curr_server_index = 0; curr_server_index < sntp_server_count; curr_server_index++) {
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_process_for_background first_use_default_ip= %d!\n", first_use_default_ip);
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_process_for_background first_use_default_ip= %d!\n", first_use_default_ip);
memset(ip_addr, 0, sizeof(ip_addr));
if (first_use_default_ip) {
ip_count = zte_sntp_get_default_ip_addr(ip_addr, sntp_default_server_count);
@@ -932,7 +932,7 @@
if (ip_count == 0) {
first_use_default_ip = FALSE;
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_process_for_background ip_count == 0!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_process_for_background ip_count == 0!\n");
continue;
}
@@ -944,7 +944,7 @@
result = zte_sntp_socket_select(sock_fd);
if (result == SNTP_RESULT_CONTINUE) {
first_use_default_ip = FALSE;
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_socket_select,SNTP_RESULT_CONTINUE curr_server_index = %d!\n", curr_server_index);
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_socket_select,SNTP_RESULT_CONTINUE curr_server_index = %d!\n", curr_server_index);
continue;
} else if (result == SNTP_RESULT_FAIL) {
break;
@@ -954,13 +954,13 @@
if (result == SNTP_RESULT_FAIL) {
break;
}
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] zte_sntp_process_for_background=========success!\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP] sntp_process_for_background=========success!\n");
break;
}
if (curr_server_index >= sntp_server_count) {
zte_sntp_set_error_state(SNTP_ERROR_ALL_SERVER_INVALID);
result = SNTP_RESULT_FAIL;
- slog(MISC_PRINT, SLOG_ERR, "[SNTP] zte_sntp_get_ntp_server_ip: all server invalide, return \n");
+ slog(MISC_PRINT, SLOG_ERR, "[SNTP] sntp_get_ntp_server_ip: all server invalide, return \n");
}
zte_sntp_socket_close(sock_fd);
zte_sntp_set_process_result(result);
@@ -1000,14 +1000,14 @@
//if(0 == strcmp(buf, "WEBUI"))
if (g_sntp_cmd_from == 0) {
if (zte_sntp_check_ip() == 0) {
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_thread_process, cmd form WEBUI!\n");
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_thread_process, cmd form WEBUI!\n");
zte_sntp_process_for_webui();
} else {
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_thread_process, cmd form background!\n");
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_thread_process, cmd form background!\n");
zte_sntp_process_for_background();
}
} else {
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_thread_process, cmd form background!\n");
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_thread_process, cmd form background!\n");
zte_sntp_process_for_background();
}
}
@@ -1113,7 +1113,7 @@
tmp->src_id = stMsg->src_id;
list_add_tail(&tmp->list, &wait_sync_sntp);
- slog(MISC_PRINT, SLOG_ERR, "[SNTP] zte_sntp_register_id = %d\n", stMsg->src_id);
+ slog(MISC_PRINT, SLOG_ERR, "[SNTP] sntp_register_id = %d\n", stMsg->src_id);
sc_cfg_get(SNTP_PROCESS_RESULT, result_buf, sizeof(result_buf));
if (strcmp(result_buf, "success") == 0) {
@@ -1125,14 +1125,14 @@
void zte_sntp_success_notify()
{
struct sntp_sync_queue *temp = NULL;
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] enter zte_sntp_success_notify!\n");
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] enter sntp_success_notify!\n");
//¿Ï¶¨´æÔÚÐèҪ֪ͨµÄÄ£¿é
ipc_send_message(MODULE_ID_SNTP, MODULE_ID_RTC_SERVICE, MSG_CMD_SNTP_SUCCESS, 0, NULL, 0);
//²»Ò»¶¨´æÔÚͨ¹ý×¢²áÐèҪ֪ͨµÄÄ£¿é
list_for_each_entry(temp, &wait_sync_sntp, list) {
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_notify_process_id = %d\n", temp->src_id);
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_notify_process_id = %d\n", temp->src_id);
ipc_send_message(MODULE_ID_SNTP, temp->src_id, MSG_CMD_SNTP_SUCCESS, 0, NULL, 0);
}
}
@@ -1143,7 +1143,7 @@
struct sntp_sync_queue *temp1 = NULL;
list_for_each_entry_safe(temp, temp1, &wait_sync_sntp, list) {
if (temp->src_id == stMsg->src_id) {
- slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] zte_sntp_unregister_id = %d\n", temp->src_id);
+ slog(MISC_PRINT, SLOG_DEBUG, "[SNTP] sntp_unregister_id = %d\n", temp->src_id);
list_del(&temp->list);
free(temp);
break;
@@ -1371,7 +1371,7 @@
slog(MISC_PRINT, SLOG_DEBUG,"[SNTP]MSG_CMD_SNTP_SET_TIME\n");
sntp_set_time(&stMsg);
} else if (stMsg.usMsgCmd == MSG_CMD_SNTP_START) {
- slog(MISC_PRINT, SLOG_DEBUG,"[SNTP]zte_sntp_start\n");
+ slog(MISC_PRINT, SLOG_DEBUG,"[SNTP]sntp_start\n");
g_sntp_cmd_from = 0;
zte_sntp_start();
} else if (stMsg.usMsgCmd == MSG_CMD_SNTP_REGISTER) {
diff --git a/ap/app/zte_comm/wlan/src/wlan-station.c b/ap/app/zte_comm/wlan/src/wlan-station.c
index 02e360a..a235195 100755
--- a/ap/app/zte_comm/wlan/src/wlan-station.c
+++ b/ap/app/zte_comm/wlan/src/wlan-station.c
@@ -301,7 +301,7 @@
{
if (is_up == TRUE) {
sc_cfg_set ("WAN_MODE", "WIFI"); //usb,ppp,wifi
- /*printf("[wlan-station]calling zte_ipv4.sh linkup\n");
+ /*printf("[wlan-station]calling ipv4.sh linkup\n");
system("zte_ipv4.sh \"linkup\"");
printf("[wlan-station]calling internet.sh\n");
system("internet.sh");
diff --git a/ap/app/zte_comm/wlan/src/wlan_main.c b/ap/app/zte_comm/wlan/src/wlan_main.c
index 821e26d..8aadff9 100755
--- a/ap/app/zte_comm/wlan/src/wlan_main.c
+++ b/ap/app/zte_comm/wlan/src/wlan_main.c
@@ -156,7 +156,7 @@
system (QRCODE_SCRIPT_DIR"/zte_qrcode_create.sh multi_wifi_create");
#endif
write_status (QRSTATUS, "1");
- wf_log ("zte_qrcode_create.sh wifi_create");
+ wf_log ("qrcode_create.sh wifi_create");
#endif
}
diff --git a/ap/app/zte_comm/zte_drv_ctrl/serial/zte_drv_serial_ctrl.c b/ap/app/zte_comm/zte_drv_ctrl/serial/zte_drv_serial_ctrl.c
index 34afe44..4bf4fe9 100755
--- a/ap/app/zte_comm/zte_drv_ctrl/serial/zte_drv_serial_ctrl.c
+++ b/ap/app/zte_comm/zte_drv_ctrl/serial/zte_drv_serial_ctrl.c
@@ -642,7 +642,7 @@
{
zUP_uart_num = 3;
}
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng zUP_Uart_num:%d\n",zUP_uart_num);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng zUP_Uart_num:%d\n",zUP_uart_num);
return zUP_uart_num;
}
@@ -672,7 +672,7 @@
flow_control = 2;
}
}
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng uart portnum:%d,zUP_Uart_Flowcontrol uart flow control:%d\n",i,flow_control);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng uart portnum:%d,zUP_Uart_Flowcontrol uart flow control:%d\n",i,flow_control);
return flow_control;
}
@@ -695,7 +695,7 @@
writefile(uart_wakeup_path,"1",1);
}
}
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng uart portnum:%d,zUP_Uart_wakeup:%d\n",i,wakeup_enable);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng uart portnum:%d,zUP_Uart_wakeup:%d\n",i,wakeup_enable);
return;
}
@@ -1037,7 +1037,7 @@
{
selfadaptionport_uart_num = 3;
}
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng get_selfadaptionport_num:%d port:%s\n",selfadaptionport_uart_num,g_selfAdaptionPort);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng get_selfadaptionport_num:%d port:%s\n",selfadaptionport_uart_num,g_selfAdaptionPort);
return selfadaptionport_uart_num;
@@ -1068,7 +1068,7 @@
flow_control = 2;
}
}
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng uart portnum:%d,selfadaptionport_flowcontrol uart flow control:%d\n",i,flow_control);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng uart portnum:%d,selfadaptionport_flowcontrol uart flow control:%d\n",i,flow_control);
return flow_control;
}
@@ -1091,7 +1091,7 @@
writefile(uart_wakeup_path,"1",1);
}
}
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng uart portnum:%d,selfadaptionport_wakeup:%d\n",i,wakeup_enable);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng uart portnum:%d,selfadaptionport_wakeup:%d\n",i,wakeup_enable);
}
void com_read_proc()
@@ -1434,19 +1434,19 @@
snprintf(uart_path, sizeof(uart_path) , "%s%d%s", Uart_Path, i, CtsRts_EN);
writefile(uart_path,"1",1);
notify_atctl_open_atport(uart_control_nam,1);
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng uart:%d,enable ctsrts\n",i);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng uart:%d,enable ctsrts\n",i);
}else if((uart_software16&0x1) == 1){
notify_atctl_open_atport(uart_control_nam,2);
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng uart:%d, enable software control\n",i);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng uart:%d, enable software control\n",i);
}else{
notify_atctl_open_atport(uart_control_nam,0);
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng uart:%d,no flow control\n",i);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng uart:%d,no flow control\n",i);
}
if((uart_wakeup16&0x1) == 1){
snprintf(uart_path, sizeof(uart_path) , "%s%d%s", Uart_Path, i, Wakeup_EN);
writefile(uart_path,"1",1);
//notify_atctl_open_atport(uart_control_nam,1);
- slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"zte_drvcommng uart:%d,wakeup enable\n",i);
+ slog(DRVCOMMNG_PRINT,SLOG_DEBUG,"drvcommng uart:%d,wakeup enable\n",i);
}
}
}
diff --git a/ap/app/zte_comm/zte_drv_ctrl/usb/zte_drv_usb_ctrl.c b/ap/app/zte_comm/zte_drv_ctrl/usb/zte_drv_usb_ctrl.c
index d390705..d266663 100755
--- a/ap/app/zte_comm/zte_drv_ctrl/usb/zte_drv_usb_ctrl.c
+++ b/ap/app/zte_comm/zte_drv_ctrl/usb/zte_drv_usb_ctrl.c
@@ -190,7 +190,7 @@
{
rtv = usbcfg_send_message( MSG_CMD_USBFLAG_STAT_REQ, 2, "3");//by usbcfg 0045002184
}
- slog(USBCFGMNG_PRINT,SLOG_NORMAL,"ZTE usbcfg usb_sendUsbOperateRlt send state:%d msg reult: %d \n",state,rtv);
+ slog(USBCFGMNG_PRINT,SLOG_NORMAL,"usbcfg usb_sendUsbOperateRlt send state:%d msg reult: %d \n",state,rtv);
}
static void usb_enable()
{
@@ -1527,7 +1527,7 @@
{
g_USBRefNV.nvModeType = USB_MODETYPE_AMT;
writefile(USB_ENUM_MODE_PATH, "3", 1);
- slog(USBCFGMNG_PRINT,SLOG_DEBUG, "ZTE ### usbCfgMng usb_NvGetUsbModeType#### ver_mode amt\n");
+ slog(USBCFGMNG_PRINT,SLOG_DEBUG, "### usbCfgMng usb_NvGetUsbModeType#### ver_mode amt\n");
return;
}
@@ -1535,7 +1535,7 @@
{
g_USBRefNV.nvModeType = USB_MODETYPE_FACTORY;
writefile(USB_ENUM_MODE_PATH, "2", 1);
- slog(USBCFGMNG_PRINT,SLOG_DEBUG, "ZTE ### usbCfgMng usb_NvGetUsbModeType#### ver_mode factory\n");
+ slog(USBCFGMNG_PRINT,SLOG_DEBUG, "### usbCfgMng usb_NvGetUsbModeType#### ver_mode factory\n");
return;
}
@@ -1569,7 +1569,7 @@
g_USBRefNV.nvModeType = USB_MODETYPE_USER;
writefile(USB_ENUM_MODE_PATH, "1", 1);
- slog(USBCFGMNG_PRINT,SLOG_ERR, "ZTE ### usbCfgMng usb_NvGetUsbModeType error\n");
+ slog(USBCFGMNG_PRINT,SLOG_ERR, "### usbCfgMng usb_NvGetUsbModeType error\n");
}
slog(USBCFGMNG_PRINT,SLOG_DEBUG, "[usbCfgMng] usb_NvGetUsbModeType#### g_USBRefNV.nvModeType =%d\n", g_USBRefNV.nvModeType);
diff --git a/ap/app/zte_comm/zte_mainctrl/net_other.c b/ap/app/zte_comm/zte_mainctrl/net_other.c
index fd80488..fdebb09 100755
--- a/ap/app/zte_comm/zte_mainctrl/net_other.c
+++ b/ap/app/zte_comm/zte_mainctrl/net_other.c
@@ -877,7 +877,6 @@
//add by gongxuanhui 03/13/2014
void zte_router_MTU_set(void)
{
-
char cmd[1024] = {0};
char mtu[128] = {0};
int mtu_int;
@@ -894,7 +893,7 @@
return;
}
- if ((mtu_int = atoi(mtu)) < 1280 || mtu_int > 1500) {
+ if ((mtu_int = atoi(mtu)) < 572 || mtu_int > 1500) {
slog(NET_PRINT, SLOG_ERR, "Warning: mtu value is illgality\n");
return;
}
@@ -932,7 +931,7 @@
//add by gongxuanhui 03/13/2014
void zte_router_mtu_set_process(void)
{
- //zte_router_MTU_set();
+ zte_router_MTU_set();
zte_router_init();
}
diff --git a/ap/app/zte_comm/zte_mainctrl/net_xfrm.c b/ap/app/zte_comm/zte_mainctrl/net_xfrm.c
index f700b09..87cba76 100755
--- a/ap/app/zte_comm/zte_mainctrl/net_xfrm.c
+++ b/ap/app/zte_comm/zte_mainctrl/net_xfrm.c
@@ -7,6 +7,17 @@
//static struct url_list old_url_list;
extern int g_limit_time_flag;
+#if (MODEM_TYPE == vehicle_dc)
+struct list_head g_firewall_ip;
+
+struct firewall_ip_queue {
+ struct list_head list;
+ char ip[ZTE_ROUTER_IP_ADDR_LEN];
+};
+
+#define FIREWALL_CHAIN "FIREWALL"
+
+#endif
/******************************************************
* Func: system_cmd_ex
@@ -82,7 +93,7 @@
int zte_router_nvconfig_read(char *i_item_name)
{
if (NULL == i_item_name) {
- slog(NET_PRINT, SLOG_ERR, "[zte_router_nvconfig_read] , point null\n");
+ slog(NET_PRINT, SLOG_ERR, "[router_nvconfig_read] , point null\n");
return 0;
}
memset(g_router_nvconfig_buf, 0, sizeof(g_router_nvconfig_buf));
@@ -276,7 +287,7 @@
char path_tmp[50] = {0};
int len = 0;
- slog(NET_PRINT, SLOG_NORMAL, "zte_router_ping_diagnostics start! \n");
+ slog(NET_PRINT, SLOG_NORMAL, "router_ping_diagnostics start! \n");
sc_cfg_get("ping_diag_addr", ip_address, sizeof(ip_address));
sc_cfg_get("ping_repetition_count", repetition_count, sizeof(repetition_count));
@@ -285,7 +296,7 @@
sc_cfg_get("ping_diag_interface", diag_interface, sizeof(diag_interface));
if (!isIpValid(ip_address) || (0 == strlen(ip_address))) {
- slog(NET_PRINT, SLOG_ERR, "Error: zte_router_ping_diagnostics, %s is not a valid IP address", ip_address);
+ slog(NET_PRINT, SLOG_ERR, "Error: router_ping_diagnostics, %s is not a valid IP address", ip_address);
return;
}
@@ -294,7 +305,7 @@
//ɾ³ý֮ǰ´æ´¢Îļþ
sc_cfg_get("path_tmp", path_tmp, sizeof(path_tmp));
sprintf(cmd, "rm %s/ping_diagnostics.txt", path_tmp);
- slog(NET_PRINT, SLOG_NORMAL, "zte_router_ping_diagnostics rm_cmd:%s \n", cmd);
+ slog(NET_PRINT, SLOG_NORMAL, "router_ping_diagnostics rm_cmd:%s \n", cmd);
system_cmd_ex(cmd);
//ÖØÐÂping
@@ -321,10 +332,10 @@
}
len = strlen(cmd);
- slog(NET_PRINT, SLOG_DEBUG, "zte_router_ping_diagnostics cmd:%s, len:%d \n", cmd, len);
+ slog(NET_PRINT, SLOG_DEBUG, "router_ping_diagnostics cmd:%s, len:%d \n", cmd, len);
sprintf(cmd + len, "%s > %s/ping_diagnostics.txt & ", ip_address, path_tmp);
- slog(NET_PRINT, SLOG_NORMAL, "zte_router_ping_diagnostics ping_cmd:%s \n", cmd);
+ slog(NET_PRINT, SLOG_NORMAL, "router_ping_diagnostics ping_cmd:%s \n", cmd);
system_cmd_ex(cmd);
}
@@ -459,7 +470,7 @@
/*begin by zhangyuelong10100551 2010.12.21*/
if (NULL == buf) {
- slog(NET_PRINT, SLOG_ERR, "[ERROR]zte_make_filter_rules_ipv6: buf NULL");
+ slog(NET_PRINT, SLOG_ERR, "[ERROR]make_filter_rules_ipv6: buf NULL");
return;
}
/*end by zhangyuelong10100551 2010.12.21*/
@@ -542,7 +553,7 @@
rc = snprintf(pos, len - rc, "-j ACCEPT");
break;
default:
- slog(NET_PRINT, SLOG_ERR, "[ERROR]zte_make_filter_rules_v6: unknown action");
+ slog(NET_PRINT, SLOG_ERR, "[ERROR]make_filter_rules_v6: unknown action");
break;
}
} /* zte_make_filter_rules_v6() */
@@ -1301,7 +1312,7 @@
continue;
}
zte_iptables_port_map_run(PortMapRules);
- slog(NET_PRINT, SLOG_NORMAL, "zte_iptables_port_map_all_run %s: %s", PortMapRules_x, PortMapRules);
+ slog(NET_PRINT, SLOG_NORMAL, "iptables_port_map_all_run %s: %s", PortMapRules_x, PortMapRules);
}
}
@@ -1345,7 +1356,7 @@
char *pos = buf;
if (NULL == buf) {
- slog(NET_PRINT, SLOG_ERR, "[zte_iptables_make_filter_rule_v6]: buf NULL");
+ slog(NET_PRINT, SLOG_ERR, "[iptables_make_filter_rule_v6]: buf NULL");
return;
}
@@ -1415,7 +1426,7 @@
rc = snprintf(pos, len - rc, "-j ACCEPT");
break;
default:
- slog(NET_PRINT, SLOG_ERR, "[zte_iptables_make_filter_rule_v6]: unknown action", "");
+ slog(NET_PRINT, SLOG_ERR, "[iptables_make_filter_rule_v6]: unknown action", "");
break;
}
} /* zte_iptables_make_filter_rule_v6() */
@@ -1665,6 +1676,126 @@
system_cmd_ex("vpn_pthr_contrl.sh");
slog(NET_PRINT, SLOG_NORMAL, "end alg_control_fun");
}
+
+#if (MODEM_TYPE == vehicle_dc)
+void notify_list_firewall_add(struct list_head *head, char *ip)
+{
+ struct firewall_ip_queue *tmp = NULL, *ip_queue = NULL;
+
+ slog(NET_PRINT, SLOG_DEBUG, "notify_list_add_firewall start, id:%s\n", ip);
+
+ list_for_each_entry(tmp, head, list) {
+ //ÒѾ¼Ç¼¹ý
+ if (strcmp(tmp->ip, ip) == 0) {
+ slog(NET_PRINT, SLOG_ERR, "notify_list_add_firewall ip:%s alread existed! \n", ip);
+ return;
+ }
+ }
+
+ ip_queue = malloc(sizeof(struct firewall_ip_queue));
+ if (ip_queue == NULL) {
+ slog(NET_PRINT, SLOG_ERR, "notify_list_add_firewall ip:%s malloc failed! \n", ip);
+ return;
+ }
+
+ INIT_LIST_HEAD(&ip_queue->list);
+ memset(ip_queue->ip, 0, ZTE_ROUTER_IP_ADDR_LEN);
+ strncpy(ip_queue->ip, ip, strlen(ip));
+ list_add_tail(&ip_queue->list, head);
+
+ slog(NET_PRINT, SLOG_DEBUG, "notify_list_add_firewall ip:%s success\n", ip);
+}
+
+//·¢ËÍÏûÏ¢¸øÄ£¿é£¬ÐèÒª´ËÄ£¿é½øÐлظ´
+void notify_list_firewall_del(struct list_head *head, char *ip)
+{
+ struct firewall_ip_queue *tmp = NULL, *tmp2 = NULL, *ip_queue = NULL;
+
+ slog(NET_PRINT, SLOG_DEBUG, "notify_list_del_firewall start, ip:%s!!!\n", ip);
+
+ list_for_each_entry_safe(tmp, tmp2, head, list) {
+ if (strcmp(tmp->ip, ip) == 0) {
+ slog(NET_PRINT, SLOG_NORMAL, "notify_list_del_firewall ip:%s\n", ip);
+ list_del(&tmp->list);
+ free(tmp);
+ break;
+ }
+ }
+
+ slog(NET_PRINT, SLOG_NORMAL, "notify_list_del_firewall success !!!\n");
+}
+
+void notify_list_firewall_cleanup(struct list_head *head)
+{
+ struct firewall_ip_queue *tmp = NULL, *tmp2 = NULL;
+
+ list_for_each_entry_safe(tmp, tmp2, head, list) {
+ slog(NET_PRINT, SLOG_NORMAL, "notify_list_firewall_cleanup ip:%s\n", tmp->ip);
+ list_del(&tmp->list);
+ free(tmp);
+ }
+}
+
+zte_iptables_firewall_rule_run(struct list_head *head)
+{
+ int i = 0;
+ char nv_name[ROUTER_NV_ITEM_VALUE_MAX_LEN] = {0};
+ char cmd[1024] = {0};
+ struct firewall_ip_queue *tmp = NULL;
+
+ /*flush Firewall chain*/
+ memset(cmd, 0, sizeof(cmd));
+ sprintf(cmd, "iptables -F %s %s", FIREWALL_CHAIN, FMT_ECHO_IPTABLES_CMD);
+ system(cmd);
+
+ list_for_each_entry(tmp, head, list) {
+ memset(cmd, 0, sizeof(cmd));
+ sprintf(cmd, "iptables -A %s -s %s -j DROP", FIREWALL_CHAIN, tmp->ip);
+ system(cmd);
+ //slog(NET_PRINT, SLOG_NORMAL, "zte_iptables_firewall_rule_run cmd:%s\n", cmd);
+
+ //sprintf(nv_name, "Firewall_IP-%d", i++);
+ //sc_cfg_set(nv_name, tmp->ip);
+ }
+}
+
+void zte_iptables_firewall_add(char *ip)
+{
+ if (!ip)
+ return;
+
+ notify_list_firewall_add(&g_firewall_ip, ip);
+ zte_iptables_firewall_rule_run(&g_firewall_ip);
+}
+
+void zte_iptables_firewall_del(char *ip)
+{
+ if (!ip)
+ return;
+
+ notify_list_firewall_del(&g_firewall_ip, ip);
+ zte_iptables_firewall_rule_run(&g_firewall_ip);
+}
+
+void zte_iptables_firewall_cleanup(void)
+{
+ notify_list_firewall_cleanup(&g_firewall_ip);
+ zte_iptables_firewall_rule_run(&g_firewall_ip);
+}
+
+void zte_firewall_init(void)
+{
+ char cmd[1024] = {0};
+
+ sprintf(cmd, "iptables -N %s", FIREWALL_CHAIN);
+ system(cmd);
+
+ memset(cmd, 0, sizeof(cmd));
+ sprintf(cmd, "iptables -A INPUT -j %s", FIREWALL_CHAIN);
+ system(cmd);
+}
+#endif
+
void zte_router_init(void)
{
slog(NET_PRINT, SLOG_NORMAL, "===============init firewall=================== \n");
@@ -1677,14 +1808,18 @@
memset(defwan_rel, 0, sizeof(defwan_rel));
sc_cfg_get("default_wan_rel", defwan_rel, sizeof(defwan_rel));
- //ZTE_LOG(LOG_DEBUG, "zte_router_init -> defwan_rel:[%s]", defwan_rel);
+ //ZTE_LOG(LOG_DEBUG, "router_init -> defwan_rel:[%s]", defwan_rel);
memset(defwan6_rel, 0, sizeof(defwan6_rel));
sc_cfg_get("default_wan6_rel", defwan6_rel, sizeof(defwan6_rel));
zte_iptables_all_filter_run();
zte_iptables_all_nat_run();
- slog(NET_PRINT, SLOG_NORMAL, "zte_router_init end \n");
+#if (MODEM_TYPE == vehicle_dc)
+ zte_firewall_init();
+#endif
+
+ slog(NET_PRINT, SLOG_NORMAL, "router_init end \n");
}
diff --git a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
index 5357543..af06226 100755
--- a/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
+++ b/ap/app/zte_comm/zte_mainctrl/netdev_proc.c
@@ -581,6 +581,13 @@
pclose(fpv4);
if(fpv6 != NULL)
pclose(fpv6);
+#ifdef USE_CAP_SUPPORT
+ {
+ char cmd[64] = {0};
+ snprintf(cmd, sizeof(cmd),"ifconfig br%d -arp", actinfo->c_id);
+ system_cmd_ex(cmd);
+ }
+#endif
}
void net_br_deact_quick(int c_id, unsigned char ip46flag)
@@ -722,8 +729,8 @@
if(pri < 0 || pri > 65535)
return;
if (actinfo->pdp_type == PDP_NORMAL) {
- if(default_route_check()){
- sc_cfg_get("default_wan_name", defwan_if, sizeof(defwan_if));
+ sc_cfg_get("default_wan_name", defwan_if, sizeof(defwan_if));
+ if(strlen(defwan_if) > 0 && default_route_check()){
if(strncmp(defwan_if, wifi_wan, strlen(wifi_wan)) == 0){
sc_cfg_get("wifiwan_priority", wan_pri, sizeof(wan_pri));
defwan_pri = atoi(wan_pri);
@@ -735,6 +742,7 @@
strcpy(defwan_dev_name, eth_wan);
}
}
+ slog(NET_PRINT, SLOG_NORMAL, "act pri=%d old_defwan_pri=%d!\n", pri, defwan_pri);
if (pri > defwan_pri) {
defwan_pri = pri;
snprintf(defwan_if, sizeof(defwan_if), "%s%d", ps_wan, actinfo->c_id);
@@ -801,6 +809,10 @@
snprintf(buffer, sizeof(buffer), "iptables -t nat -A POSTROUTING -o %s -j MASQUERADE", defwan_real);
system_cmd_ex(buffer);
}
+
+ net_write_file("/etc/resolv.conf", "", 0);
+ snprintf(buffer, sizeof(buffer), g_dns_conf, "127.0.0.1");
+ net_write_file("/etc/resolv.conf", buffer, strlen(buffer));
}
if(actinfo->act_info.ip46flag & V6_VALID){
char dhcp6s_conf[64] = {0};
@@ -820,6 +832,7 @@
snprintf(ndp_log, sizeof(ndp_log), "%s/ndp_%s.log", path, defwan_real);
net_write_file("/proc/sys/net/ipv6/conf/all/forwarding", "0", 1);
+ system_cmd_ex("ip -6 route del default");
snprintf(buffer, sizeof(buffer), "ip -6 route add default dev %s", defwan_real);
system_cmd_ex(buffer);
snprintf(buffer, sizeof(buffer), "ip -6 addr add %s/64 dev br0", br_ip6);
@@ -887,10 +900,6 @@
system_cmd_ex("killall -9 dnsmasq");
snprintf(dns_path, sizeof(dns_path), "%s/dnsmasq.conf", path);
net_write_file(dns_path, "", 0);
-
- net_write_file("/etc/resolv.conf", "", 0);
- snprintf(buffer, sizeof(buffer), g_dns_conf, "127.0.0.1");
- net_write_file("/etc/resolv.conf", buffer, strlen(buffer));
if(actinfo->act_info.ip46flag & V4_VALID) {
unsigned int dns1 = 0;
@@ -1092,8 +1101,14 @@
snprintf(cmd, sizeof(cmd),"tc_tbf.sh down %d",c_id);
system_cmd_ex(cmd);
}
- net_write_file("/etc/resolv.conf", "", 0);
+ {
+ char cid[20] = {0};
+ sc_cfg_get("default_cid", cid, sizeof(cid));
+ if(c_id == atoi(cid))
+ sc_cfg_set("default_cid", "");
+ }
if(strcmp(default_wan_name, wan_name) == 0 || strcmp(default_wan6_name, wan_name) == 0){
+ net_write_file("/etc/resolv.conf", "", 0);
check_wan_change(ip46flag);
}
}
@@ -1132,16 +1147,21 @@
if (actinfo->act_info.ip46flag == V6_VALID || actinfo->act_info.ip46flag == V46_VALID) {
prefix_len = syscall(__NR_get_ipv6_prefix,(unsigned char)actinfo->c_id, prefix);
slog(NET_PRINT, SLOG_NORMAL, "pdp_wan_config prefix=%s len=%d \n", prefix, prefix_len);
+ char nv_name1[NV_NAME_LEN] = {0};
+ char nv_name2[NV_NAME_LEN] = {0};
+
+ snprintf(nv_name1, sizeof(nv_name1), "%s%d_ipv6_prefix_info", ps_wan, actinfo->c_id);
+ snprintf(nv_name2, sizeof(nv_name2), "%s%d_ipv6_prefix_len", ps_wan, actinfo->c_id);
if(prefix_len > 0)
{
- char nv_name[NV_NAME_LEN] = {0};
char len_s[4] = {0};
-
- snprintf(nv_name, sizeof(nv_name), "%s%d_ipv6_prefix_info", ps_wan, actinfo->c_id);
- sc_cfg_set(nv_name, prefix);
+
snprintf(len_s, sizeof(len_s), "%d", prefix_len);
- snprintf(nv_name, sizeof(nv_name), "%s%d_ipv6_prefix_len", ps_wan, actinfo->c_id);
- sc_cfg_set(nv_name, len_s);
+ sc_cfg_set(nv_name1, prefix);
+ sc_cfg_set(nv_name2, len_s);
+ }else{
+ sc_cfg_set(nv_name1, "");
+ sc_cfg_set(nv_name2, "");
}
}
//¶ÔÓÚatserver´¥·¢µÄPDP¼¤»î£¬ÊÇÓÃÓÚÆÕͨÉÏÍâÍøÒµÎñµÄ£¬´æÔÚNATת»»
@@ -1230,7 +1250,7 @@
return 0;
}
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_pdp_deact_proc start!cid=%d,ip46flag=%u\n", c_id, ip46flag);
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_pdp_deact_proc start!cid=%d,ip46flag=%u\n", c_id, ip46flag);
sprintf(pdp_mode_nv, "pdp_mode%d", c_id);
sc_cfg_get(pdp_mode_nv, pdp_mode, sizeof(pdp_mode));
@@ -1259,7 +1279,7 @@
}
sprintf(psext_state, "ps_ext%d_pdpstate", c_id);
sc_cfg_set(psext_state, "dead");
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_pdp_deact_proc success!\n");
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_pdp_deact_proc success!\n");
net_sendmsg_2_atctl(c_id, ip46flag, MSG_CMD_LINKDOWN_END);
@@ -1282,7 +1302,7 @@
sc_cfg_set("ppp_pdpstate", "dead");
//}
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_pdp_deact_proc success!\n");
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_pdp_deact_proc success!\n");
net_sendmsg_2_atctl(c_id, ip46flag, MSG_CMD_LINKDOWN_END);
return 1;
@@ -1308,7 +1328,7 @@
zxic_system(cmd);
}
}
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_pdp_deact_proc success!\n");
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_pdp_deact_proc success!\n");
net_sendmsg_2_atctl(c_id, ip46flag, MSG_CMD_LINKDOWN_END);
return 1;
@@ -1332,7 +1352,7 @@
char swport[NV_NAME_LEN] = {0};
char cmd[100] = {0};
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_netdev_connect_internet start! netdev_id=%u\n", netdev_id);
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_netdev_connect_internet start! netdev_id=%u\n", netdev_id);
if (netdev_id == RJ45_WAN_DEV) {
ethwan_id = netdev_id;
pppoe_encrypt_code();
@@ -1350,7 +1370,7 @@
softap_assert("netdev_id=%d error", netdev_id);
return 0;
}
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_netdev_connect_internet success!\n");
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_netdev_connect_internet success!\n");
closelog();
return 1;
}
@@ -1370,7 +1390,7 @@
char wbwanv6_enable[NV_NAME_LEN] = {0};
sc_cfg_get("wbwanv6_enable", wbwanv6_enable, sizeof(wbwanv6_enable));
openlog("netapi", LOG_CONS | LOG_PID, LOG_DAEMON);
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_netdev_disconnect_internet start! netdev_id=%u\n", netdev_id);
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_netdev_disconnect_internet start! netdev_id=%u\n", netdev_id);
if (netdev_id == RJ45_WAN_DEV) {
ethwan_id = netdev_id;
//msg_timedel();
@@ -1411,7 +1431,7 @@
softap_assert("netdev_id=%d error", netdev_id);
return 0;
}
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_netdev_disconnect_internet success!\n");
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_netdev_disconnect_internet success!\n");
closelog();
return 1;
}
@@ -1426,7 +1446,7 @@
int net_netdev_plugin_proc(unsigned char netdev_id)
{
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_netdev_plugin_proc start! netdev_id=%u\n", netdev_id);
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_netdev_plugin_proc start! netdev_id=%u\n", netdev_id);
openlog("netapi", LOG_CONS | LOG_PID, LOG_DAEMON);
//USB½ö´æÔÚÓÚÄÚÍøÖÐ
if (netdev_id == USB_LAN_DEV) {
@@ -1465,7 +1485,7 @@
} else
slog(NET_PRINT, SLOG_NORMAL, "plugin netdev_id error!!! : netdev_id=%u\n", netdev_id);
//assert(0);
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_netdev_plugin_proc success!\n");
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_netdev_plugin_proc success!\n");
closelog();
return 1;
}
@@ -1484,7 +1504,7 @@
char wbwanv6_enable[NV_NAME_LEN] = {0};
sc_cfg_get("wbwanv6_enable", wbwanv6_enable, sizeof(wbwanv6_enable));
openlog("netapi", LOG_CONS | LOG_PID, LOG_DAEMON);
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_netdev_plugout_proc start! netdev_id=%u\n", netdev_id);
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_netdev_plugout_proc start! netdev_id=%u\n", netdev_id);
//ÄÚÍøÇŵãÈ¥³ý
if (netdev_id == USB_LAN_DEV) {
system("landev_updown.sh \"usblan\" \"down\"");
@@ -1533,7 +1553,7 @@
//memset(cmd, 0, sizeof(cmd));
//sprintf(cmd, "ifconfig %s down" , wan_if);
//system(cmd);
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_netdev_plugout_proc success!\n");
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_netdev_plugout_proc success!\n");
closelog();
return 1;
}
@@ -1554,7 +1574,7 @@
char down[NV_NAME_LEN] = {0};
char at_str[32] = {0};
- slog(NET_PRINT, SLOG_NORMAL, "zte_mainctrl:net_tc_control start! c_id:%d, down:%u, up:%u\n \n", tcinfo->c_id, tcinfo->tc_downlink, tcinfo->tc_uplink);
+ slog(NET_PRINT, SLOG_NORMAL, "mainctrl:net_tc_control start! c_id:%d, down:%u, up:%u\n \n", tcinfo->c_id, tcinfo->tc_downlink, tcinfo->tc_uplink);
sc_cfg_set("tc_enable", "1");
diff --git a/ap/app/zte_comm/zte_mainctrl/router_msg_proxy.c b/ap/app/zte_comm/zte_mainctrl/router_msg_proxy.c
index 0d31e68..1ff4d15 100755
--- a/ap/app/zte_comm/zte_mainctrl/router_msg_proxy.c
+++ b/ap/app/zte_comm/zte_mainctrl/router_msg_proxy.c
@@ -15,7 +15,7 @@
char wan_opt[64] = {0};
char tmp[64] = {0};
if (argc != 2 && argc != 3) {
- slog(NET_PRINT, SLOG_ERR, "ZTE_wanctl parameter num error ");
+ slog(NET_PRINT, SLOG_ERR, "wanctl parameter num error ");
return -1;
}
//strcpy(wan_name,argv[1]); //get wan name:pswan;usbwan;ethwan;wifiwan
diff --git a/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.c b/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.c
index 1200e45..2fbbaf2 100755
--- a/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.c
+++ b/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.c
@@ -28,6 +28,9 @@
struct list_head g_mainctrl_reset_notify;
struct list_head g_mainctrl_poweroff_notify;
struct list_head g_mainctrl_restart_notify;
+#if (MODEM_TYPE == vehicle_dc)
+extern struct list_head g_firewall_ip;
+#endif
//Èç¹ûreset·¢Æð·½²»ÐèÒªÉ豸×öreboot£¬ÔòÖ÷¿ØÍê³Éresetºó·¢ËÍÏûÏ¢¸øËü£¬±¾Éí²»ÔÙ×öÈÎºÎÆäËû²Ù×÷
static int g_restart_from = 0;
@@ -973,6 +976,7 @@
notify_list_add(&g_mainctrl_reset_notify, MODULE_ID_RTC_SERVICE);
}
+#if (MODEM_TYPE != vehicle_dc)
//¸øSMS·¢ÏûÏ¢£¬ÇÒÐèÒªÊÕµ½»Ø¸´
if (ipc_send_message(MODULE_ID_MAIN_CTRL, MODULE_ID_SMS, MSG_CMD_RESET_NOTIFY, 0, NULL, 0) == 0) {
slog(NET_PRINT, SLOG_DEBUG, "reset_msg_process: send msg to sms ok!!!\n");
@@ -998,6 +1002,7 @@
notify_list_add(&g_mainctrl_reset_notify, MODULE_ID_MMI);
}
}
+#endif
//ÒÔÉÏÓ¦Óò»´æÔÚ£¬Ö÷¿Ø×ßÓ¦´ðÁ÷³Ì
if (list_empty(&g_mainctrl_reset_notify)) {
@@ -1066,10 +1071,12 @@
}
#endif
+#if (MODEM_TYPE != vehicle_dc)
//¸ødata·¢ÏûÏ¢£¬²»ÐèÒªÊÕµ½»Ø¸´
if (ipc_send_message(MODULE_ID_MAIN_CTRL, MODULE_ID_FLUXSTAT, MSG_CMD_DATA_END, 0, NULL, 0) != 0) {
slog(NET_PRINT, SLOG_ERR, "send msg to data fail!!!\n");
}
+#endif
//·Ç¼Ù¹Ø»úʱ¸øRTC·¢ÏûÏ¢£¬ÇÒÐèÒªÊÕµ½»Ø¸´
if (!blc_is_fakepoweroff()) {
@@ -1079,6 +1086,7 @@
}
}
+#if (MODEM_TYPE != vehicle_dc)
//¸øMMI·¢ÏûÏ¢£¬ÇÒÐèÒªÊÕµ½»Ø¸´
if (g_poweroff_from == 0) {
if (ipc_send_message(MODULE_ID_MAIN_CTRL, MODULE_ID_MMI, MSG_CMD_POWEROFF_NOTIFY, 0, NULL, 0) == 0) {
@@ -1086,6 +1094,7 @@
notify_list_add(&g_mainctrl_poweroff_notify, MODULE_ID_MMI);
}
}
+#endif
//ÒÔÉÏÓ¦Óò»´æÔÚ£¬Ö÷¿Ø×ßÓ¦´ðÁ÷³Ì
if (list_empty(&g_mainctrl_poweroff_notify)) {
@@ -1102,10 +1111,12 @@
{
slog(NET_PRINT, SLOG_NORMAL, "restart_msg_process !\n");
+#if (MODEM_TYPE != vehicle_dc)
//¸ødata·¢ÏûÏ¢£¬²»ÐèÒªÊÕµ½»Ø¸´
if (ipc_send_message(MODULE_ID_MAIN_CTRL, MODULE_ID_FLUXSTAT, MSG_CMD_DATA_END, 0, NULL, 0) != 0) {
slog(NET_PRINT, SLOG_ERR, "send msg to data fail!!!\n");
}
+#endif
//¸øRTC·¢ÏûÏ¢£¬ÇÒÐèÒªÊÕµ½»Ø¸´
if (rtc_timer_del_all(MODULE_ID_MAIN_CTRL, MSG_CMD_RESTART_RSP) == 0) {
@@ -1113,6 +1124,7 @@
notify_list_add(&g_mainctrl_restart_notify, MODULE_ID_RTC_SERVICE);
}
+#if (MODEM_TYPE != vehicle_dc)
//¸øMMI·¢ÏûÏ¢£¬ÇÒÐèÒªÊÕµ½»Ø¸´
if (g_restart_subaction == Operate_By_SOC) {
if (ipc_send_message(MODULE_ID_MAIN_CTRL, MODULE_ID_MMI, MSG_CMD_RESTART_NOTIFY, 0, NULL, 0) == 0) {
@@ -1120,6 +1132,7 @@
notify_list_add(&g_mainctrl_restart_notify, MODULE_ID_MMI);
}
}
+#endif
//ÒÔÉÏÓ¦Óò»´æÔÚ£¬Ö÷¿Ø×ßÓ¦´ðÁ÷³Ì
if (list_empty(&g_mainctrl_restart_notify)) {
@@ -1173,6 +1186,10 @@
INIT_LIST_HEAD(&g_mainctrl_poweroff_notify);
INIT_LIST_HEAD(&g_mainctrl_restart_notify);
pppoe_aes_init();
+
+#if (MODEM_TYPE == vehicle_dc)
+ INIT_LIST_HEAD(&g_firewall_ip);
+#endif
}
void Router_msg_proc(MSG_BUF *msg)
@@ -1318,28 +1335,28 @@
case MSG_CMD_NET_ADD_CHILDREN_DEVICE: {
slog(NET_PRINT, SLOG_DEBUG, "recv msg MSG_CMD_NET_ADD_CHILDREN_DEVICE \n");
children_device_add((struct mac_hostname_info *)msg->aucDataBuf);
- slog(NET_PRINT, SLOG_ERR, "zte_edit_hostname MESSAGE TO MC END");
+ slog(NET_PRINT, SLOG_ERR, "edit_hostname MESSAGE TO MC END");
check_limit_time();
break;
}
case MSG_CMD_NET_DEL_CHILDREN_DEVICE: {
slog(NET_PRINT, SLOG_DEBUG, "recv msg MSG_CMD_NET_DEL_CHILDREN_DEVICE \n");
children_device_del((char *)msg->aucDataBuf);
- slog(NET_PRINT, SLOG_ERR, "zte_edit_hostname MESSAGE TO MC END");
+ slog(NET_PRINT, SLOG_ERR, "edit_hostname MESSAGE TO MC END");
check_limit_time();
break;
}
case MSG_CMD_NET_ADD_WHITE_SITE: {
slog(NET_PRINT, SLOG_DEBUG, "recv msg MSG_CMD_NET_ADD_WHITE_SITE \n");
white_site_add((struct white_site_info *)msg->aucDataBuf);
- slog(NET_PRINT, SLOG_ERR, "zte_edit_hostname MESSAGE TO MC END");
+ slog(NET_PRINT, SLOG_ERR, "edit_hostname MESSAGE TO MC END");
check_limit_time();
break;
}
case MSG_CMD_NET_REMOVE_WHITE_SITE: {
slog(NET_PRINT, SLOG_DEBUG, "recv msg MSG_CMD_NET_REMOVE_WHITE_SITE \n");
white_site_remove((char *)msg->aucDataBuf);
- slog(NET_PRINT, SLOG_DEBUG, "zte_edit_hostname MESSAGE TO MC END");
+ slog(NET_PRINT, SLOG_DEBUG, "edit_hostname MESSAGE TO MC END");
check_limit_time();
break;
}
@@ -1431,6 +1448,24 @@
zte_router_ping_diagnostics();
break;
}
+#if (MODEM_TYPE == vehicle_dc)
+ case MSG_CMD_NET_FIREWALL_ADD_REQ: {
+ slog(NET_PRINT, SLOG_DEBUG, "recv msg MSG_CMD_NET_FIREWALL_ADD_REQ \n");
+ zte_iptables_firewall_add((char *)msg->aucDataBuf);
+ break;
+ }
+ case MSG_CMD_NET_FIREWALL_DEL_REQ: {
+ slog(NET_PRINT, SLOG_DEBUG, "recv msg MSG_CMD_NET_FIREWALL_DEL_REQ \n");
+ zte_iptables_firewall_del((char *)msg->aucDataBuf);
+ break;
+ }
+ case MSG_CMD_NET_FIREWALL_CLEANUP_REQ: {
+ slog(NET_PRINT, SLOG_DEBUG, "recv msg MSG_CMD_NET_FIREWALL_CLEANUP_REQ \n");
+ zte_iptables_firewall_cleanup();
+ break;
+ }
+#endif
+
default:
//assert(0);
break;
@@ -1444,37 +1479,37 @@
if (!list_empty(&g_mainctrl_poweroff_notify)) {
list_for_each_entry(temp, &g_mainctrl_poweroff_notify, list) {
- slog(NET_PRINT, SLOG_ERR, "zte_mainctrl g_mainctrl_poweroff_notify: module_id = 0x%x\n", temp->notify_id);
+ slog(NET_PRINT, SLOG_ERR, "mainctrl g_mainctrl_poweroff_notify: module_id = 0x%x\n", temp->notify_id);
}
} else {
- slog(RTC_PRINT, SLOG_ERR, "zte_mainctrl g_mainctrl_poweroff_notify list is empty! \n");
+ slog(RTC_PRINT, SLOG_ERR, "mainctrl g_mainctrl_poweroff_notify list is empty! \n");
}
if (!list_empty(&g_mainctrl_restart_notify)) {
list_for_each_entry(temp, &g_mainctrl_restart_notify, list) {
- slog(NET_PRINT, SLOG_ERR, "zte_mainctrl g_mainctrl_restart_notify: module_id = 0x%x\n", temp->notify_id);
+ slog(NET_PRINT, SLOG_ERR, "mainctrl g_mainctrl_restart_notify: module_id = 0x%x\n", temp->notify_id);
}
} else {
- slog(RTC_PRINT, SLOG_ERR, "zte_mainctrl g_mainctrl_restart_notify list is empty! \n");
+ slog(RTC_PRINT, SLOG_ERR, "mainctrl g_mainctrl_restart_notify list is empty! \n");
}
if (!list_empty(&g_mainctrl_reset_notify)) {
list_for_each_entry(temp, &g_mainctrl_reset_notify, list) {
- slog(NET_PRINT, SLOG_ERR, "zte_mainctrl g_mainctrl_reset_notify: module_id = 0x%x\n", temp->notify_id);
+ slog(NET_PRINT, SLOG_ERR, "mainctrl g_mainctrl_reset_notify: module_id = 0x%x\n", temp->notify_id);
}
} else {
- slog(RTC_PRINT, SLOG_ERR, "zte_mainctrl g_mainctrl_reset_notify list is empty! \n");
+ slog(RTC_PRINT, SLOG_ERR, "mainctrl g_mainctrl_reset_notify list is empty! \n");
}
}
static void mainctrl_sig_usr1(int signo)
{
/*if (signo == SIGUSR1) {
- slog(NET_PRINT, SLOG_ERR, "zte_mainctrl receive SIGUSR1!\n");
+ slog(NET_PRINT, SLOG_ERR, "mainctrl receive SIGUSR1!\n");
print_mainctrl_info();
} else {
- slog(NET_PRINT, SLOG_ERR, "zte_mainctrl receive signo %d", signo);
+ slog(NET_PRINT, SLOG_ERR, "mainctrl receive signo %d", signo);
}*/
}
@@ -1496,7 +1531,7 @@
sc_cfg_get("seclog_switch", seclog, sizeof(seclog));
prctl(PR_SET_NAME, "seclog", 0, 0, 0);
- slog(NET_PRINT, SLOG_ERR, "zte_security_log begin --build date: %s %s \n", __DATE__, __TIME__);
+ slog(NET_PRINT, SLOG_ERR, "security_log begin --build date: %s %s \n", __DATE__, __TIME__);
if (msg_handle == -1) {
slog(NET_PRINT, SLOG_ERR, "can not create msg queue for security_log!\n");
return;
@@ -1536,20 +1571,20 @@
//¸ù¾ÝNV³õʼ»¯´òÓ¡¼¶±ð£¬²¢×¢²á¶¯Ì¬µ÷Õû´òÓ¡¼¶±ðÐźÅÁ¿
loglevel_init();
- slog(NET_PRINT, SLOG_ERR, "zte_mainctrl begin ======= build date: %s %s \n", __DATE__, __TIME__);
+ slog(NET_PRINT, SLOG_ERR, "mainctrl begin ======= build date: %s %s \n", __DATE__, __TIME__);
pthread_t zte_security_log_tid;
if (pthread_create(&zte_security_log_tid, NULL, (void *)zte_security_log_entry, NULL) != 0) //cov m
- slog(NET_PRINT, SLOG_ERR, "zte_security_log_entry create fail\n");
+ slog(NET_PRINT, SLOG_ERR, "security_log_entry create fail\n");
iMsgHandle = create_msg_queue();
if (-1 == iMsgHandle) {
- slog(NET_PRINT, SLOG_ERR, "can not create msg queue for ZTE_router!\n");
+ slog(NET_PRINT, SLOG_ERR, "can not create msg queue for router!\n");
return -1;
}
if (signal(SIGUSR1, mainctrl_sig_usr1) == SIG_ERR)
- slog(NET_PRINT, SLOG_ERR, "zte_mainctrl cat not catch SIGUSR1!\n");
+ slog(NET_PRINT, SLOG_ERR, "mainctrl cat not catch SIGUSR1!\n");
sc_cfg_get("nv_save_interval", nv_save_interval, sizeof(nv_save_interval));
interval_time = atoi(nv_save_interval);
@@ -1582,7 +1617,7 @@
for (;;) {
if (0 == interruptSIG) {
- slog(NET_PRINT, SLOG_ERR, "ZTE_router begin to rcv msg from queue %d. \n", iMsgHandle);
+ slog(NET_PRINT, SLOG_ERR, "router begin to rcv msg from queue %d. \n", iMsgHandle);
}
memset(&stMsg, '\0', sizeof(stMsg));
iRet = 0;
diff --git a/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.h b/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.h
index 81c3730..59fef7f 100755
--- a/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.h
+++ b/ap/app/zte_comm/zte_mainctrl/zte_mainctrl.h
@@ -167,6 +167,13 @@
extern void zte_iptables_child_filter_run();
extern void zte_router_ping_diagnostics(void);
+#if (MODEM_TYPE == vehicle_dc)
+extern void zte_iptables_firewall_add(char *ip);
+extern void zte_iptables_firewall_del(char *ip);
+extern void zte_iptables_firewall_cleanup(void);
+extern void zte_firewall_init(void);
+#endif
+
/********************net_xfrm.c end********************************/
diff --git a/ap/app/zte_comm/zte_mmi/mmi.c b/ap/app/zte_comm/zte_mmi/mmi.c
index 0d60a75..042a157 100755
--- a/ap/app/zte_comm/zte_mmi/mmi.c
+++ b/ap/app/zte_comm/zte_mmi/mmi.c
@@ -115,7 +115,7 @@
{
if (taskInfoItem->get_taskinfo_fun == NULL || taskInfoItem->taskinfo == NULL ||
taskInfoItem->get_ledinfo_fun == NULL || taskInfoItem->ledinfo == NULL) {
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI mmi_show_led parameter null!!!\n");
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI mmi_show_led parameter null!!!\n");
return;
}
if (taskInfoItem->get_taskinfo_fun((UINT32)taskInfoItem->taskinfo) == MMI_SUCCESS) { //e64
@@ -129,7 +129,7 @@
{
if (taskInfoItem->get_taskinfo_fun == NULL || taskInfoItem->taskinfo == NULL ||
taskInfoItem->get_lcdinfo_fun == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_show_lcd parameter null!!!");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_show_lcd parameter null!!!");
return;
}
#ifdef MMI_DEBUG_MAINCONTROL
@@ -161,7 +161,7 @@
#ifndef DISABLE_LCD
if (g_showMode == MMI_MODE_LCD || g_showMode == MMI_MODE_ALL) {
while ((ret = mmi_GetSemaphore(&g_mmi_init_sem_id, MMI_WAIT_FOREVER)) != MMI_SUCCESS) {
- slog(MMI_PRINT, SLOG_DEBUG, "zte_mmi g_mmi_update_sem_id get failed ret = %d,errno=%d\n", ret, errno);
+ slog(MMI_PRINT, SLOG_DEBUG, "mmi g_mmi_update_sem_id get failed ret = %d,errno=%d\n", ret, errno);
continue;
}
mmi_DeleteSemaphore(&g_mmi_init_sem_id);
@@ -170,7 +170,7 @@
while (1) {
if ((ret = mmi_GetSemaphore(&g_mmi_update_sem_id, MMI_WAIT_FOREVER)) != MMI_SUCCESS) {//kw 3
- slog(MMI_PRINT, SLOG_DEBUG, "zte_mmi mmi_mainControllerEntry failed ret = %d,errno=%d\n", ret, errno);
+ slog(MMI_PRINT, SLOG_DEBUG, "mmi mmi_mainControllerEntry failed ret = %d,errno=%d\n", ret, errno);
continue;
}
for (i = 0; i < sizeof(g_zMMITaskInfoTab) / sizeof(T_zMMITaskInfoItem); ++ i) { //warning539
@@ -282,7 +282,7 @@
}
//kw 3, kw bug???
//if ((pstMsg->usMsgCmd != MSG_CMD_MMICHECK_TIP_INFO) && (pstMsg->usMsgCmd != MSG_CMD_MMIGET_WIFI_DATA)) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI Mmi_ProcMsg msg:src_id = 0x%04x,lMsgType = %d,usMsgCmd = 0x%08x,usDataLen = %d,data = %s\n", pstMsg->src_id, pstMsg->lMsgType, pstMsg->usMsgCmd, pstMsg->usDataLen, pstMsg->aucDataBuf);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI Mmi_ProcMsg msg:src_id = 0x%04x,lMsgType = %d,usMsgCmd = 0x%08x,usDataLen = %d,data = %s\n", pstMsg->src_id, pstMsg->lMsgType, pstMsg->usMsgCmd, pstMsg->usDataLen, pstMsg->aucDataBuf);
//}
switch (pstMsg->usMsgCmd) {
case MSG_CMD_CHANNEL_NETWORK_MODE:
@@ -589,7 +589,7 @@
***********************************************************************************/
static int mmi_showmode_init()
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_showmode_init \n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_showmode_init \n");
if (g_showMode == MMI_MODE_LED || g_showMode == MMI_MODE_ALL) {
mmi_initLed();
}
@@ -611,7 +611,7 @@
pthread_t mmi_handlemsg_thread;
//´´½¨MMIÏûÏ¢¶ÓÁÐ
if ((g_mmi_msgQue_Id = mmi_create_msg_queue()) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI create g_mmi_msgQue_Id failed!!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI create g_mmi_msgQue_Id failed!!!\n");
MMI_ASSERT(0);
}
pthread_mutex_init(&g_mmi_lcdmode_mutex, NULL);
@@ -623,12 +623,12 @@
sem_init(&g_mmi_traffic_warn_sem_id, 0, 0);
sem_init(&g_mmi_poweroff_sem_id, 0, 0); //ÓÃÓڹػúʱ±£Ö¤LCDÆÁ²¥Íê¹Ø»ú¶¯»ºóÃðÆ½»òLEDµÆ¶¼ÁÁÖ®ºóÔÙÃðµÆ
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI start set_mmi_active\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI start set_mmi_active\n");
set_wake_lock(MMI_MAIN_LOCK_ID);
//´´½¨MMI ´¦ÀíÏûÏ¢Ïß³Ì
if (pthread_create(&mmi_handlemsg_thread, NULL, &mmi_handleMsgEntry, NULL) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI pthread_create handle msg error\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI pthread_create handle msg error\n");
return ;
}
mmi_showmode_init();
@@ -637,7 +637,7 @@
mmi_task_init();
mmi_set_poweron_show();
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI main Register finish!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI main Register finish!!\n");
//´´½¨MMIÖ÷¿ØÏß³Ì
mmi_mainControllerEntry(NULL);
@@ -653,7 +653,7 @@
pthread_t mmi_handlemsg_thread;
//´´½¨MMIÏûÏ¢¶ÓÁÐ
if ((g_mmi_msgQue_Id = mmi_create_msg_queue()) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI create g_mmi_msgQue_Id failed!!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI create g_mmi_msgQue_Id failed!!!\n");
MMI_ASSERT(0);
}
@@ -671,7 +671,7 @@
//´´½¨MMI ´¦ÀíÏûÏ¢Ïß³Ì
if (pthread_create(&mmi_handlemsg_thread, NULL, &mmi_handleMsgEntry, NULL) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI pthread_create handle msg error\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI pthread_create handle msg error\n");
return ;
}
@@ -691,7 +691,7 @@
int res = pthread_create(&mmi_offchg_mainctrl_thread, NULL, &mmi_mainControllerEntry, NULL);
if (res != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI pthread_create main control error\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI pthread_create main control error\n");
assert(0);
}
}
@@ -709,7 +709,7 @@
ret_fd = open(LCD_PATH, O_RDWR);
if (ret_fd == -1)
{
- slog(MMI_PRINT, SLOG_ERR,"ZTE_MMI mmi_file_operate open file fail: %s!\n", LCD_PATH);
+ slog(MMI_PRINT, SLOG_ERR,"MMI mmi_file_operate open file fail: %s!\n", LCD_PATH);
}
else
{
@@ -839,17 +839,17 @@
mmi_BatLedOffOpt();//¹ØbootµãµÄµÆ
#ifdef DISABLE_LCD
if (g_showMode != MMI_MODE_LED) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI MIN only support LED \n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI MIN only support LED \n");
return -1;
}
#endif
if (argc >= 2) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI ###POWER OFF CHARGER START####\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI ###POWER OFF CHARGER START####\n");
g_mmi_power_mode = 0;
zMmi_PowerOffChargerEntry();
} else {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI ######START######\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI ######START######\n");
g_mmi_power_mode = 1;
mmi_powerOnLcdEntry();
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_battery.c b/ap/app/zte_comm/zte_mmi/mmi_battery.c
index ff98472..ac0ae96 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_battery.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_battery.c
@@ -139,7 +139,7 @@
s_mmi_poweroff_voltage_num = 0;
mmi_set_abnormal_poweroff_flag();
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI poweroff,lowerbattery!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI poweroff,lowerbattery!!!\n");
mmi_set_poweroff();
}
} else {
@@ -168,7 +168,7 @@
g_mmi_voltageEx = cur_power;
bat_level = get_voltage_level_from_table(cur_power);
mmi_set_webUI_batterypers(bat_level);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_battery_capacity_compare voltagepower = %d !! cur_power = %d !! bat_level = %d\n ", voltagepower, cur_power, bat_level);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_battery_capacity_compare voltagepower = %d !! cur_power = %d !! bat_level = %d\n ", voltagepower, cur_power, bat_level);
s_mmi_battery_pers = bat_level;
s_mmi_voltage_level = mmi_set_battery_state(bat_level);
@@ -181,13 +181,13 @@
if (g_showMode == MMI_MODE_LED || g_showMode == MMI_MODE_ALL) {
if (chgflag) {
if (mmi_get_led_mode() == MMI_FAKE_POWEROFF_MODE || mmi_get_led_mode() == MMI_FAKE_POWEROFF_CHARGE_MODE) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_battery_info startcharging MMI_FAKE_POWEROFF_CHARGE_MODE \n\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_battery_info startcharging MMI_FAKE_POWEROFF_CHARGE_MODE \n\n");
mmi_set_led_mode(MMI_FAKE_POWEROFF_CHARGE_MODE);
mmi_set_update_flag(MMI_TASK_CTRL);
}
} else {
if (mmi_get_led_mode() == MMI_FAKE_POWEROFF_CHARGE_MODE) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_battery_info discharging MMI_FAKE_POWEROFF_MODE \n\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_battery_info discharging MMI_FAKE_POWEROFF_MODE \n\n");
mmi_set_led_mode(MMI_FAKE_POWEROFF_MODE);
mmi_set_update_flag(MMI_TASK_CTRL);
}
@@ -197,13 +197,13 @@
if (g_showMode == MMI_MODE_LCD || g_showMode == MMI_MODE_ALL) {
if (chgflag) {
if (mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_MODE || mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_CHARGE_MODE) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_battery_info startcharging MMI_FAKE_POWEROFF_CHARGE_MODE \n\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_battery_info startcharging MMI_FAKE_POWEROFF_CHARGE_MODE \n\n");
mmi_set_lcd_mode(MMI_FAKE_POWEROFF_CHARGE_MODE);
mmi_set_update_flag(MMI_TASK_CTRL);
}
} else {
if (mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_CHARGE_MODE) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_battery_info discharging MMI_FAKE_POWEROFF_MODE \n\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_battery_info discharging MMI_FAKE_POWEROFF_MODE \n\n");
mmi_set_lcd_mode(MMI_FAKE_POWEROFF_MODE);
mmi_set_update_flag(MMI_TASK_CTRL);
}
@@ -220,7 +220,7 @@
E_zMmi_Charge_State chg_sta = STATE_CHARGE_MAX;
int power = 0;
chg_sta = mmi_get_charge_status();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_battery_info chg_sta = %d!!\n", chg_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_battery_info chg_sta = %d!!\n", chg_sta);
s_mmi_charge_stateEx = s_mmi_charge_state;
if (chg_sta == STATE_CHARGING) {
s_mmi_charge_state = STATE_CHARGING;
@@ -234,7 +234,7 @@
mmi_set_mode_fast_poweron(TRUE);
if (g_charge_protect == 1) {
system(MMI_TURN_OFF_CHG_FULL);
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_set_battery_info off charge full!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_set_battery_info off charge full!!\n");
}
} else if (chg_sta == STATE_DISCHARGE) {
s_mmi_charge_state = STATE_DISCHARGE;
@@ -257,7 +257,7 @@
mmi_set_mode_fast_poweron(FALSE);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_set_battery_info invalid charge state!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_set_battery_info invalid charge state!!\n");
}
}
@@ -298,12 +298,12 @@
addr.nl_groups = 0xffffffff;
s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
if (s < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI charging socketfail %d\n",errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI charging socketfail %d\n",errno);
return -1;
}
// setsockopt(s, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz));
if (bind(s, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI charging bindfail %d\n",errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI charging bindfail %d\n",errno);
close(s);
return -1;
}
@@ -353,7 +353,7 @@
buf[sizeof(buf)-1] = '\0';//cov
if (byte_counts <= 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI receive from netlonk ret %d err %d \n", byte_counts, errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI receive from netlonk ret %d err %d \n", byte_counts, errno);
return;
}
@@ -363,7 +363,7 @@
subsys = search_netlink("SUBSYSTEM", keys, byte_counts);
action = search_netlink("ACTION", keys, byte_counts);
power_supply_name = search_netlink("POWER_SUPPLY_NAME", keys, byte_counts);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI process_netlink_event subsys=%s, action=%s, power_supply_name=%s\n", subsys, action, power_supply_name);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI process_netlink_event subsys=%s, action=%s, power_supply_name=%s\n", subsys, action, power_supply_name);
if ((subsys != NULL) && (action != NULL) && (power_supply_name != NULL)) {//klocwork
if ((!strcmp(subsys, "power_supply")) && (!(strcmp(action, "change")))) {
@@ -371,7 +371,7 @@
set_wake_lock(MMI_MAIN_LOCK_ID);
mmi_reset_idle_timer();
mmi_set_battery_info();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI BATTERY process_netlink_event s_mmi_charge_state = %d s_mmi_charge_stateEx=%d\n", s_mmi_charge_state, s_mmi_charge_stateEx);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI BATTERY process_netlink_event s_mmi_charge_state = %d s_mmi_charge_stateEx=%d\n", s_mmi_charge_state, s_mmi_charge_stateEx);
mmi_set_mode_active();
if (s_mmi_charge_state != s_mmi_charge_stateEx) {
mmi_set_battery_update();
@@ -401,13 +401,13 @@
subsys = search_netlink("SUBSYSTEM", keys, byte_counts);
action = search_netlink("ACTION", keys, byte_counts);
power_supply_name = search_netlink("POWER_SUPPLY_NAME", keys, byte_counts);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI process_netlink_event subsys=%s, action=%s, power_supply_name=%s\n", subsys, action, power_supply_name);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI process_netlink_event subsys=%s, action=%s, power_supply_name=%s\n", subsys, action, power_supply_name);
if ((subsys != NULL) && (action != NULL) && (power_supply_name != NULL)) {
if ((!strcmp(subsys, "power_supply")) && (!(strcmp(action, "change")))) {
if (!strcmp(power_supply_name, "charger")) {
mmi_set_battery_info();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI BATTERY process_netlink_event s_mmi_charge_state = %d s_mmi_charge_stateEx=%d\n", s_mmi_charge_state, s_mmi_charge_stateEx);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI BATTERY process_netlink_event s_mmi_charge_state = %d s_mmi_charge_stateEx=%d\n", s_mmi_charge_state, s_mmi_charge_stateEx);
if (s_mmi_charge_state != s_mmi_charge_stateEx
&& (s_mmi_charge_state == STATE_DISCHARGE || s_mmi_charge_stateEx == STATE_DISCHARGE)) {
set_wake_lock(MMI_MAIN_LOCK_ID);
@@ -478,10 +478,10 @@
{
pthread_t mmi_battryvol_thread;
if (pthread_create(&mmi_battryvol_thread, NULL, &mmi_batterypower_process_thread, NULL) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI pthread_create BatteryPower_thread error\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI pthread_create BatteryPower_thread error\n");
return;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_create_get_voltage_timer success!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_create_get_voltage_timer success!!\n");
}
/**********************************************************************************
*º¯Êý˵Ã÷£º´´½¨³äµç¼àÌýÏß³Ì
@@ -493,7 +493,7 @@
fd_set readfds;
prctl(PR_SET_NAME, "mmichgcheck", 0, 0, 0);
if ((charging_netlink = open_charging_netlink()) < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI charging_netlink wrong \n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI charging_netlink wrong \n");
return NULL;
}
while (1) {
@@ -503,10 +503,10 @@
fd_counts = select(charging_netlink + 1, &readfds, NULL, NULL, NULL);
if (fd_counts < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI select usb_netlink error! \n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI select usb_netlink error! \n");
continue;
} else if (fd_counts == 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI select usb_netlink timeout\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI select usb_netlink timeout\n");
continue;
} else {
if (charging_netlink > 0 && FD_ISSET(charging_netlink, &readfds)) {*/
@@ -523,10 +523,10 @@
{
pthread_t mmi_chgstate_thread;
if (pthread_create(&mmi_chgstate_thread, NULL, &mmi_chargingcheck_process_thread, NULL) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_create_chargestate_check_thread error\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_create_chargestate_check_thread error\n");
return;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_create_chargestate_check_thread success!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_create_chargestate_check_thread success!!!\n");
}
@@ -545,7 +545,7 @@
VOID mmi_battery_init(VOID)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI BATTERY mmi_battery_Led_Init begin!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI BATTERY mmi_battery_Led_Init begin!!\n");
mmi_charge_state_init();
if (g_discharge_protect) {
mmi_load_state_init();
diff --git a/ap/app/zte_comm/zte_mmi/mmi_battery_adapter.c b/ap/app/zte_comm/zte_mmi/mmi_battery_adapter.c
index 9b36f6f..f4b34fa 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_battery_adapter.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_battery_adapter.c
@@ -57,7 +57,7 @@
fd_voltage = fopen(CHARGE_VOLTAGE_PATH, "r");
if (fd_voltage == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI open voltage file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI open voltage file fail!\n");
//MMI_ASSERT(0);
return -1;
}
@@ -65,11 +65,11 @@
if (len > 0) { //kw 3
voltagepower = atoi(buf_volt);
fclose(fd_voltage);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI voltagepower=%d\n",voltagepower);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI voltagepower=%d\n",voltagepower);
return voltagepower;
} else {
perror("read voltage file failed");
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI read voltage file fail len = %d !\n", len);
+ slog(MMI_PRINT, SLOG_ERR, "MMI read voltage file fail len = %d !\n", len);
fclose(fd_voltage);
return -1;
}
@@ -82,7 +82,7 @@
E_zMmi_Voltage_level mmi_set_battery_state(UINT32 bat_level)
{
E_zMmi_Voltage_level volt_lev = VOLT_MAX;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_battery_state bat_level = %d\n", bat_level);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_battery_state bat_level = %d\n", bat_level);
if (bat_level <= 5) {
volt_lev = VOLT_5PERCENTLEVEL;
} else if (bat_level <= 10) { //kw 3
@@ -160,21 +160,21 @@
fd_charger = fopen(CHARGE_STATUS_PATH, "r");
if (fd_charger == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_charge_status open charging file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_charge_status open charging file fail!\n");
//MMI_ASSERT(0);
return STATE_CHARGE_MAX;
}
len = fread(chg_state_buf, 1, CHARGE_STATUS_LENGTH, fd_charger);
if (len > 0) { //kw 3
fclose(fd_charger);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_charge_status chg_state_buf=%s !\n", chg_state_buf);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_charge_status chg_state_buf=%s !\n", chg_state_buf);
for (i = 0; i < sizeof(g_chgStateStringTab) / sizeof(T_zMmiChgStateStringItem); ++ i) {
if (strncmp(chg_state_buf, g_chgStateStringTab[i].devString, strlen(g_chgStateStringTab[i].devString)) == 0) {
return g_chgStateStringTab[i].chg_sta;
}
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_charge_status read voltage file fail len = %d !\n", len);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_charge_status read voltage file fail len = %d !\n", len);
fclose(fd_charger);
return STATE_CHARGE_MAX;
}
@@ -191,14 +191,14 @@
fd_charger = fopen(USB_INSERT_STATUS_PATH, "r");
if (fd_charger == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_read_usb_insert_status open usb file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_read_usb_insert_status open usb file fail!\n");
//MMI_ASSERT(0);
return FALSE;
}
len = fread(usb_state_buf, 1, 2, fd_charger);
if (len > 0) { //kw 3
fclose(fd_charger);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_read_usb_insert_status usb_state_buf=%s !\n", usb_state_buf);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_read_usb_insert_status usb_state_buf=%s !\n", usb_state_buf);
if (!strncmp(usb_state_buf, USB_STATUS_IN, strlen(USB_STATUS_IN))) {
return TRUE;
}
@@ -206,7 +206,7 @@
return FALSE;
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_read_usb_insert_status read usb file fail len = %d !\n", len);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_read_usb_insert_status read usb file fail len = %d !\n", len);
fclose(fd_charger);
return FALSE;
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_ctrl.c b/ap/app/zte_comm/zte_mmi/mmi_ctrl.c
index f0fb465..a36f1d4 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_ctrl.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_ctrl.c
@@ -71,7 +71,7 @@
***********************************************************************************/
static VOID * mmi_idle_halfbright_timer_cb(VOID *arg)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_idle_halfbright_timer_cb !!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_idle_halfbright_timer_cb !!\n");
mmi_set_lcd_mode(MMI_BACKLIGHT_OFF_MODE);
mmi_set_update_flag(MMI_TASK_CTRL);
return NULL;
@@ -80,13 +80,13 @@
static VOID mmi_idle_halfbright_timer_start(VOID)
{
int ret = -1;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_idle_halfbright_timer_start !!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_idle_halfbright_timer_start !!\n");
#if MMI_SOFTTIMER_DEBUG
g_mmi_softtimer_flag = 5;
#endif
ret = sc_timer_create(SET_BACKLIGHT_HALFBRIGHT_TIMER, TIMER_FLAG_ONCE, SET_BACKLIGHT_HALFBRIGHT_TIME, &mmi_idle_halfbright_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_idle_halfbright_timer_start FAILED !!");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_idle_halfbright_timer_start FAILED !!");
}
}
@@ -108,7 +108,7 @@
***********************************************************************************/
static VOID * mmi_idle_timer_cb(VOID *arg)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_idle_timer_cb !!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_idle_timer_cb !!\n");
if (g_showMode == MMI_MODE_LCD || g_showMode == MMI_MODE_ALL) {
if (mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_CHARGE_MODE || mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_MODE) {
mmi_set_lcd_mode(MMI_FAKE_POWEROFF_MODE);
@@ -152,7 +152,7 @@
int ret = -1;
ret = sc_timer_create(SET_MMI_IDLE_TIMER, TIMER_FLAG_ONCE, SET_MMI_IDLE_TIME, &mmi_idle_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_idle_timer_create FAILED !!");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_idle_timer_create FAILED !!");
}
}
@@ -170,7 +170,7 @@
***********************************************************************************/
static VOID * mmi_fast_poweron_idle_timer_cb(VOID *arg)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_fast_poweron_idle_timer_cb !!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_fast_poweron_idle_timer_cb !!\n");
if (mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_MODE && (mmi_get_charge_state() == STATE_DISCHARGE)) {
mmi_set_update_flag(MMI_TASK_CTRL);
}
@@ -185,7 +185,7 @@
int ret = -1;
ret = sc_timer_create(SET_MMI_FAST_POWERON_IDLE_TIMER, TIMER_FLAG_ONCE, SET_MMI_FAST_POWERON_IDLE_TIME, &mmi_fast_poweron_idle_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_fast_poweron_idle_timer_create FAILED\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_fast_poweron_idle_timer_create FAILED\n");
}
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_fota.c b/ap/app/zte_comm/zte_mmi/mmi_fota.c
index 6e54fe4..5363644 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_fota.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_fota.c
@@ -169,7 +169,7 @@
} else {
ret = FALSE;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_check_net_connect wifi_sta_status = %s,wifi_id = %d, ret = %d\n", wifi_sta_status, wifi_id, ret);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_check_net_connect wifi_sta_status = %s,wifi_id = %d, ret = %d\n", wifi_sta_status, wifi_id, ret);
return ret;
}
@@ -219,7 +219,7 @@
mmi_set_update_flag(MMI_TASK_TIP_FOTA);
s_mmi_fota_updateEx = s_mmi_fota_update;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_check_new_version_state,s_mmi_update_tip=%d, s_mmi_update_tipEx = %d\n", s_mmi_fota_update, s_mmi_fota_updateEx);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_check_new_version_state,s_mmi_update_tip=%d, s_mmi_update_tipEx = %d\n", s_mmi_fota_update, s_mmi_fota_updateEx);
}
/**********************************************************************************
@@ -258,6 +258,6 @@
mmi_set_update_flag(MMI_TASK_TIP_FOTA);
s_mmi_fota_tipEx = s_mmi_fota_tip;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_check_fota_download_state s_mmi_fota_tip = %d,s_mmi_fota_tipEx = %d,s_mmi_show_fota_download_times = %d\n", s_mmi_fota_tip, s_mmi_fota_tipEx, s_mmi_show_fota_download_times);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_check_fota_download_state s_mmi_fota_tip = %d,s_mmi_fota_tipEx = %d,s_mmi_show_fota_download_times = %d\n", s_mmi_fota_tip, s_mmi_fota_tipEx, s_mmi_show_fota_download_times);
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_keystrokes.c b/ap/app/zte_comm/zte_mmi/mmi_keystrokes.c
index 82c9b65..6ad6bdf 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_keystrokes.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_keystrokes.c
@@ -60,9 +60,9 @@
struct input_event kp_event = {0};
retR = read(g_mmi_kpd_handle, (CHAR *)(&kp_event), sizeof(kp_event));
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI Key's type:%d, value:%d, code:%d\n", kp_event.type, kp_event.value, kp_event.code);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI Key's type:%d, value:%d, code:%d\n", kp_event.type, kp_event.value, kp_event.code);
if (retR < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI get_keystrokes_data read falied k-err:%d!",errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI get_keystrokes_data read falied k-err:%d!",errno);
return;
}
@@ -211,7 +211,7 @@
static VOID mmi_handle_keystroke_down()
{
BOOL long_press = mmi_get_longpress_flag();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI KEYDOWN long_press=%d!!!\n ", long_press);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI KEYDOWN long_press=%d!!!\n ", long_press);
if (FALSE == long_press) {
// ÖØÖö¨Ê±Æ÷
if (g_fast_poweron && (mmi_get_charge_state() == STATE_DISCHARGE) && ((mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_MODE) || (mmi_get_led_mode() == MMI_FAKE_POWEROFF_MODE))) {
@@ -238,7 +238,7 @@
BOOL longPress = mmi_get_longpress_flag();
BOOL key_wakeup = mmi_get_wakeup_flag();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI KEYUP KEYUP !!! longPress=%d key_wakeup=%d\n", longPress, key_wakeup);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI KEYUP KEYUP !!! longPress=%d key_wakeup=%d\n", longPress, key_wakeup);
mmi_wakeup_wifi(key_type);
#ifndef DISABLE_LCD
if (FALSE == longPress && (g_showMode == MMI_MODE_LCD || g_showMode == MMI_MODE_ALL)) {
@@ -248,7 +248,7 @@
}
} else if (key_type == KEY_TYPE_POWER && mmi_getShowingPowerOnInfo() == FALSE) {
if (mmi_get_lcd_mode() == MMI_ACTIVE_MODE && key_wakeup == FALSE) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_handle_keystroke_up ssssss");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_handle_keystroke_up ssssss");
mmi_idle_timer_stop();
mmi_set_lcd_mode(MMI_BACKLIGHT_OFF_MODE);
mmi_set_update_flag(MMI_TASK_CTRL);
@@ -272,12 +272,12 @@
{
BOOL longPress = mmi_get_longpress_flag();
BOOL key_wakeup = mmi_get_wakeup_flag();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_handle_keystroke_longpress longPress=%d key_wakeup=%d\n", longPress, key_wakeup);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_handle_keystroke_longpress longPress=%d key_wakeup=%d\n", longPress, key_wakeup);
if ((FALSE == longPress) && (FALSE == key_wakeup)) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI KEYLONGPRESS!KEYLONGPRESS!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI KEYLONGPRESS!KEYLONGPRESS!\n");
mmi_set_longpress_flag(TRUE);
if (key_type == KEY_TYPE_POWER) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI handleKey ######KEY_POWER LONGPRESS######\n\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI handleKey ######KEY_POWER LONGPRESS######\n\n");
if (g_fast_poweron) {
if (mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_MODE || mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_CHARGE_MODE
@@ -287,34 +287,34 @@
} else {
g_mmi_key_longpress_flag = TRUE;
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI poweroff,longpress!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI poweroff,longpress!!!\n");
mmi_set_poweroff();
}
} else {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI poweroff,longpress!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI poweroff,longpress!!!\n");
mmi_set_poweroff();
}
} else if (key_type == KEY_TYPE_RESET) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI handleKey ######KEY_RESET LONGPRESS######\n\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI handleKey ######KEY_RESET LONGPRESS######\n\n");
if (mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_CHARGE_MODE || mmi_get_lcd_mode() == MMI_FAKE_POWEROFF_MODE
|| mmi_get_led_mode() == MMI_FAKE_POWEROFF_CHARGE_MODE || mmi_get_led_mode() == MMI_FAKE_POWEROFF_MODE) {
return;//break;
}
mmi_set_factory_reset();
} else if ((key_type == KEY_TYPE_WPS)) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI handleKey ######KEY_WPS LONGPRESS######\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI handleKey ######KEY_WPS LONGPRESS######\n");
if (mmi_get_wifi_state()) {
mmi_wps_operate();
}
} else if ((key_type == KEY_TYPE_WIFI)) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI handleKey ######KEY_WIFI LONGPRESS######\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI handleKey ######KEY_WIFI LONGPRESS######\n");
if (mmi_get_wifi_state()) {
mmi_wifi_operate(WIFI_TURN_OFF);
} else {
mmi_wifi_operate(WIFI_TURN_ON);
}
} else {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI invalid operation!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI invalid operation!!\n");
}
}
}
@@ -328,7 +328,7 @@
MMI_KP_INFO keyData = {0};
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI handleKey handle_keystrokes_thread begin !!\n ");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI handleKey handle_keystrokes_thread begin !!\n ");
prctl(PR_SET_NAME, "mmihandlekey", 0, 0, 0);
while (1) {
mmi_get_keystrokes_data(&keyData);
@@ -424,9 +424,9 @@
g_mmi_kpd_longpress_time = 1;//1s
}
if (pthread_create(&mmi_handlekey_thread, NULL, &mmi_handle_keystrokes_thread, NULL) == -1) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI create handle_keystrokes_thread error\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI create handle_keystrokes_thread error\n");
return ;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_keyStrokes_Init finish!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_keyStrokes_Init finish!!\n");
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_lcd.c b/ap/app/zte_comm/zte_mmi/mmi_lcd.c
index 5ee7a3c..e73dd54 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_lcd.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_lcd.c
@@ -395,7 +395,7 @@
VOID * temp = malloc((UINT32)(showInfo.bitmap->bmHeight * showInfo.bitmap->bmWidth * showInfo.bitmap->bmBytesPerPixel));
if(temp == NULL)
{
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_showLcdPicture no mem!!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_showLcdPicture no mem!!!\n");
return;
}
memcpy((VOID *)temp, (const VOID *)(showInfo.bitmap->bmBits), (UINT32)(showInfo.bitmap->bmHeight * showInfo.bitmap->bmWidth * showInfo.bitmap->bmBytesPerPixel));
@@ -580,7 +580,7 @@
SINT32 iLen = iPos - showInfo.text ;
RECT nRect;
- //zOss_Printf(SUBMDL_FS, PRINT_LEVEL_ABNORMAL, "ZTE_MMI mmi_showLcdText showInfo.textLen is %d, iLen is %d\n", showInfo.textLen, iLen);
+ //zOss_Printf(SUBMDL_FS, PRINT_LEVEL_ABNORMAL, "MMI mmi_showLcdText showInfo.textLen is %d, iLen is %d\n", showInfo.textLen, iLen);
DrawText(hdc, showInfo.text, iLen - 1, &(g_LcdConfigInfoTab[showInfo.item].rect), DT_CENTER);
nRect.top = g_LcdConfigInfoTab[showInfo.item].rect.bottom - 17;
@@ -635,16 +635,16 @@
SINT32 mmi_invalidateLcd(VOID* taskinfo)
{
if (taskinfo == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_showLcd lcdInfo is null!!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_showLcd lcdInfo is null!!!\n");
return MMI_ERROR;
}
if (mmi_Ispoweron_state()) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_invalidateLcd poweron or poweroff now!!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_invalidateLcd poweron or poweroff now!!!\n");
return MMI_ERROR;
}
#if 0
if (showInfo->type == LCD_SHOW_INVLAID) {
- zOss_Printf(SUBMDL_FS, PRINT_LEVEL_ABNORMAL, "ZTE_MMI showInfo type is LCD_SHOW_INVLAID!!!\n");
+ zOss_Printf(SUBMDL_FS, PRINT_LEVEL_ABNORMAL, "MMI showInfo type is LCD_SHOW_INVLAID!!!\n");
return MMI_ERROR;
}
#endif
@@ -847,27 +847,27 @@
}
if (psrcBitmap == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_getBitmapFromFile psrcBitmap=NULL!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_getBitmapFromFile psrcBitmap=NULL!!\n");
return -1;
}
if (!isNeedReload && psrcBitmap->bmBits != NULL) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getBitmapFromFile memcpy ,path:%s!!!\n", path);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getBitmapFromFile memcpy ,path:%s!!!\n", path);
memcpy((VOID *)pdesBitmap, (const VOID *)psrcBitmap, sizeof(BITMAP));
return 0;
} else {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getBitmapFromFile reload ,path:%s!!!\n", path);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getBitmapFromFile reload ,path:%s!!!\n", path);
if (!isNeedReload) {
ret = LoadBitmapFromFile(HDC_SCREEN, psrcBitmap, sPath);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI load bitmap failed path:%s!!!\n", path);
+ slog(MMI_PRINT, SLOG_ERR, "MMI load bitmap failed path:%s!!!\n", path);
}
memcpy((VOID *)pdesBitmap, (const VOID *)psrcBitmap, sizeof(BITMAP));
} else {
memcpy((VOID *)(&tempBitmapFree), (const VOID *)pdesBitmap, sizeof(BITMAP));
ret = LoadBitmapFromFile(HDC_SCREEN, &tempBitmap, sPath);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI load bitmap failed path:%s!!!\n", path);
+ slog(MMI_PRINT, SLOG_ERR, "MMI load bitmap failed path:%s!!!\n", path);
}
memcpy((VOID *)pdesBitmap, (const VOID *)(&tempBitmap), sizeof(BITMAP));
UnloadBitmap(&tempBitmapFree);
@@ -938,14 +938,14 @@
&g_SmsConfigInfoTab[SMS_RECVBOX_STATUS_FULL].bmp, g_SmsConfigInfoTab[SMS_RECVBOX_STATUS_FULL].isNeedReload) != 0) {
g_LcdShowInfoTab[LCD_SHOW_SMS].type = LCD_SHOW_INVLAID;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLcdSmsFullInfo LastFullSmsHasShow==false!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLcdSmsFullInfo LastFullSmsHasShow==false!!!\n");
}
SINT32 mmi_getLcdSmsInfo(UINT32 taskInfo)
{
T_zMmi_Sms_Info *pSmsInfo = (T_zMmi_Sms_Info*)taskInfo;
SINT32 smsUnreadNum = pSmsInfo->mSmsNum;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLcdSmsInfo status = %d!!!", pSmsInfo->recvBox_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLcdSmsInfo status = %d!!!", pSmsInfo->recvBox_sta);
switch (pSmsInfo->recvBox_sta) {
case SMS_RECVBOX_STATUS_UNREAD:
mmi_getLcdSmsUnreadInfo(smsUnreadNum);
@@ -1226,35 +1226,35 @@
if (wps_sta == WPS_ACTIVE_MAX && (fota_sta == FOTA_MAX || fota_sta == FOTA_SHOW_FINISH)) {
if (mmi_get_wifiStationConnect_state()) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_middle_needshow show wifiSta!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_middle_needshow show wifiSta!!\n");
mmi_set_middle_current_show(LCD_SHOW_TIP_WIFISTA_SSID);
} else if (mmi_IsShowSimState()) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_middle_needshow show SIM!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_middle_needshow show SIM!!\n");
mmi_set_middle_current_show(LCD_SHOW_TIP_SIM_STATE);
} else if (mmi_IsShowNetPro()) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_middle_needshow show netpro!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_middle_needshow show netpro!!\n");
mmi_set_middle_current_show(LCD_SHOW_TIP_NET_PROVIDER);
} else {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_middle_needshow show netcon!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_middle_needshow show netcon!!\n");
mmi_set_middle_current_show(LCD_SHOW_TIP_NET_CONNECTING);
}
} else {
if (wps_sta != WPS_ACTIVE_MAX) {
if (fota_sta != FOTA_MAX && fota_sta != FOTA_SHOW_FINISH && g_mmi_cur_show_item == LCD_SHOW_TIP_WPS_ACTIVE) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_middle_needshow WPS show FOTA!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_middle_needshow WPS show FOTA!!\n");
mmi_set_middle_current_show(LCD_SHOW_TIP_UPDATE_INFO);
} else {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_middle_needshow show WPS!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_middle_needshow show WPS!!\n");
mmi_set_middle_current_show(LCD_SHOW_TIP_WPS_ACTIVE);
}
} else {
//kw 3
//if (wps_sta != WPS_ACTIVE_MAX && g_mmi_cur_show_item == LCD_SHOW_TIP_UPDATE_INFO) {
- // slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_middle_needshow FOTA show WPS!!\n");
+ // slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_middle_needshow FOTA show WPS!!\n");
// mmi_set_middle_current_show(LCD_SHOW_TIP_WPS_ACTIVE);
//} else
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_middle_needshow show FOTA!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_middle_needshow show FOTA!!\n");
mmi_set_middle_current_show(LCD_SHOW_TIP_UPDATE_INFO);
}
}
@@ -1293,7 +1293,7 @@
***********************************************************************************/
static VOID mmi_setLcdWifiStationSSID(CHAR *sta_ssid)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_getLcdWifiStationSSID sta_ssid=%s!!\n", sta_ssid);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_getLcdWifiStationSSID sta_ssid=%s!!\n", sta_ssid);
g_LcdShowInfoTab[LCD_SHOW_TIP_WIFISTA_SSID].type = LCD_SHOW_TEXT;
memset(g_LcdShowInfoTab[LCD_SHOW_TIP_WIFISTA_SSID].text, 0, MMI_LCD_SHOW_STRING_LEN);
strncpy(g_LcdShowInfoTab[LCD_SHOW_TIP_WIFISTA_SSID].text, sta_ssid, MMI_LCD_SHOW_STRING_LEN);
@@ -1310,7 +1310,7 @@
T_zMMIWifiStationInfo *pWifiStationInfo = (T_zMMIWifiStationInfo *)taskInfo;
UINT32 wifistatab_index = 0;
BOOL modemConnectState = mmi_net_connected();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLcdWifiStationInfo pWifiStationInfo->wifistation_connect_state= %d ssid=%s!!\n", pWifiStationInfo->wifistation_connect_state, pWifiStationInfo->wifista_ssid);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLcdWifiStationInfo pWifiStationInfo->wifistation_connect_state= %d ssid=%s!!\n", pWifiStationInfo->wifistation_connect_state, pWifiStationInfo->wifista_ssid);
wifistatab_index = mmi_getLcdWifiStationPicturePathFromWifiStationInfo(pWifiStationInfo);
if (wifistatab_index >= sizeof(g_lcdWifiStationConfigInfoTab) / sizeof(T_WifiStationConfigInfo))
@@ -1398,7 +1398,7 @@
if (MMI_IS_VALID_TRAFFIC_NUM(pTrafficInfo->uesd_traffic) && MMI_IS_VALID_TRAFFIC_NUM(pTrafficInfo->total_traffic)
/*&&pTrafficInfo->uesd_traffic <= pTrafficInfo->total_traffic*/) {
memset(g_LcdShowInfoTab[LCD_SHOW_TRAFFIC].text, 0, MMI_LCD_SHOW_STRING_LEN);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLcdTrafficInfo unit = %d!\n", pTrafficInfo->traffic_unit);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLcdTrafficInfo unit = %d!\n", pTrafficInfo->traffic_unit);
if (pTrafficInfo->traffic_unit == TRAFFIC_UNIT_DATA) {
if (pTrafficInfo->traffic_switch == TRAFFIC_LIMIT_SWITCH_OFF) {
if (pTrafficInfo->useddata_unit == TRAFFIC_DATA_UNIT_MB) {
@@ -1455,7 +1455,7 @@
g_LcdShowInfoTab[LCD_SHOW_TRAFFIC_BAR].color = PIXEL_lightwhite;
} else {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI used trffic = %f, total traffic =%f!!!", pTrafficInfo->uesd_traffic, pTrafficInfo->total_traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI used trffic = %f, total traffic =%f!!!", pTrafficInfo->uesd_traffic, pTrafficInfo->total_traffic);
memset(g_LcdShowInfoTab[LCD_SHOW_TRAFFIC].text, 0, MMI_LCD_SHOW_STRING_LEN);
sprintf(g_LcdShowInfoTab[LCD_SHOW_TRAFFIC].text, "%s", "get traffic failed");
g_LcdShowInfoTab[LCD_SHOW_TRAFFIC].textLen = strlen(g_LcdShowInfoTab[LCD_SHOW_TRAFFIC].text);
@@ -1539,7 +1539,7 @@
UINT32 i = 0;
for (i = 0; i < sizeof(g_wpsActTipStringTab) / sizeof(T_WpsActTipStringItem); ++ i) {
if (g_wpsActTipStringTab[i].wps_state == wps_act) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_findStringFromWpsAct %s success!!\n", g_wpsActTipStringTab[i].tipString);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_findStringFromWpsAct %s success!!\n", g_wpsActTipStringTab[i].tipString);
//return g_wpsActTipStringTab[i].tipString;
return (CHAR*)tp_i18n_get_text(g_wpsActTipStringTab[i].tipString);
}
@@ -1697,10 +1697,10 @@
if (pTipInfo->sim_tip != SIM_MAX) {
mmi_setSIMStateTipInfo(pTipInfo->sim_tip);
- slog(MMI_PRINT, SLOG_DEBUG, "zte_mmi mmi_getLcdTipInfo ready for show SIM\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "mmi mmi_getLcdTipInfo ready for show SIM\n");
} else if (mmi_IsShowNetPro()) {
mmi_setNetProTipInfo(pTipInfo->net_pro);
- slog(MMI_PRINT, SLOG_DEBUG, "zte_mmi mmi_getLcdTipInfo ready for show NET CONNECT\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "mmi mmi_getLcdTipInfo ready for show NET CONNECT\n");
}
mmi_set_middle_needshow();
@@ -1717,7 +1717,7 @@
SINT32 mmi_getLcdTipWpsInfo(UINT32 taskInfo)//wps
{
T_zMMIWifiInfo *pWpsInfo = (T_zMMIWifiInfo *)taskInfo;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLcdTipWpsInfo pWpsInfo->wps_state= %d!!\n", pWpsInfo->wps_state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLcdTipWpsInfo pWpsInfo->wps_state= %d!!\n", pWpsInfo->wps_state);
mmi_setWpsActTipInfo(pWpsInfo->wps_state);
mmi_set_middle_needshow();
return MMI_SUCCESS;
diff --git a/ap/app/zte_comm/zte_mmi/mmi_lcd_init.c b/ap/app/zte_comm/zte_mmi/mmi_lcd_init.c
index de0d364..43becb6 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_lcd_init.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_lcd_init.c
@@ -142,7 +142,7 @@
FONT_WEIGHT_REGULAR, FONT_SLANT_ROMAN, FONT_SETWIDTH_NORMAL,
FONT_SPACING_CHARCELL, FONT_UNDERLINE_NONE, FONT_STRUCKOUT_NONE, 24, 0);*/
- slog(MMI_PRINT, SLOG_NORMAL, "zcore ZTE_MMI_InitFont finish!!!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "zcore MMI_InitFont finish!!!!!\n");
}
/* power on off*/
@@ -191,9 +191,9 @@
#if 1
else if (g_mmiCurrentFrameID >= E_POWERONOFF_FRAME_0 && g_mmiCurrentFrameID < E_POWERONOFF_FRAME_11) { //show poweronoff ani
ret = LoadBitmapFromFile(hdc, &bitmap, g_powerOnoffFramTab[g_mmiCurrentFrameID].path);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_showPowerOnOffFrame load bitmap path:%s!!!\n", g_powerOnoffFramTab[g_mmiCurrentFrameID].path);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_showPowerOnOffFrame load bitmap path:%s!!!\n", g_powerOnoffFramTab[g_mmiCurrentFrameID].path);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI load bitmap failed path:%s!!!\n", g_powerOnoffFramTab[g_mmiCurrentFrameID].path);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI load bitmap failed path:%s!!!\n", g_powerOnoffFramTab[g_mmiCurrentFrameID].path);
return;
}
FillBoxWithBitmap(hdc, 0, 0, MMI_LCD_WIDTH, MMI_LCD_HEIGHT, &bitmap);
@@ -241,7 +241,7 @@
BOOL mmi_getShowingPowerOnInfo(VOID)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getShowingPowerOnInfo showingPowerOn:%d!!!\n", showingPowerOn);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getShowingPowerOnInfo showingPowerOn:%d!!!\n", showingPowerOn);
return showingPowerOn;
}
@@ -267,7 +267,7 @@
VOID mmi_startFastPowerOnFrame()
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_startFastPowerOnFrame!! \n\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_startFastPowerOnFrame!! \n\n");
mmi_set_poweroff_charge_show(FALSE);
showingPowerOn = TRUE;
showingPowerOff = FALSE;
@@ -314,7 +314,7 @@
SINT32 mmi_InfoWinProc(HWND hWnd, SINT32 message, WPARAM wParam, LPARAM lParam)
{
//HDC hdc = HDC_INVALID;
- //slog(MMI_PRINT,SLOG_DEBUG,"zcore ZTE_MMI_InfoWinProc !!!!!message=0x%x\n",message);
+ //slog(MMI_PRINT,SLOG_DEBUG,"zcore MMI_InfoWinProc !!!!!message=0x%x\n",message);
switch (message) {
case MSG_CREATE: {
@@ -380,7 +380,7 @@
g_mmiMainWin = CreateMainWindow(&CreateInfo);
// ShowWindow(mmi_info_win, SW_SHOWNORMAL);
- slog(MMI_PRINT, SLOG_NORMAL, "zcore ZTE_MMI_InfoWinCreate finish!!!!!mmi_test_Win=0x%x\n", g_mmiMainWin);
+ slog(MMI_PRINT, SLOG_NORMAL, "zcore MMI_InfoWinCreate finish!!!!!mmi_test_Win=0x%x\n", g_mmiMainWin);
}
@@ -395,7 +395,7 @@
{
MSG msg = {0};
- slog(MMI_PRINT, SLOG_DEBUG, "zcore ZTE_MMI_task_main_entry!!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "zcore MMI_task_main_entry!!!!\n");
prctl(PR_SET_NAME, "mmi_lcd_main", 0, 0, 0);
InitGUI();
//zOss_Sleep(15000);
@@ -439,6 +439,6 @@
mmi_startPowerOnFrame();
}
ret = pthread_create(&mmi_lcdmain_thread, NULL, &lcd_main_entry, NULL);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMIcorem mmi_initLcd end ret = %d\n", ret);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMIcorem mmi_initLcd end ret = %d\n", ret);
}
#endif
diff --git a/ap/app/zte_comm/zte_mmi/mmi_lcd_page.c b/ap/app/zte_comm/zte_mmi/mmi_lcd_page.c
index 5cb5f10..aa808e0 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_lcd_page.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_lcd_page.c
@@ -130,7 +130,7 @@
{
E_zMMI_Lcd_Page_Index index = mmi_get_lcd_page_index();
E_zMMI_Lcd_Page_Index next_index = index;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_lcd_next_page_index index = %d\n", index);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_lcd_next_page_index index = %d\n", index);
while (index < MMI_SHOW_PAGE_MAX) {
if (index == MMI_SHOW_PAGE_FIVE) {
@@ -212,7 +212,7 @@
VOID mmi_handle_lcd_key_switch_page()
{
int page_index = mmi_get_lcd_next_page_index();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_handle_lcd_key_switch_page page_index = %d\n", page_index);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_handle_lcd_key_switch_page page_index = %d\n", page_index);
//¹ö¶¯ÏÔʾSSID¶¨Ê±Æ÷stop £¬Î»ÖÃÖÃΪ0
mmi_stopLcdShowScrollSSIDTimer();
diff --git a/ap/app/zte_comm/zte_mmi/mmi_lcd_timer.c b/ap/app/zte_comm/zte_mmi/mmi_lcd_timer.c
index fdf4458..a25e482 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_lcd_timer.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_lcd_timer.c
@@ -57,7 +57,7 @@
***********************************************************************************/
VOID * mmi_ledon_trafficwarn_timer_callback(VOID *flag)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_ledon_trafficwarn_timer_callback flag:%d\n", (SINT32)flag);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_ledon_trafficwarn_timer_callback flag:%d\n", (SINT32)flag);
if (flag == 1) {
mmi_set_traffic_warn_flag(FALSE);
mmi_set_update_flag(MMI_TASK_TRAFFIC);
@@ -69,25 +69,25 @@
VOID mmi_startLedTrafficWarnTimer(SINT32 time, SINT32 flag)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_startLedTrafficWarnTimer time:%d flag:%d\n", time, flag);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_startLedTrafficWarnTimer time:%d flag:%d\n", time, flag);
if (time == 4000 && flag == 1) {
int ret1 = -1;
ret1 = sc_timer_create(MMI_LED_TRAFFIC_WARN_TIME_4000, TIMER_FLAG_ONCE, MMI_LED_TRAFFIC_WARN_TIMER_4000, &mmi_ledon_trafficwarn_timer_callback, (void *)1);
if (ret1 != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI DBB1 FAILED,cause=%d\n", ret1);
+ slog(MMI_PRINT, SLOG_ERR, "MMI DBB1 FAILED,cause=%d\n", ret1);
}
} else {
if (time == 100) {
int ret2 = -1;
ret2 = sc_timer_create(MMI_LED_TRAFFIC_WARN_TIME_100, TIMER_FLAG_ONCE, MMI_LED_TRAFFIC_WARN_TIMER_100, &mmi_ledon_trafficwarn_timer_callback, (void *)0);
if (ret2 != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI DBB2 FAILED,cause=%d\n", ret2);
+ slog(MMI_PRINT, SLOG_ERR, "MMI DBB2 FAILED,cause=%d\n", ret2);
}
} else {
int ret3 = -1;
ret3 = sc_timer_create(MMI_LED_TRAFFIC_WARN_TIME_1000, TIMER_FLAG_ONCE, MMI_LED_TRAFFIC_WARN_TIMER_1000, &mmi_ledon_trafficwarn_timer_callback, (void *)0);
if (ret3 != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI DBB3 FAILED,cause=%d\n", ret3);
+ slog(MMI_PRINT, SLOG_ERR, "MMI DBB3 FAILED,cause=%d\n", ret3);
}
}
}
@@ -106,7 +106,7 @@
***********************************************************************************/
static VOID * mmi_lcd_sms_timer_callback(VOID *arg)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_lcd_sms_timer_callback!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_lcd_sms_timer_callback!!!\n");
mmi_set_update_flag(MMI_TASK_SMS);
return NULL;
}
@@ -115,7 +115,7 @@
int ret = -1;
ret = sc_timer_create(MMI_LCD_SMS_TIME, TIMER_FLAG_ONCE, MMI_LCD_SMS_TIMER_PERIOD, &mmi_lcd_sms_timer_callback, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_startLcdSmsTimer FAILED,cause=%d\n", ret);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_startLcdSmsTimer FAILED,cause=%d\n", ret);
}
}
@@ -126,7 +126,7 @@
static VOID * mmi_lcd_battery_timer_callback(SINT32 task)
{
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI mmi_lcd_battery_timer_callback!!!\n");
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI mmi_lcd_battery_timer_callback!!!\n");
if (!g_mmi_poweroff_turnon_flag) {
mmi_set_update_flag((E_zMmi_Task)task);
}
@@ -139,7 +139,7 @@
int ret = -1;
ret = sc_timer_create(MMI_LCD_BATTERY_TIME, TIMER_FLAG_ONCE, MMI_LCD_BATTERY_TIMER_PERIOD, &mmi_lcd_battery_timer_callback, (void *)task);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_startLcdBatteryTimer FAILED,cause=%d\n", ret);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_startLcdBatteryTimer FAILED,cause=%d\n", ret);
}
g_mmi_lcd_battery_timer_state = TRUE;
}
@@ -156,7 +156,7 @@
static VOID * mmi_lcd_poweronoff_timer_callback(VOID *arg)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_lcd_poweronoff_timer_callback CB!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_lcd_poweronoff_timer_callback CB!!!\n");
mmi_changePowerOnOffFrame();
InvalidateRect(mmi_getMainWnd(), NULL, FALSE);
return NULL;
@@ -166,7 +166,7 @@
int ret = -1;
ret = sc_timer_create(MMI_LCD_POWER_ON_OFF_TIME, TIMER_FLAG_ONCE, MMI_LCD_POWER_ON_OFF_TIMER_PERIOD, &mmi_lcd_poweronoff_timer_callback, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, " ZTE_MMI mmi_startLcdPowerOnOffTimer FAILED,cause=%d!!\n", ret);
+ slog(MMI_PRINT, SLOG_ERR, " MMI mmi_startLcdPowerOnOffTimer FAILED,cause=%d!!\n", ret);
}
}
VOID mmi_startLcdPowerOnOffTextFrameTimer()
@@ -175,7 +175,7 @@
int ret = -1;
ret = sc_timer_create(MMI_LCD_POWER_ON_LAST_FRAME_TIME, TIMER_FLAG_ONCE, MMI_LCD_POWER_ON_LAST_FRAME_TIMER_PERIOD, &mmi_lcd_poweronoff_timer_callback, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, " ZTE_MMI mmi_startLcdPowerOnOffTextFrameTimer FAILED,cause=%d!!\n", ret);
+ slog(MMI_PRINT, SLOG_ERR, " MMI mmi_startLcdPowerOnOffTextFrameTimer FAILED,cause=%d!!\n", ret);
}
}
VOID mmi_stopLcdPowerOnOffTimer()
@@ -189,7 +189,7 @@
/*¹ö¶¯ÏÔʾSSID WifiKey¶¨Ê±Æ÷*/
static VOID * mmi_lcd_scrollssid_timer_callback(VOID *func)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI =========mmi_lcd_scrollssid_timer_callback===========!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI =========mmi_lcd_scrollssid_timer_callback===========!!!\n");
if (func != 0) {
((SCROLLED_TIMER_CALLBACK)func)();
}
@@ -210,7 +210,7 @@
int ret = -1;
ret = sc_timer_create(MMI_LCD_SCROLL_TIME, TIMER_FLAG_ONCE, MMI_LCD_SCROLL_TIMER_PERIOD, &mmi_lcd_scrollssid_timer_callback, (void *)func);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, " ZTE_MMI mmi_startLcdShowScrollSSIDTimer FAILED,cause=%d!!\n", ret);
+ slog(MMI_PRINT, SLOG_ERR, " MMI mmi_startLcdShowScrollSSIDTimer FAILED,cause=%d!!\n", ret);
}
g_mmi_lcd_scrollssid_timer_state = TRUE;
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_led.c b/ap/app/zte_comm/zte_mmi/mmi_led.c
index acc35a8..f81ea82 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_led.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_led.c
@@ -49,7 +49,7 @@
***********************************************************************************/
static VOID mmi_led_operate_blink_off(T_zMmi_Led_Info* userInfo)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_led_operate name= %d\n", userInfo->led_name);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_led_operate name= %d\n", userInfo->led_name);
T_zMmi_Led_Info tmpInfo = {0};
memcpy((VOID *)(&tmpInfo), (const VOID *)userInfo, sizeof(T_zMmi_Led_Info));
tmpInfo.led_state = LED_STATE_OFF;
@@ -238,7 +238,7 @@
{
T_zMmi_Led_Info *led_info = (T_zMmi_Led_Info *)ledInfo;
T_zMmi_Led_Blink_Time blink_time = {0};
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_showLed name= %d ,state = %d, color=%d !\n", led_info->led_name, led_info->led_state, led_info->led_color);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_showLed name= %d ,state = %d, color=%d !\n", led_info->led_name, led_info->led_state, led_info->led_color);
mmi_set_led_laststate(led_info);
if (led_info->led_state == LED_STATE_BLINK) {
@@ -254,14 +254,14 @@
static VOID mmi_setLedShowInfo(T_zMmi_Led_Info* outLedInfo, T_zMmi_Led_Info inLedInfo)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_setLedShowInfo inLedInfo name:%d,state:%d,color:%d\n", inLedInfo.led_name, inLedInfo.led_state, inLedInfo.led_color);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_setLedShowInfo inLedInfo name:%d,state:%d,color:%d\n", inLedInfo.led_name, inLedInfo.led_state, inLedInfo.led_color);
outLedInfo->led_name = inLedInfo.led_name;
outLedInfo->led_color = inLedInfo.led_color;
outLedInfo->traffic = inLedInfo.traffic;
outLedInfo->led_state = inLedInfo.led_state;
outLedInfo->ledBlink_speed = inLedInfo.ledBlink_speed;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_setLedShowInfo outLedInfo name:%d,state:%d,color:%d\n", outLedInfo->led_name, outLedInfo->led_state, outLedInfo->led_color);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_setLedShowInfo outLedInfo name:%d,state:%d,color:%d\n", outLedInfo->led_name, outLedInfo->led_state, outLedInfo->led_color);
}
/**********************************************************************************
*º¯Êý×÷ÓÃ:»ñÈ¡¶ÌÐŵÆÐÅÏ¢
@@ -272,7 +272,7 @@
T_zMmi_Sms_Info *pSmsInfo = (T_zMmi_Sms_Info*)taskInfo;
UINT32 i = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedSmsInfo recvBox_sta=%d\n",pSmsInfo->recvBox_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedSmsInfo recvBox_sta=%d\n",pSmsInfo->recvBox_sta);
for (i = 0; i < (UINT32)mmi_get_config_tab_size(LED_SMS) / sizeof(T_zMmiSmsLedConfig); ++ i) {
if (pSmsInfo->recvBox_sta == g_mmi_smsled_config_tab[i].sms_info.recvBox_sta) {
@@ -291,7 +291,7 @@
T_zMmi_Voip_Info *pVoipInfo = (T_zMmi_Voip_Info*)taskInfo;
UINT32 i = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedVoipInfo voip_sta=%d\n",pVoipInfo->voip_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedVoipInfo voip_sta=%d\n",pVoipInfo->voip_sta);
for (i = 0; i < (UINT32)mmi_get_config_tab_size(LED_VOIP) / sizeof(T_zMmiVoipLedConfig); ++ i) {
if (pVoipInfo->voip_sta == g_mmi_voipled_config_tab[i].voip_info.voip_sta) {
@@ -310,7 +310,7 @@
T_zMmi_Rj11_Info *pVoipInfo = (T_zMmi_Rj11_Info*)taskInfo;
UINT32 i = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedRj11Info rj11_sta=%d\n",pVoipInfo->rj11_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedRj11Info rj11_sta=%d\n",pVoipInfo->rj11_sta);
for (i = 0; i < (UINT32)mmi_get_config_tab_size(LED_RJ11) / sizeof(T_zMmiRj11LedConfig); ++ i) {
if (pVoipInfo->rj11_sta == g_mmi_rj11led_config_tab[i].rj11_info.rj11_sta) {
@@ -329,7 +329,7 @@
T_zMmi_Led_Info* pLedInfo = (T_zMmi_Led_Info*)outLedInfo;
T_zMMIBatteryInfo *pBatteryInfo = (T_zMMIBatteryInfo *)taskInfo;
UINT32 i = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedBatteryInfo chg_sta=%d\n", pBatteryInfo->chg_state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedBatteryInfo chg_sta=%d\n", pBatteryInfo->chg_state);
for (i = 0; i < (UINT32)mmi_get_config_tab_size(LED_BATTERY) / sizeof(T_zMmiBatteryLedConfig); ++ i) {
if (pBatteryInfo->chg_state == g_mmi_batled_config_tab[i].bat_info.chg_state) {
if (pBatteryInfo->chg_state == STATE_DISCHARGE) {
@@ -357,7 +357,7 @@
int customer_type = g_customer_type;
E_zMmi_Net_Mode net_mode = pNetInfo->net_mode;
char mmi_nv_value[32] = {0};
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedNetInfo net_mode=%d connect %d socket %d customer_type=%d\n",pNetInfo->net_mode,pNetInfo->connect_status,pNetInfo->socket_state,g_customer_type);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedNetInfo net_mode=%d connect %d socket %d customer_type=%d\n",pNetInfo->net_mode,pNetInfo->connect_status,pNetInfo->socket_state,g_customer_type);
sc_cfg_get("mmi_led_plan", mmi_nv_value, sizeof(mmi_nv_value));
if (0 == strcmp(mmi_nv_value, "yaoyuan")) {
@@ -379,7 +379,7 @@
} else {
if ((pNetInfo->connect_status == g_mmi_netled_config_tab[i].net_info.connect_status) && (pNetInfo->socket_state == g_mmi_netled_config_tab[i].net_info.socket_state)) {
mmi_setLedShowInfo(pLedInfo, g_mmi_netled_config_tab[i].led_info);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_getLedNetInfo netmode = %d, con_sta = %d,i = %d,ledsta = %d\n", net_mode, pNetInfo->connect_status, i, g_mmi_netled_config_tab[i].led_info.led_state);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_getLedNetInfo netmode = %d, con_sta = %d,i = %d,ledsta = %d\n", net_mode, pNetInfo->connect_status, i, g_mmi_netled_config_tab[i].led_info.led_state);
return MMI_SUCCESS;
}
}
@@ -405,7 +405,7 @@
customer_type = CUSTOMER_YAOYUAN;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedNetSigInfo net_mode=%d signal_num %d customer_type=%d\n",pNetInfo->net_mode,pNetInfo->signal_num,customer_type);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedNetSigInfo net_mode=%d signal_num %d customer_type=%d\n",pNetInfo->net_mode,pNetInfo->signal_num,customer_type);
for (i = 0; i < (UINT32)mmi_get_config_tab_size(LED_SIGNAL) / sizeof(T_zMmiNetLedConfig); ++ i) {
if ((net_mode == g_mmi_signalled_config_tab[i].net_info.net_mode) && (customer_type == g_mmi_signalled_config_tab[i].custom_type)) {
@@ -417,7 +417,7 @@
} else {
if (pNetInfo->signal_num == g_mmi_signalled_config_tab[i].net_info.signal_num) {
mmi_setLedShowInfo(pLedInfo, g_mmi_signalled_config_tab[i].led_info);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_getLedNetSigInfo netmode = %d, con_sta = %d,i = %d,ledsta = %d\n", net_mode, pNetInfo->connect_status, i, g_mmi_netled_config_tab[i].led_info.led_state);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_getLedNetSigInfo netmode = %d, con_sta = %d,i = %d,ledsta = %d\n", net_mode, pNetInfo->connect_status, i, g_mmi_netled_config_tab[i].led_info.led_state);
return MMI_SUCCESS;
}
}
@@ -435,7 +435,7 @@
T_zMMIWifiInfo * pWifiInfo = (T_zMMIWifiInfo *)taskInfo;
UINT32 i = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedWifiInfo wifi_state=%d, wifidata_state=%d\n",pWifiInfo->wifi_state,pWifiInfo->wifidata_state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedWifiInfo wifi_state=%d, wifidata_state=%d\n",pWifiInfo->wifi_state,pWifiInfo->wifidata_state);
for (i = 0; i < (UINT32)mmi_get_config_tab_size(LED_LAN) / sizeof(T_zMmiWifiLedConfig); ++ i) {
if (pWifiInfo->wifi_state == g_mmi_wifiled_config_tab[i].wifi_info.wifi_state
@@ -458,7 +458,7 @@
T_zMMIWifiInfo * pWifiInfo = (T_zMMIWifiInfo *)taskInfo;
UINT32 i = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedWpsInfo wps_state=%d customer_type=%d\n",pWifiInfo->wps_state, g_customer_type);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedWpsInfo wps_state=%d customer_type=%d\n",pWifiInfo->wps_state, g_customer_type);
for (i = 0; i < (UINT32)mmi_get_config_tab_size(LED_WPS) / sizeof(T_zMmiWifiLedConfig); ++ i) {
if (pWifiInfo->wps_state == g_mmi_wpsled_config_tab[i].wifi_info.wps_state
@@ -476,7 +476,7 @@
***********************************************************************************/
VOID mmi_set_led_double_blink()
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_set_led_double_blink 1000ms off\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_set_led_double_blink 1000ms off\n");
T_zMmi_Led_Info userInfo = {0};
userInfo.led_name = LED_WAN;
@@ -490,7 +490,7 @@
int sem_ret1 = -1;
sem_ret1 = mmi_GetSemaphoreEintr(&g_mmi_traffic_warn_sem_id, MMI_WAIT_FOREVER);
if (sem_ret1 != MMI_SUCCESS) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI DBget1 FAILED! errno=%d\n",errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI DBget1 FAILED! errno=%d\n",errno);
}
userInfo.led_color = LED_COLOR_RED;
userInfo.led_state = LED_STATE_ON;
@@ -500,7 +500,7 @@
int sem_ret2 = -1;
sem_ret2 = mmi_GetSemaphoreEintr(&g_mmi_traffic_warn_sem_id, MMI_WAIT_FOREVER);
if (sem_ret2 != MMI_SUCCESS) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI DBget2 FAILED! errno=%d\n",errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI DBget2 FAILED! errno=%d\n",errno);
}
userInfo.led_state = LED_STATE_OFF;
@@ -510,7 +510,7 @@
int sem_ret3 = -1;
sem_ret3 = mmi_GetSemaphoreEintr(&g_mmi_traffic_warn_sem_id, MMI_WAIT_FOREVER);
if (sem_ret3 != MMI_SUCCESS) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI DBget3 FAILED! errno=%d\n",errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI DBget3 FAILED! errno=%d\n",errno);
}
userInfo.led_state = LED_STATE_ON;
@@ -520,7 +520,7 @@
int sem_ret4 = -1;
sem_ret4 = mmi_GetSemaphoreEintr(&g_mmi_traffic_warn_sem_id, MMI_WAIT_FOREVER);
if (sem_ret4 != MMI_SUCCESS) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI DBget4 FAILED! errno=%d\n",errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI DBget4 FAILED! errno=%d\n",errno);
}
userInfo.led_state = LED_STATE_OFF;
@@ -530,7 +530,7 @@
int sem_ret5 = -1;
sem_ret5 = mmi_GetSemaphoreEintr(&g_mmi_traffic_warn_sem_id, MMI_WAIT_FOREVER);
if (sem_ret5 != MMI_SUCCESS) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI DBget5 FAILED! errno=%d\n",errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI DBget5 FAILED! errno=%d\n",errno);
}
mmi_set_update_flag(MMI_TASK_NET);
@@ -571,7 +571,7 @@
#endif
UINT32 temp = 100 * (pTrafficInfo->uesd_traffic / pTrafficInfo->total_traffic);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedTrafficInfo temp = %d, level = %d\n", temp, pTrafficInfo->warning_tip_level);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedTrafficInfo temp = %d, level = %d\n", temp, pTrafficInfo->warning_tip_level);
if ((pTrafficInfo->warning_tip_level != 0) && (temp >= pTrafficInfo->warning_tip_level) && (pTrafficInfo->traffic_switch == TRAFFIC_LIMIT_SWITCH_ON)) {
if (!s_mmi_trafficled_warn_flag) {
mmi_set_traffic_warn_flag(TRUE);
@@ -590,7 +590,7 @@
{
T_zMmi_Led_Info userInfo = {0};
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_set_allleds_off mode = %d\n", mode);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_set_allleds_off mode = %d\n", mode);
mmi_set_traffic_warn_flag(FALSE);
mmi_stopLedTrafficWarnTimer();
mmi_clean_update_flag(MMI_TASK_NET);
@@ -741,7 +741,7 @@
T_zMmi_Led_Info* pLedInfo = (T_zMmi_Led_Info*)outLedInfo;
pLedInfo->traffic = TRAFFIC_LED_MAX;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_getLedCtrlInfo pCtrlInfo->ledmode = %d\n", pCtrlInfo->ledmode);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_getLedCtrlInfo pCtrlInfo->ledmode = %d\n", pCtrlInfo->ledmode);
switch (pCtrlInfo->ledmode) {
case MMI_ACTIVE_MODE:
mmi_set_update_flag(MMI_TASK_BATTERY);
diff --git a/ap/app/zte_comm/zte_mmi/mmi_led_adapter.c b/ap/app/zte_comm/zte_mmi/mmi_led_adapter.c
index 0f179fc..f9ad4b7 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_led_adapter.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_led_adapter.c
@@ -41,17 +41,17 @@
ret_fd = open(filepath, O_RDWR);
if (ret_fd == -1) {
- slog(MMI_PRINT, SLOG_ERR,"ZTE_MMI mmi_file_operate open file fail: %s!\n", filepath);
+ slog(MMI_PRINT, SLOG_ERR,"MMI mmi_file_operate open file fail: %s!\n", filepath);
return MMI_ERROR;
}
len = strlen(buf);
if (write(ret_fd, buf, len) != len) {
- slog(MMI_PRINT, SLOG_ERR,"ZTE_MMI mmi_file_operate write file fail: %s!\n", filepath);
+ slog(MMI_PRINT, SLOG_ERR,"MMI mmi_file_operate write file fail: %s!\n", filepath);
close((int)ret_fd);
return MMI_ERROR;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_file_operate write file: %s success!!\n", filepath);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_file_operate write file: %s success!!\n", filepath);
close((int)ret_fd);
#endif
return MMI_SUCCESS;
@@ -92,7 +92,7 @@
itoa((int)(info->timoff), buf2, 10);
ret3 = mmi_file_operate(info->fileblinktimeoff, buf2);
if (ret1 == MMI_ERROR || ret2 == MMI_ERROR || ret3 == MMI_ERROR) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI led_setFastBlinkOn fail ret1 = %d ret2 = %d ret3 = %d!\n", ret1, ret2, ret3);
+ slog(MMI_PRINT, SLOG_ERR, "MMI led_setFastBlinkOn fail ret1 = %d ret2 = %d ret3 = %d!\n", ret1, ret2, ret3);
return MMI_ERROR;
}
return MMI_SUCCESS;
@@ -184,7 +184,7 @@
**********************************************************************************/
VOID mmi_BatLedOffOpt()
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_BatLedOffOpt !\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_BatLedOffOpt !\n");
mmi_led_opt_blinkoff(LED_BATTERY_GREEN_BLINKSWITCH);
mmi_led_opt_off(LED_BATTERY_GREEN_BRIGHTNESS);
mmi_led_opt_blinkoff(LED_BATTERY_RED_BLINKSWITCH);
@@ -253,7 +253,7 @@
static VOID mmi_BatLedOnOpt(MMI_LED_COLOR color)
{
MMI_LED_LASTSTATE bat_sta = mmi_getBatLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_BatLedOnOpt color=%d, bat_sta = %d!\n", color, bat_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_BatLedOnOpt color=%d, bat_sta = %d!\n", color, bat_sta);
if (color == LED_COLOR_RED) {
if (bat_sta == LED_RED_ON) {
@@ -284,14 +284,14 @@
}
mmi_setBatLedState(LED_YELLOW_ON);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_BatLedOnOpt invalid led color!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_BatLedOnOpt invalid led color!\n");
}
}
static VOID mmi_BatLedBlinkOpt(MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
MMI_LED_LASTSTATE bat_sta = mmi_getBatLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_BatLedFastBlinkOpt color=%d bat_sta = %d!\n", color, bat_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_BatLedFastBlinkOpt color=%d bat_sta = %d!\n", color, bat_sta);
if (color == LED_COLOR_RED) {
if (bat_sta == LED_RED_BLINK) {
return;
@@ -317,13 +317,13 @@
}
mmi_setBatLedState(LED_YELLOW_BLINK);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_BatLedFastBlinkOpt invalid led color!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_BatLedFastBlinkOpt invalid led color!\n");
}
}
static VOID mmi_processbBatteryLed(MMI_LED_STATE state, MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_processbBatteryLed state = %d color = %d !\n", state, color);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_processbBatteryLed state = %d color = %d !\n", state, color);
switch (state) {
case LED_STATE_ON: {
mmi_BatLedOnOpt(color);
@@ -338,7 +338,7 @@
break;
}
default: {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_processbBatteryLed invalid state!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_processbBatteryLed invalid state!\n");
break;
}
}
@@ -350,7 +350,7 @@
**********************************************************************************/
static VOID mmi_WanLedOffOpt()
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_WanLedOffOpt !\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_WanLedOffOpt !\n");
mmi_led_opt_blinkoff(LED_WAN_GREEN_BLINKSWITCH);
mmi_led_opt_off(LED_WAN_GREEN_BRIGHTNESS);
mmi_led_opt_blinkoff(LED_WAN_RED_BLINKSWITCH);
@@ -438,7 +438,7 @@
static VOID mmi_WanLedOnOpt(MMI_LED_COLOR color)
{
MMI_LED_LASTSTATE wan_sta = mmi_getWanLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_WanLedOnOpt color=%d, wan_sta = %d!\n", color, wan_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_WanLedOnOpt color=%d, wan_sta = %d!\n", color, wan_sta);
if (color == LED_COLOR_RED) {
if (wan_sta == LED_RED_ON) {
return;
@@ -476,7 +476,7 @@
}
mmi_setWanLedState(LED_BLUE_ON);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_WanLedOnOpt invalid led color!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_WanLedOnOpt invalid led color!\n");
}
}
@@ -484,7 +484,7 @@
{
MMI_LED_LASTSTATE wan_sta = mmi_getWanLedState();
MMI_LED_BLINK_SPEED wan_speed = mmi_getWanLedSpeed();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_WanLedBlinkOpt color=%d, wan_sta = %d wan_speed_last=%d!\n", color, wan_sta, wan_speed);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_WanLedBlinkOpt color=%d, wan_sta = %d wan_speed_last=%d!\n", color, wan_sta, wan_speed);
if (color == LED_COLOR_RED) {
if (wan_sta == LED_RED_BLINK) {
return;
@@ -519,13 +519,13 @@
}
mmi_setWanLedState(LED_BLUE_BLINK);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_WanLedFastBlinkOpt invalid led color!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_WanLedFastBlinkOpt invalid led color!\n");
}
}
static VOID mmi_processWanLed(MMI_LED_STATE state, MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time, MMI_LED_BLINK_SPEED speed)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_processWanLed state = %d color=%d speed=%d!\n", state, color, speed);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_processWanLed state = %d color=%d speed=%d!\n", state, color, speed);
switch (state) {
case LED_STATE_ON: {
mmi_WanLedOnOpt(color);
@@ -540,7 +540,7 @@
break;
}
default: {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_processNetLed invalid state!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_processNetLed invalid state!\n");
break;
}
}
@@ -551,7 +551,7 @@
**********************************************************************************/
static VOID mmi_LanLedOffOpt(MMI_LED_COLOR color)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_LanLedOffOpt!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_LanLedOffOpt!\n");
if (color == LED_COLOR_GREEN) {
mmi_led_opt_blinkoff(LED_LAN_GREEN_BLINKSWITCH);
mmi_led_opt_off(LED_LAN_GREEN_BRIGHTNESS);
@@ -597,7 +597,7 @@
static VOID mmi_LanLedOnOpt(MMI_LED_COLOR color)
{
MMI_LED_LASTSTATE lan_sta = mmi_getLanLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_LanLedOnOpt lan_sta = %d!\n", lan_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_LanLedOnOpt lan_sta = %d!\n", lan_sta);
if (color == LED_COLOR_GREEN) {
if (lan_sta == LED_GREEN_ON) {
return;
@@ -615,14 +615,14 @@
}
mmi_setLanLedState(LED_BLUE_ON);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_LanLedOnOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_LanLedOnOpt invalid color!!\n");
}
}
static VOID mmi_LanLedBlinkOpt(MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
MMI_LED_LASTSTATE lan_sta = mmi_getLanLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_LanLedBlinkOpt lan_sta = %d!\n", lan_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_LanLedBlinkOpt lan_sta = %d!\n", lan_sta);
if (color == LED_COLOR_GREEN) {
if (lan_sta == LED_GREEN_BLINK) {
return;
@@ -640,12 +640,12 @@
}
mmi_setLanLedState(LED_BLUE_BLINK);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_LanLedBlinkOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_LanLedBlinkOpt invalid color!!\n");
}
}
static VOID mmi_processLanLed(MMI_LED_STATE state, MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_processLanLed state=%d!\n", state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_processLanLed state=%d!\n", state);
switch (state) {
case LED_STATE_ON: {
mmi_LanLedOnOpt(color);
@@ -660,7 +660,7 @@
break;
}
default: {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_processLanLed invalid state!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_processLanLed invalid state!\n");
break;
}
}
@@ -672,7 +672,7 @@
**********************************************************************************/
static VOID mmi_SmsLedOffOpt(MMI_LED_COLOR color)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_SmsLedOffOpt!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_SmsLedOffOpt!\n");
if (color == LED_COLOR_GREEN) {
mmi_led_opt_blinkoff(LED_SMS_GREEN_BLINKSWITCH);
mmi_led_opt_off(LED_SMS_GREEN_BRIGHTNESS);
@@ -719,7 +719,7 @@
static VOID mmi_SmsLedOnOpt(MMI_LED_COLOR color)
{
MMI_LED_LASTSTATE sms_sta = mmi_getSmsLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_SmsLedOnOpt sms_sta = %d!\n", sms_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_SmsLedOnOpt sms_sta = %d!\n", sms_sta);
if (color == LED_COLOR_GREEN) {
if (sms_sta == LED_GREEN_ON) {
return;
@@ -737,13 +737,13 @@
}
mmi_setSmsLedState(LED_BLUE_ON);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_SmsLedOnOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_SmsLedOnOpt invalid color!!\n");
}
}
static VOID mmi_SmsLedBlinkOpt(MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
MMI_LED_LASTSTATE sms_sta = mmi_getSmsLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_SmsLedBlinkOpt sms_sta = %d!\n", sms_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_SmsLedBlinkOpt sms_sta = %d!\n", sms_sta);
if (color == LED_COLOR_GREEN) {
if (sms_sta == LED_GREEN_BLINK) {
return;
@@ -761,13 +761,13 @@
}
mmi_setSmsLedState(LED_BLUE_BLINK);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_SmsLedBlinkOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_SmsLedBlinkOpt invalid color!!\n");
}
}
static VOID mmi_processSmsLed(MMI_LED_STATE state, MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_processSmsLed state=%d\n", state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_processSmsLed state=%d\n", state);
switch (state) {
case LED_STATE_ON: {
mmi_SmsLedOnOpt(color);
@@ -782,7 +782,7 @@
break;
}
default: {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_processSmsLed invalid state!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_processSmsLed invalid state!\n");
break;
}
}
@@ -873,7 +873,7 @@
}
static VOID mmi_processTrafficLed(MMI_LED_STATE state, MMI_TRAFFIC_LED traffic)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_processTrafficLed state = %d traffic = %d\n", state, traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_processTrafficLed state = %d traffic = %d\n", state, traffic);
switch (state) {
case LED_STATE_ON:
mmi_TrafficLedOnOpt(traffic);
@@ -895,7 +895,7 @@
**********************************************************************************/
static VOID mmi_VoipLedOffOpt(MMI_LED_COLOR color)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_VoipLedOffOpt!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_VoipLedOffOpt!\n");
if (color == LED_COLOR_BLUE) {
mmi_led_opt_blinkoff(LED_VOIP_BLUE_BLINKSWITCH);
mmi_led_opt_off(LED_VOIP_BLUE_BRIGHTNESS);
@@ -923,7 +923,7 @@
static VOID mmi_VoipLedOnOpt(MMI_LED_COLOR color)
{
MMI_LED_LASTSTATE voip_sta = mmi_getVoipLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_VoipLedOnOpt voip_sta = %d!\n", voip_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_VoipLedOnOpt voip_sta = %d!\n", voip_sta);
if (color == LED_COLOR_BLUE) {
if (voip_sta == LED_BLUE_ON) {
return;
@@ -933,13 +933,13 @@
}
mmi_setVoipLedState(LED_BLUE_ON);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_VoipLedOnOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_VoipLedOnOpt invalid color!!\n");
}
}
static VOID mmi_VoipLedBlinkOpt(MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
MMI_LED_LASTSTATE voip_sta = mmi_getVoipLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_VoipLedBlinkOpt voip_sta = %d!\n", voip_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_VoipLedBlinkOpt voip_sta = %d!\n", voip_sta);
if (color == LED_COLOR_BLUE) {
if (voip_sta == LED_BLUE_BLINK) {
return;
@@ -949,13 +949,13 @@
}
mmi_setVoipLedState(LED_BLUE_BLINK);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_VoipLedBlinkOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_VoipLedBlinkOpt invalid color!!\n");
}
}
static VOID mmi_processVoipLed(MMI_LED_STATE state, MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_processVoipLed state=%d\n", state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_processVoipLed state=%d\n", state);
switch (state) {
case LED_STATE_ON: {
mmi_VoipLedOnOpt(color);
@@ -970,7 +970,7 @@
break;
}
default: {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_processVoipLed invalid state!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_processVoipLed invalid state!\n");
break;
}
}
@@ -1031,7 +1031,7 @@
static VOID mmi_SignalLedOffOpt(MMI_LED_COLOR color)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_SignalLedOffOpt!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_SignalLedOffOpt!\n");
if (color == LED_COLOR_BLUE) {
mmi_led_opt_blinkoff(LED_SIGNAL1_BLUE_BLINKSWITCH);
mmi_led_opt_off(LED_SIGNAL1_BLUE_BRIGHTNESS);
@@ -1078,7 +1078,7 @@
break;
default:
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_SignalLedBlueOn state = %d!\n", state);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_SignalLedBlueOn state = %d!\n", state);
break;
}
}
@@ -1099,7 +1099,7 @@
{
MMI_LED_LASTSTATE sig_sta = mmi_getSignalLedState();
MMI_LED_LASTSTATE traffic_trans = mmi_transSignalLedState(traffic);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_SignalLedOnOpt sig_sta = %d,%d!\n", sig_sta, traffic_trans);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_SignalLedOnOpt sig_sta = %d,%d!\n", sig_sta, traffic_trans);
if (color == LED_COLOR_BLUE) {
if (sig_sta == traffic_trans) {
return;
@@ -1109,13 +1109,13 @@
}
mmi_setSignalLedState(traffic_trans);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_SignalLedOnOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_SignalLedOnOpt invalid color!!\n");
}
}
static VOID mmi_SignalLedBlinkOpt(MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
MMI_LED_LASTSTATE sig_sta = mmi_getSignalLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_SignalLedBlinkOpt voip_sta = %d!\n", sig_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_SignalLedBlinkOpt voip_sta = %d!\n", sig_sta);
if (color == LED_COLOR_BLUE) {
if (sig_sta == LED_BLUE_BLINK) {
return;
@@ -1125,13 +1125,13 @@
}
mmi_setSignalLedState(LED_BLUE_BLINK);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_SignalLedBlinkOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_SignalLedBlinkOpt invalid color!!\n");
}
}
static VOID mmi_processSignalLed(MMI_LED_STATE state, MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time, MMI_TRAFFIC_LED traffic)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_processSignalLed state=%d\n", state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_processSignalLed state=%d\n", state);
switch (state) {
case LED_STATE_ON: {
mmi_SignalLedOnOpt(color, traffic);
@@ -1146,7 +1146,7 @@
break;
}
default: {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_processSignalLed invalid state!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_processSignalLed invalid state!\n");
break;
}
}
@@ -1169,7 +1169,7 @@
static VOID mmi_WpsLedOffOpt(MMI_LED_COLOR color)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_WpsLedOffOpt!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_WpsLedOffOpt!\n");
if (color == LED_COLOR_BLUE) {
mmi_led_opt_blinkoff(LED_WPS_BLUE_BLINKSWITCH);
mmi_led_opt_off(LED_WPS_BLUE_BRIGHTNESS);
@@ -1197,7 +1197,7 @@
static VOID mmi_WpsLedOnOpt(MMI_LED_COLOR color)
{
MMI_LED_LASTSTATE sig_sta = mmi_getWpsLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_WpsLedOnOpt sig_sta = %d!\n", sig_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_WpsLedOnOpt sig_sta = %d!\n", sig_sta);
if (color == LED_COLOR_BLUE) {
if (sig_sta == LED_BLUE_ON) {
@@ -1208,13 +1208,13 @@
}
mmi_setWpsLedState(LED_BLUE_ON);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_WpsLedOnOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_WpsLedOnOpt invalid color!!\n");
}
}
static VOID mmi_WpsLedBlinkOpt(MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
MMI_LED_LASTSTATE sig_sta = mmi_getWpsLedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_SignalLedBlinkOpt voip_sta = %d!\n", sig_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_SignalLedBlinkOpt voip_sta = %d!\n", sig_sta);
if (color == LED_COLOR_BLUE) {
if (sig_sta == LED_BLUE_BLINK) {
return;
@@ -1224,13 +1224,13 @@
}
mmi_setWpsLedState(LED_BLUE_BLINK);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_SignalLedBlinkOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_SignalLedBlinkOpt invalid color!!\n");
}
}
static VOID mmi_processWpsLed(MMI_LED_STATE state, MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_processWpsLed state=%d\n", state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_processWpsLed state=%d\n", state);
switch (state) {
case LED_STATE_ON: {
@@ -1246,7 +1246,7 @@
break;
}
default: {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_processWpsLed invalid state!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_processWpsLed invalid state!\n");
break;
}
}
@@ -1269,7 +1269,7 @@
static VOID mmi_Rj11LedOffOpt(MMI_LED_COLOR color)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_Rj11LedOffOpt!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_Rj11LedOffOpt!\n");
if (color == LED_COLOR_BLUE) {
mmi_led_opt_blinkoff(LED_RJ11_BLUE_BLINKSWITCH);
mmi_led_opt_off(LED_RJ11_BLUE_BRIGHTNESS);
@@ -1297,7 +1297,7 @@
static VOID mmi_Rj11LedOnOpt(MMI_LED_COLOR color)
{
MMI_LED_LASTSTATE sig_sta = mmi_getRj11LedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_Rj11LedOnOpt sig_sta = %d!\n", sig_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_Rj11LedOnOpt sig_sta = %d!\n", sig_sta);
if (color == LED_COLOR_BLUE) {
if (sig_sta == LED_BLUE_ON) {
@@ -1308,13 +1308,13 @@
}
mmi_setRj11LedState(LED_BLUE_ON);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_Rj11LedOnOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_Rj11LedOnOpt invalid color!!\n");
}
}
static VOID mmi_Rj11LedBlinkOpt(MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
MMI_LED_LASTSTATE sig_sta = mmi_getRj11LedState();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_Rj11LedBlinkOpt voip_sta = %d!\n", sig_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_Rj11LedBlinkOpt voip_sta = %d!\n", sig_sta);
if (color == LED_COLOR_BLUE) {
if (sig_sta == LED_BLUE_BLINK) {
return;
@@ -1324,14 +1324,14 @@
}
mmi_setRj11LedState(LED_BLUE_BLINK);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_Rj11LedBlinkOpt invalid color!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_Rj11LedBlinkOpt invalid color!!\n");
}
}
static VOID mmi_processRj11Led(MMI_LED_STATE state, MMI_LED_COLOR color, T_zMmi_Led_Blink_Time time)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_processRj11Led state=%d\n", state);
-printf("ZTE_MMI mmi_processRj11Led state=%d\n", state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_processRj11Led state=%d\n", state);
+printf("MMI mmi_processRj11Led state=%d\n", state);
switch (state) {
case LED_STATE_ON: {
@@ -1347,7 +1347,7 @@
break;
}
default: {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_processRj11Led invalid state!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_processRj11Led invalid state!\n");
break;
}
}
@@ -1377,7 +1377,7 @@
***********************************************************************************/
VOID mmi_led_operate(T_zMmi_Led_Info *ledinfo)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_led_operate ledname = %d state = %d color=%d,traffic=%d\n", ledinfo->led_name, ledinfo->led_state, ledinfo->led_color, ledinfo->traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_led_operate ledname = %d state = %d color=%d,traffic=%d\n", ledinfo->led_name, ledinfo->led_state, ledinfo->led_color, ledinfo->traffic);
switch (ledinfo->led_name) {
case LED_BATTERY: {
mmi_processbBatteryLed(ledinfo->led_state, ledinfo->led_color, ledinfo->ledBlink_time);
@@ -1422,7 +1422,7 @@
break;
}
default: {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_led_operate invalid ledname!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_led_operate invalid ledname!\n");
break;
}
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_msg.c b/ap/app/zte_comm/zte_mmi/mmi_msg.c
index 4ef9427..30f6dab 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_msg.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_msg.c
@@ -26,10 +26,10 @@
{
long msgid = 0;
if ((msgid = msgget(MODULE_ID_MMI, IPC_CREAT | 0600)) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI [error]:Create MODULE_ID_MMI queue faild! msgid=%d\n", msgid);
+ slog(MMI_PRINT, SLOG_ERR, "MMI [error]:Create MODULE_ID_MMI queue faild! msgid=%d\n", msgid);
return -1;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI Creating mmi message queue success! MODULE_ID_MMI=%d\n", msgid);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI Creating mmi message queue success! MODULE_ID_MMI=%d\n", msgid);
return msgid;
}
@@ -43,10 +43,10 @@
}
iRet = msgrcv(msgQueueId, pstMsg, msgSize, MsgType, MSG_NOERROR);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_RecvMsgFromQueue : iRet : %ld, pstMsg->src_id:%ld, pstMsg->usMsgCmd:%ld \n", iRet, pstMsg->src_id, pstMsg->usMsgCmd);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_RecvMsgFromQueue : iRet : %ld, pstMsg->src_id:%ld, pstMsg->usMsgCmd:%ld \n", iRet, pstMsg->src_id, pstMsg->usMsgCmd);
if (iRet <= 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_RecvMsgFromQueue Failed : iRet : %ld, pstMsg->src_id:%ld, pstMsg->usMsgCmd:%ld \n", iRet, pstMsg->src_id, pstMsg->usMsgCmd);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_RecvMsgFromQueue Failed : iRet : %ld, pstMsg->src_id:%ld, pstMsg->usMsgCmd:%ld \n", iRet, pstMsg->src_id, pstMsg->usMsgCmd);
return -1;
} else {
return 0;
diff --git a/ap/app/zte_comm/zte_mmi/mmi_net.c b/ap/app/zte_comm/zte_mmi/mmi_net.c
index a68cf89..21bd464 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_net.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_net.c
@@ -114,13 +114,13 @@
static VOID mmi_set_net_update()
{
if (g_showMode == MMI_MODE_LCD || g_showMode == MMI_MODE_ALL) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_net_update LCD!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_net_update LCD!!!\n");
mmi_set_update_flag(MMI_TASK_NET);
mmi_set_update_flag(MMI_TASK_NETSIGNAL);
}
if (g_showMode == MMI_MODE_LED || g_showMode == MMI_MODE_ALL) {
E_zMmi_Work_Mode mode = mmi_get_led_mode();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_net_update LED mode=%d!!!\n",mode);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_net_update LED mode=%d!!!\n",mode);
if(g_customer_type == CUSTOMER_GUODIAN || g_customer_type == CUSTOMER_NANDIAN){//guodian
mmi_set_update_flag(MMI_TASK_NET);
}else{
@@ -156,10 +156,10 @@
{
NET_Connect_State = *(UINT32*)data;//ÍøÂç״̬0-¶Ï¿ª£¬1-Á¬½Ó 2-Á¬½ÓÖÐ 3-¶Ï¿ªÖÐ
if(1 == NET_MutilConnect_State && 0 == NET_Connect_State){
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI svr_handle_msg_connect_status NET_Connect_State = %d\n", NET_Connect_State);
+ slog(MMI_PRINT, SLOG_ERR, "MMI svr_handle_msg_connect_status NET_Connect_State = %d\n", NET_Connect_State);
return 0;
}
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI svr_handle_msg_connect_status NET_Connect_State = %d\n", NET_Connect_State);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI svr_handle_msg_connect_status NET_Connect_State = %d\n", NET_Connect_State);
if (NET_Connect_State == 1 || NET_Connect_State == 0) {
mmi_set_net_update();
ipc_send_message(MODULE_ID_MMI, MODULE_ID_FLUXSTAT, MSG_CMD_CHANNEL_CONNECT_STATUS, sizeof(NET_Connect_State), (UCHAR *)&NET_Connect_State, 0);
@@ -174,7 +174,7 @@
SINT32 zMMI_Handle_Msg_MultiConnect_Status(VOID *data, int src_id)
{
NET_MutilConnect_State = *(UINT32*)data;//ÍøÂç״̬0-¶Ï¿ª£¬1-Á¬½Ó
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_MultiConnect_Status NET_MutilConnect_State = %d\n", NET_MutilConnect_State);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_MultiConnect_Status NET_MutilConnect_State = %d\n", NET_MutilConnect_State);
if(1 == NET_MutilConnect_State){
mmi_add_list(&g_mmi_multiconnect_queue, src_id);
@@ -206,7 +206,7 @@
networkMode = ((T_zAt_SysinfoRes*)data) ->sysMode; //ÍøÂçÖÆÊ½
networkStatus = ((T_zAt_SysinfoRes*)data) ->srvStatus;//ÊÇ·ñÕý³£·þÎñ:0-ÎÞ·þÎñ 1-ÏÞÖÆ·þÎñ ÆäËû-Õý³£·þÎñ
netroamMode = ((T_zAt_SysinfoRes*)data) ->roamStatus;
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI svr_handle_msg_network_mode networkStatus = %d,networkMode=%d !!!\n", networkStatus, networkMode);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI svr_handle_msg_network_mode networkStatus = %d,networkMode=%d !!!\n", networkStatus, networkMode);
if (netroamMode == 1) {
NET_Roam_Mode = 1;
@@ -242,7 +242,7 @@
{
UINT32 sig_num = 0;
sig_num = *(UINT32*)data;
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI svr_handle_msg_Signal_Num sig_num = %d\n", sig_num);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI svr_handle_msg_Signal_Num sig_num = %d\n", sig_num);
if (sig_num <= 2) {
NET_Signal_Weak = 1;
} else {
@@ -261,7 +261,7 @@
{
UINT32 sig_num = 0;
sig_num = *(UINT32*)data;
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_Simcard_Info sig_num = %d\n", sig_num);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_Simcard_Info sig_num = %d\n", sig_num);
if (g_showMode == MMI_MODE_LCD)
return 0;
@@ -277,7 +277,7 @@
SINT32 zMMI_Handle_Msg_Socket_Status(VOID *data, int src_id)
{
NET_Socket_State = *(UINT32*)data;//socket״̬0-¶Ï¿ª£¬1-Á¬½Ó
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_Socket_Status NET_Socket_State = %d\n", NET_Socket_State);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_Socket_Status NET_Socket_State = %d\n", NET_Socket_State);
if(1 == NET_Socket_State){
mmi_add_list(&g_mmi_socket_queue, src_id);
@@ -298,7 +298,7 @@
SINT32 zMMI_Handle_Msg_MCUSocket_Status(VOID *data)
{
NET_McuSocket_State = *(UINT32*)data;//socket״̬0-¶Ï¿ª£¬1-Á¬½Ó
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_MCUSocket_Status NET_McuSocket_State = %d\n", NET_McuSocket_State);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_MCUSocket_Status NET_McuSocket_State = %d\n", NET_McuSocket_State);
if (NET_McuSocket_State == NET_SOCKET_INACTIVE || NET_McuSocket_State == NET_SOCKET_ACTIVE) {
mmi_set_net_update();
}
@@ -318,7 +318,7 @@
sc_cfg_get(NV_NETWORK_TYPE, nettype, 20);
sc_cfg_get(NV_PPP_STATUS, netstate, 20);
sc_cfg_get(NV_SIGNALBAR, signal_num, 2);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_init_wan_led nettype = %s netstate = %s signal_num = %s\n", nettype, netstate, signal_num);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_init_wan_led nettype = %s netstate = %s signal_num = %s\n", nettype, netstate, signal_num);
if (!strncmp(nettype, NETTYPE_LIMITED_SERVICE, strlen(NETTYPE_LIMITED_SERVICE))) {
s_mmi_net_mode = NET_MODE_LIMITSERVICE;
} else if ((!strncmp(nettype, NETTYPE_G, 1)) || (!strncmp(nettype, NETTYPE_E, 1))) {
@@ -346,7 +346,7 @@
tmp_signal_num = (strlen(signal_num) == 0 ? 0 : atoi(signal_num));
if (tmp_signal_num > INT_MAX-1) {
tmp_signal_num = 0;
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI signal_num = %s\n", signal_num);
+ slog(MMI_PRINT, SLOG_ERR, "MMI signal_num = %s\n", signal_num);
}
NET_Signal_num = tmp_signal_num;
mmi_update_net_tip(NET_Connect_State, s_mmi_net_mode);
@@ -360,6 +360,6 @@
{
INIT_LIST_HEAD(&g_mmi_socket_queue);
INIT_LIST_HEAD(&g_mmi_multiconnect_queue);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_net_Led_Init finish !!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_net_Led_Init finish !!\n");
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_plat_adapter.c b/ap/app/zte_comm/zte_mmi/mmi_plat_adapter.c
index e3924c7..92bc844 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_plat_adapter.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_plat_adapter.c
@@ -41,24 +41,24 @@
fd_boost_state = fopen(BOOST_LOAD_STATUS_PATH, "r");
if (fd_boost_state == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_load_state open boost file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_load_state open boost file fail!\n");
//MMI_ASSERT(0);
return FALSE;
}
len = fread(load_state_buf, 1, 2, fd_boost_state);
if (len > 0) { //kw 3
fclose(fd_boost_state);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_load_state load_state_buf=%s!\n", load_state_buf);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_load_state load_state_buf=%s!\n", load_state_buf);
if (strncmp(load_state_buf, "1", strlen("1")) == 0) {
return TRUE;
} else if (strncmp(load_state_buf, "0", strlen("0")) == 0) {
return FALSE;
} else {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_load_state read load_state error!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_load_state read load_state error!\n");
return FALSE;
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_load_state read boost file fail len = %d!\n", len);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_load_state read boost file fail len = %d!\n", len);
fclose(fd_boost_state);
return FALSE;
}
@@ -74,13 +74,13 @@
if (isLoadFlag) {
if (g_mmi_dischg_switch_off) {
mmi_set_discharge_switch(TRUE);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_set_discharge_info HAVE_Load MMI_TURN_ON_DISCHG!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_set_discharge_info HAVE_Load MMI_TURN_ON_DISCHG!!!\n");
g_mmi_dischg_switch_off = FALSE;
}
} else {
if (!g_mmi_dischg_switch_off) {
mmi_set_discharge_switch(FALSE);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_set_discharge_info NO_Load MMI_TURN_OFF_DISCHG!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_set_discharge_info NO_Load MMI_TURN_OFF_DISCHG!!!\n");
g_mmi_dischg_switch_off = TRUE;
}
}
@@ -111,8 +111,8 @@
***********************************************************************************/
VOID mmi_lowbattery_discharge_protect(UINT32 voltagepower)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_lowbattery_discharge_protect voltagepower = %d !!\n", voltagepower);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_lowbattery_discharge_protect s_mmi_dischargeoff_voltage_num_low = %d, s_mmi_dischargeoff_voltage_num_high = %d !!\n", s_mmi_dischargeoff_voltage_num_low, s_mmi_dischargeoff_voltage_num_high);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_lowbattery_discharge_protect voltagepower = %d !!\n", voltagepower);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_lowbattery_discharge_protect s_mmi_dischargeoff_voltage_num_low = %d, s_mmi_dischargeoff_voltage_num_high = %d !!\n", s_mmi_dischargeoff_voltage_num_low, s_mmi_dischargeoff_voltage_num_high);
BOOL isLoadFlag = FALSE;
isLoadFlag = mmi_get_load_state();
if (isLoadFlag) {
@@ -123,7 +123,7 @@
s_mmi_dischargeoff_voltage_num_low = 0;
if (!g_mmi_dischg_low_current_switch) {
mmi_set_discharge_low_current(TRUE);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_lowbattery_discharge_protect turn to LOW current!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_lowbattery_discharge_protect turn to LOW current!!!\n");
g_mmi_dischg_low_current_switch = TRUE;
}
}
@@ -134,7 +134,7 @@
s_mmi_dischargeoff_voltage_num_high = 0;
if (g_mmi_dischg_low_current_switch) {
mmi_set_discharge_low_current(FALSE);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_lowbattery_discharge_protect turn to HIGH current!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_lowbattery_discharge_protect turn to HIGH current!!!\n");
g_mmi_dischg_low_current_switch = FALSE;
}
}
@@ -144,7 +144,7 @@
}
} else {
mmi_set_discharge_switch(FALSE);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_lowbattery_discharge_protect NO_Load MMI_TURN_OFF_DISCHG!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_lowbattery_discharge_protect NO_Load MMI_TURN_OFF_DISCHG!!!\n");
}
}
@@ -161,14 +161,14 @@
sc_cfg_get("cfun_work", rsqFlag, sizeof(rsqFlag));//ÉÏÒ»´ÎµÄMSG_CMD_AIRMODE_SET_REQÊÇ·ñ´¦ÀíÍê³É
if (!g_fast_poweron) {//먦Æô¿ìËÙ¿ª¹Ø»ú¹¦ÄÜ
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI fast_poweron fail,g_fast_poweron=FALSE!! \n\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI fast_poweron fail,g_fast_poweron=FALSE!! \n\n");
return FALSE;
}
while (!strcmp(rsqFlag, "work")) {
longPress = mmi_get_longpress_flag();
if(FALSE == longPress){
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI fast_poweron fail,no AIRMODE_RSQ!! \n\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI fast_poweron fail,no AIRMODE_RSQ!! \n\n");
return FALSE;
}
mmi_ms_sleep(100);
@@ -187,13 +187,13 @@
struct ext_msg_data ext_data;
if(!mmi_valid_fast_onoff()){
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI fast_poweron STOP!! \n\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI fast_poweron STOP!! \n\n");
return ;
}
sc_cfg_set(NV_FAKE_POWEROFF_STATE, "1");
ext_data.cmd = Ext_Cmd_POWEROFF_FAKE;
mmi_wifi_operate(WIFI_TURN_OFF_FAKE_POWEROFF);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_handle_fast_poweroff!! \n\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_handle_fast_poweroff!! \n\n");
ipc_send_message(MODULE_ID_MMI, MODULE_ID_AT_CTL, (USHORT)MSG_CMD_AIRMODE_SET_REQ, sizeof(int), (CHAR *)(&airmode), 0);
ipc_send_message(MODULE_ID_MMI, MODULE_ID_USBCFGMNG, (USHORT)MSG_CMD_FASTPOWER_IND, sizeof(int), (CHAR *)(&usbmode), 0);
ipc_send_message(MODULE_ID_MMI, MODULE_ID_MAIN_CTRL, (USHORT)MSG_CMD_POWEROFF_RSP, sizeof(struct ext_msg_data), (CHAR *)(&ext_data), 0);
@@ -212,7 +212,7 @@
mmi_set_led_mode(MMI_FAKE_POWEROFF_MODE);
mmi_set_update_flag(MMI_TASK_CTRL);
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_handle_fast_poweroff set mode fake poweroff!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_handle_fast_poweroff set mode fake poweroff!!\n");
}
VOID mmi_handle_fast_poweron(VOID)
@@ -220,10 +220,10 @@
int airmode = 0;
int usbmode = 1;
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_handle_fast_poweron!! \n\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_handle_fast_poweron!! \n\n");
//AT·ÉÐÐģʽÉèÖÃÏìÓ¦Âý£¬ÐèÒªµÈ´ý
if(!mmi_valid_fast_onoff()){
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI fast_poweron fail,no AIRMODE_RSQ!! \n\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI fast_poweron fail,no AIRMODE_RSQ!! \n\n");
return ;
}
@@ -231,7 +231,7 @@
sc_cfg_set(NV_FAKE_POWEROFF_STATE, "0");
mmi_wifi_operate(WIFI_TURN_ON);
//µãÁÁÆÁÄ» ¿ª»ú¶¯»
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_set_work_mode MMI_FAST_POWERON_MODE!! \n\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_set_work_mode MMI_FAST_POWERON_MODE!! \n\n");
mmi_set_lcd_mode(MMI_FAST_POWERON_MODE);
mmi_set_led_mode(MMI_FAST_POWERON_MODE);
mmi_set_update_flag(MMI_TASK_CTRL);
diff --git a/ap/app/zte_comm/zte_mmi/mmi_poweroff.c b/ap/app/zte_comm/zte_mmi/mmi_poweroff.c
index f2cd7ac..c5308df 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_poweroff.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_poweroff.c
@@ -92,11 +92,11 @@
#endif
if ((mmi_get_charge_state() == STATE_CHARGING) || (mmi_get_charge_state() == STATE_FULL)) {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI system poweroffcharging !!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI system poweroffcharging !!!\n");
//mmi_key_reboot();
ext_data.cmd = Ext_Cmd_REBOOT;
} else {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_poweroff!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_poweroff!!\n");
//system("poweroff");
ext_data.cmd = Ext_Cmd_POWEROFF;
}
@@ -211,7 +211,7 @@
#endif
if ((mmi_get_charge_state() == STATE_CHARGING) || (mmi_get_charge_state() == STATE_FULL)) {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI system poweroffcharging!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI system poweroffcharging!!\n");
//mmi_key_reboot();
ext_data.cmd = Ext_Cmd_POWEROFF_CHARGING;
} else {
@@ -261,7 +261,7 @@
SINT32 zMMI_Handle_Msg_Factory_Reset(VOID *data)
{
set_wake_lock(MMI_POWEROFF_LOCK_ID);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_Factory_Reset !!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_Factory_Reset !!\n");
if (g_discharge_protect) {
mmi_set_discharge_switch(FALSE);
}
@@ -276,7 +276,7 @@
SINT32 zMMI_Handle_Msg_Restart(VOID *data)
{
set_wake_lock(MMI_POWEROFF_LOCK_ID);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_Restart !!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_Restart !!\n");
if (g_discharge_protect) {
mmi_set_discharge_switch(FALSE);
@@ -292,7 +292,7 @@
if (g_discharge_protect) {
mmi_set_discharge_switch(FALSE);
}
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_Poweroff !!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_Poweroff !!\n");
mmi_handle_poweroff();
return 0;
}
@@ -301,7 +301,7 @@
***********************************************************************************/
SINT32 zMMI_Handle_Msg_Plugout(VOID *data)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI poweroff,CHARGE_STATUS_DISCHARGING !!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI poweroff,CHARGE_STATUS_DISCHARGING !!!\n");
system("poweroff");
return 0;
@@ -312,7 +312,7 @@
***********************************************************************************/
VOID mmi_set_factory_reset()
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_set_factory_reset send MSG!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_set_factory_reset send MSG!!\n");
ipc_send_message(MODULE_ID_MMI, MODULE_ID_MAIN_CTRL, (USHORT)MSG_CMD_RESET_REQUEST, 0, NULL, 0);
}
/**********************************************************************************
@@ -320,7 +320,7 @@
***********************************************************************************/
VOID mmi_set_poweroff()
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_set_poweroff send MSG!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_set_poweroff send MSG!!\n");
ipc_send_message(MODULE_ID_MMI, MODULE_ID_MAIN_CTRL, (USHORT)MSG_CMD_POWEROFF_REQUEST, 0, NULL, 0);
}
@@ -342,7 +342,7 @@
#endif
if ((mmi_get_charge_state() == STATE_CHARGING) || (mmi_get_charge_state() == STATE_FULL)) {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI system poweroffcharging!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI system poweroffcharging!!\n");
ext_data.cmd = Ext_Cmd_REBOOT;
} else {
ext_data.cmd = Ext_Cmd_POWEROFF;
@@ -359,11 +359,11 @@
mmi_killtimer_for_poweroff();
mmi_play_poweroff_cartoon(MMI_POWEROFF_MODE);
//if (mmi_get_usb_insert_state()) { //kw 3
- // slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI system poweroffcharging!!\n");
+ // slog(MMI_PRINT, SLOG_NORMAL, "MMI system poweroffcharging!!\n");
// ext_data.cmd = Ext_Cmd_POWEROFF_CHARGING;
//} else
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI poweroff,normal!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI poweroff,normal!!!\n");
ext_data.cmd = Ext_Cmd_POWEROFF;
}
ipc_send_message(MODULE_ID_MMI, MODULE_ID_MAIN_CTRL, (USHORT)MSG_CMD_POWEROFF_RSP, sizeof(struct ext_msg_data), (CHAR *)(&ext_data), 0);
diff --git a/ap/app/zte_comm/zte_mmi/mmi_poweroff_charger.c b/ap/app/zte_comm/zte_mmi/mmi_poweroff_charger.c
index 0a2a31e..686aa1e 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_poweroff_charger.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_poweroff_charger.c
@@ -90,7 +90,7 @@
***********************************************************************************/
static VOID * offchg_set_backlight_off(VOID *arg)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_set_backlight_off !\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_set_backlight_off !\n");
s_offchg_backlight_sta = 0;
mmi_set_update_flag(MMI_TASK_POWEROFF_CHARGER);
s_offchg_backlight_timer_status = 0;
@@ -105,7 +105,7 @@
int ret = -1;
ret = sc_timer_create(SET_MMI_IDLE_TIMER, TIMER_FLAG_ONCE, SET_MMI_IDLE_TIME, &offchg_set_backlight_off, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_backlightoff_timer_create FAILED\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_backlightoff_timer_create FAILED\n");
}
}
@@ -125,24 +125,24 @@
fd_boost_state = fopen(BOOST_LOAD_STATUS_PATH, "r");
if (fd_boost_state == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI offchg_get_load_state open boost file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI offchg_get_load_state open boost file fail!\n");
//MMI_ASSERT(0);
return FALSE;
}
len = fread(load_state_buf, 1, 2, fd_boost_state);
if (len > 0) { //kw 3
fclose(fd_boost_state);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_get_load_state load_state_buf=%s!\n", load_state_buf);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_get_load_state load_state_buf=%s!\n", load_state_buf);
if (strncmp(load_state_buf, "1", strlen("1")) == 0) {
return TRUE;
} else if (strncmp(load_state_buf, "0", strlen("0")) == 0) {
return FALSE;
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI offchg_get_load_state read load_state error!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI offchg_get_load_state read load_state error!\n");
return FALSE;
}
} else {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_get_load_state read boost file fail len = %d!\n", len);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_get_load_state read boost file fail len = %d!\n", len);
fclose(fd_boost_state);
return FALSE;
}
@@ -152,7 +152,7 @@
{
SINT32 bat_volt = 0;
bat_volt = offchg_voltage_state_read();
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI offchg_check_power_low bat_volt =%d\n\n", bat_volt);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI offchg_check_power_low bat_volt =%d\n\n", bat_volt);
if (bat_volt != -1 && bat_volt < POWERONLEVEL) {
return 1;
@@ -169,13 +169,13 @@
FILE *fd_charger = NULL;
fd_charger = fopen(CHARGE_STATUS_PATH, "r");
if (fd_charger == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI ofchg_get_charge_status open charging file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI ofchg_get_charge_status open charging file fail!\n");
//MMI_ASSERT(0);
return;
}
len = fread(chg_state_buf, 1, CHARGE_STATUS_LENGTH, fd_charger);
if (len > 0) { //kw 3
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI ofchg_get_charge_status chg_state_buf=%s !\n", chg_state_buf);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI ofchg_get_charge_status chg_state_buf=%s !\n", chg_state_buf);
if (strncmp(chg_state_buf, CHARGE_STATUS_CHARGING, CHARGE_STATUS_CHARGING_LENGTH) == 0) {
g_poc_chg_switch_off = FALSE;
if (1 == offchg_check_power_low())
@@ -199,14 +199,14 @@
//¸øRTC·¢ÏûÏ¢£¬ÇÒÐèÒªÊÕµ½»Ø¸´
set_wake_lock(MMI_POWEROFF_LOCK_LCD_ID);
if (rtc_timer_del_all(MODULE_ID_MMI, MSG_CMD_POWEROFF_RSP) == 0) {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI poweroff_msg_process: send msg to rtc ok!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI poweroff_msg_process: send msg to rtc ok!!!\n");
}
mmi_is_offchg_poweroff = TRUE;
s_mmi_poc_overvoltage_mode = TRUE;
mmi_set_update_flag(MMI_TASK_POWEROFF_CHARGER);
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI ofchg_get_charge_status read voltage file fail len = %d !\n", len);
+ slog(MMI_PRINT, SLOG_ERR, "MMI ofchg_get_charge_status read voltage file fail len = %d !\n", len);
}
fclose(fd_charger);
}
@@ -223,7 +223,7 @@
fd_voltage = fopen(CHARGE_VOLTAGE_PATH, "r");
if (fd_voltage == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI open voltage file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI open voltage file fail!\n");
//MMI_ASSERT(0);
return -1;
}
@@ -233,7 +233,7 @@
fclose(fd_voltage);
return voltagepower;
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI read voltage file fail len = %d !\n", len);
+ slog(MMI_PRINT, SLOG_ERR, "MMI read voltage file fail len = %d !\n", len);
fclose(fd_voltage);
return -1;
}
@@ -243,8 +243,8 @@
***********************************************************************************/
VOID offchg_lowbattery_discharge_protect(SINT32 voltagepower)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_lowbattery_discharge_protect voltagepower = %d !!!\n", voltagepower);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_lowbattery_discharge_protect s_offchg_dischargeoff_voltage_num_low = %d, s_offchg_dischargeoff_voltage_num_high = %d !!\n", s_offchg_dischargeoff_voltage_num_low, s_offchg_dischargeoff_voltage_num_high);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_lowbattery_discharge_protect voltagepower = %d !!!\n", voltagepower);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_lowbattery_discharge_protect s_offchg_dischargeoff_voltage_num_low = %d, s_offchg_dischargeoff_voltage_num_high = %d !!\n", s_offchg_dischargeoff_voltage_num_low, s_offchg_dischargeoff_voltage_num_high);
BOOL isLoadFlag = FALSE;
isLoadFlag = offchg_get_load_state();
if (isLoadFlag) {
@@ -255,7 +255,7 @@
s_offchg_dischargeoff_voltage_num_low = 0;
if (!g_poc_dischg_low_current_switch) {
system(MMI_DISCHG_LOW_CURRENT);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI offchg_lowbattery_discharge_protect turn to LOW current!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI offchg_lowbattery_discharge_protect turn to LOW current!!!\n");
g_poc_dischg_low_current_switch = TRUE;
mmi_set_update_flag(MMI_TASK_POWEROFF_CHARGER);
}
@@ -267,7 +267,7 @@
s_offchg_dischargeoff_voltage_num_high = 0;
if (g_poc_dischg_low_current_switch) {
system(MMI_DISCHG_HIGH_CURRENT);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI offchg_lowbattery_discharge_protect turn to HIGH current!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI offchg_lowbattery_discharge_protect turn to HIGH current!!!\n");
g_poc_dischg_low_current_switch = FALSE;
mmi_set_update_flag(MMI_TASK_POWEROFF_CHARGER);
}
@@ -278,7 +278,7 @@
}
} else {
mmi_set_discharge_switch(FALSE);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_lowbattery_discharge_protect NO_Load MMI_TURN_OFF_DISCHG!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_lowbattery_discharge_protect NO_Load MMI_TURN_OFF_DISCHG!!!\n");
}
}
@@ -297,7 +297,7 @@
{
SINT32 bat_volt = 0;
bat_volt = offchg_voltage_state_read();
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI s_mmi_poc_overvoltage_mode=%d, bat_volt =%d\n\n", s_mmi_poc_overvoltage_mode, bat_volt);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI s_mmi_poc_overvoltage_mode=%d, bat_volt =%d\n\n", s_mmi_poc_overvoltage_mode, bat_volt);
if (bat_volt != -1 && bat_volt < POWERONLEVEL) {
if(s_mmi_poc_overvoltage_mode)
@@ -305,7 +305,7 @@
mmi_set_update_flag(MMI_TASK_POWEROFF_CHARGER);
} else {
set_wake_lock(MMI_POWEROFF_LOCK_ID);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI handleKey ######KEY_POWER LONGPRESS###### POWER ON!!!!!!\n\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI handleKey ######KEY_POWER LONGPRESS###### POWER ON!!!!!!\n\n");
#ifndef DISABLE_LCD
if (g_showMode == MMI_MODE_LCD || g_showMode == MMI_MODE_ALL) {
mmi_getMutex(&g_mmi_poweron_mutex);
@@ -347,7 +347,7 @@
retR = read(g_poc_kpd_handle, (CHAR *)&kp_event, sizeof(kp_event));
if (retR < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI get_keystrokes_data read falied c-err:%d!",errno);
+ slog(MMI_PRINT, SLOG_ERR, "MMI get_keystrokes_data read falied c-err:%d!",errno);
return ;
}
if (kp_event.type == 1) {
@@ -388,14 +388,14 @@
BOOL longPressFlag = FALSE;
int ret = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_handle_key_thread begin !!\n ");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_handle_key_thread begin !!\n ");
prctl(PR_SET_NAME, "offchghandlekey", 0, 0, 0);
#ifndef DISABLE_LCD
if (g_showMode == MMI_MODE_LCD || g_showMode == MMI_MODE_ALL) {
while ((ret = mmi_GetSemaphore(&g_mmi_gui_init_sem_id, MMI_WAIT_FOREVER)) != MMI_SUCCESS) {
- slog(MMI_PRINT, SLOG_DEBUG, "zte_mmi offchg_handle_key_thread get gui_init_sem_id failed ret = %d, errno=%d\n", ret, errno);
+ slog(MMI_PRINT, SLOG_DEBUG, "mmi offchg_handle_key_thread get gui_init_sem_id failed ret = %d, errno=%d\n", ret, errno);
continue;
}
mmi_DeleteSemaphore(&g_mmi_gui_init_sem_id);
@@ -404,11 +404,11 @@
while (1) {
offchg_get_keystrokes_data(&keyData);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_handle_key_thread Key's type:%d, status:%d\n", keyData.type, keyData.status);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_handle_key_thread Key's type:%d, status:%d\n", keyData.type, keyData.status);
switch (keyData.status) {
case KEY_STATUS_DOWN: {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg KEYDOWN !!! s_offchg_backlight_sta=%d,g_poc_chg_switch_off=%d\n", s_offchg_backlight_sta, g_poc_chg_switch_off);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg KEYDOWN !!! s_offchg_backlight_sta=%d,g_poc_chg_switch_off=%d\n", s_offchg_backlight_sta, g_poc_chg_switch_off);
offchg_backlightoff_timer_stop();
offchg_backlightoff_timer_create();
if (s_offchg_backlight_sta == 0 && !g_poc_chg_switch_off) {
@@ -418,7 +418,7 @@
break;
}
case KEY_STATUS_UP: {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg KEYUP KEYUP !!! longPressFlag=%d", longPressFlag);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg KEYUP KEYUP !!! longPressFlag=%d", longPressFlag);
if (TRUE == longPressFlag) {
longPressFlag = FALSE; //±ê¼Ç³¤°´½áÊø
@@ -436,7 +436,7 @@
break;
}
case KEY_STATUS_LONGPRESS: {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg KEYLONGPRESS longPressFlag =%d\n", longPressFlag);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg KEYLONGPRESS longPressFlag =%d\n", longPressFlag);
if (FALSE == longPressFlag) {
longPressFlag = TRUE;
if (keyData.type == KEY_TYPE_POWER) {
@@ -489,7 +489,7 @@
switch (keyData.status) {
case KEY_STATUS_DOWN: {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg KEYDOWN !!! s_offchg_backlight_sta=%d,g_poc_chg_switch_off=%d\n", s_offchg_backlight_sta, g_poc_chg_switch_off);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg KEYDOWN !!! s_offchg_backlight_sta=%d,g_poc_chg_switch_off=%d\n", s_offchg_backlight_sta, g_poc_chg_switch_off);
offchg_backlightoff_timer_stop();
offchg_backlightoff_timer_create();
if (s_offchg_backlight_sta == 0 && !g_poc_chg_switch_off) {
@@ -499,7 +499,7 @@
break;
}
case KEY_STATUS_UP: {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg KEYUP KEYUP !!! longPressFlag=%d", longPressFlag);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg KEYUP KEYUP !!! longPressFlag=%d", longPressFlag);
if (TRUE == longPressFlag) {
longPressFlag = FALSE; //±ê¼Ç³¤°´½áÊø
@@ -512,7 +512,7 @@
break;
}
case KEY_STATUS_LONGPRESS: {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg KEYLONGPRESS longPressFlag =%d\n", longPressFlag);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg KEYLONGPRESS longPressFlag =%d\n", longPressFlag);
if (FALSE == longPressFlag) {
longPressFlag = TRUE;
if (keyData.type == KEY_TYPE_POWER) {
@@ -536,10 +536,10 @@
{
g_poc_kpd_handle = open(KPD_PATH, O_RDONLY);
if (g_poc_kpd_handle < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI offchg_init_handle_key_thread open kp dev FAILED!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI offchg_init_handle_key_thread open kp dev FAILED!!\n");
MMI_ASSERT(0);
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_init_dev_handle success!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_init_dev_handle success!\n");
offchg_handle_key_thread();
}
@@ -590,22 +590,22 @@
buf[sizeof(buf)-1] = '\0';//cov
if (byte_counts <= 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI receive from netlonk error/n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI receive from netlonk error/n");
return;
}
//´òÓ¡³öÉϱ¨µÄueventÏûÏ¢Éϱ¨µÄ×Ö·û´®
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI received data:%s\n",buf);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI received data:%s\n",buf);
keys = (char *)(buf + strlen((char *)buf) + 1);
byte_counts -= (strlen((char*)buf) + 1);
//½âÎö³öÀ´×Ö·û´®
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI received keys:%s\n",keys);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI received keys:%s\n",keys);
//°ÑÀïÃæµÄ¹Ø¼ü×Ö½âÎö³öÀ´
subsys = offchg_search_netlink("SUBSYSTEM", keys, byte_counts);
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI subsys:%s\n",subsys);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI subsys:%s\n",subsys);
action = offchg_search_netlink("ACTION", keys, byte_counts);
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI action:%s\n",action);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI action:%s\n",action);
power_supply_name = offchg_search_netlink("POWER_SUPPLY_NAME", keys, byte_counts);
//µ±·¢ÏֵײãÊÇpower_supplyÖÐchange,ÔòÈ¥¶ÁÈ¡³äµç״̬£¬¶Ô״̬½øÐÐÏàÓ¦µÄµãµÆ²Ù×÷¡£
@@ -628,22 +628,22 @@
byte_counts = msglen;
if (byte_counts <= 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI receive from netlonk error/n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI receive from netlonk error/n");
return -1;
}
//´òÓ¡³öÉϱ¨µÄueventÏûÏ¢Éϱ¨µÄ×Ö·û´®
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI received data:%s\n",buf);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI received data:%s\n",buf);
keys = (char *)(msg + strlen((char *)msg) + 1);
byte_counts -= (strlen((char*)msg) + 1);
//½âÎö³öÀ´×Ö·û´®
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI received keys:%s\n",keys);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI received keys:%s\n",keys);
//°ÑÀïÃæµÄ¹Ø¼ü×Ö½âÎö³öÀ´
subsys = offchg_search_netlink("SUBSYSTEM", keys, byte_counts);
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI subsys:%s\n",subsys);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI subsys:%s\n",subsys);
action = offchg_search_netlink("ACTION", keys, byte_counts);
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI action:%s\n",action);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI action:%s\n",action);
power_supply_name = offchg_search_netlink("POWER_SUPPLY_NAME", keys, byte_counts);
//µ±·¢ÏֵײãÊÇpower_supplyÖÐchange,ÔòÈ¥¶ÁÈ¡³äµç״̬£¬¶Ô״̬½øÐÐÏàÓ¦µÄµãµÆ²Ù×÷¡£
@@ -694,7 +694,7 @@
fd_set readfds;
prctl(PR_SET_NAME, "offchgchgck", 0, 0, 0);
if ((charging_netlink = offchg_open_charging_netlink()) < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI charging_netlink wrong \n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI charging_netlink wrong \n");
return NULL;
}
prctl(PR_SET_NAME, "offchgcheck", 0, 0, 0);
@@ -704,10 +704,10 @@
fd_counts = select(charging_netlink + 1, &readfds, NULL, NULL, NULL);
if (fd_counts < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI select usb_netlink error! \n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI select usb_netlink error! \n");
continue;
} else if (fd_counts == 0) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI select usb_netlink timeout\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI select usb_netlink timeout\n");
continue;
} else {
@@ -722,10 +722,10 @@
{
pthread_t mmi_chgsta_thread;
if (pthread_create(&mmi_chgsta_thread, NULL, &offchg_chargingcheck_process_thread, NULL) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI offchg_create_chargestate_check_thread error\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI offchg_create_chargestate_check_thread error\n");
return;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI offchg_create_chargestate_check_thread success!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI offchg_create_chargestate_check_thread success!!!\n");
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_pvtest.c b/ap/app/zte_comm/zte_mmi/mmi_pvtest.c
index 112dc1b..2d12a3b 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_pvtest.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_pvtest.c
@@ -61,7 +61,7 @@
char pPtr[30] = {0};
ZOSS_THREAD_ID m_ledtest_thread = ZOSS_INVALID_THREAD_ID;
if ((pStrAt = strstr((const char *)buff, "AT+ZBATTERYLEVEL?")) != 0) {
- zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "ZTE_PVTEST zPvTest_ProGetBatteryLevel!\n");
+ zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "PVTEST zPvTest_ProGetBatteryLevel!\n");
batLevel = pvtest_GetBatteryLevel();
sprintf((char *)pPtr, "\r\n%s%ld%%", "+ZBATTERYLEVEL:", batLevel);
zOss_Printf(SUBMDL_FS, PRINT_LEVEL_ABNORMAL, "pPtr = %s\r", pPtr);
@@ -86,7 +86,7 @@
CHAR *pStrAt = NULL;
char pPtr[15] = {0};
if ((pStrAt = strstr((const char *)buff, "AT+ZRESET")) != 0) {
- zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "ZTE_PVTEST zPvTest_ProReset!\n");
+ zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "PVTEST zPvTest_ProReset!\n");
//retCode = zte_mgmt_restore_comm(FALSE, TRUE);
if (retCode != ZOSS_ERROR) {
sprintf((char *)pPtr, "\r\nOK\r\n");
@@ -114,7 +114,7 @@
char pPtr[10] = {0};
if((pStrAt=strstr((const char *)buff,"AT+ZRESETSMS"))!=0)
{
- zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL,"ZTE_PVTEST zPvTest_ProReset!\n");
+ zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL,"PVTEST zPvTest_ProReset!\n");
zte_mgmt_restore_comm();
sprintf((char *)pPtr,"\r\nOK\r\n");
zCtrm_PsCallbackEntry(channel_id, pPtr, strlen((const char *)pPtr), chInd);
@@ -136,7 +136,7 @@
CHAR *pStrAt = NULL;
char pPtr[10] = {0};
if ((pStrAt = strstr((const char *)buff, "AT+ZPOWEROFF")) != 0) {
- zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "ZTE_PVTEST zPvTest_ProPoweroff!\n");
+ zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "PVTEST zPvTest_ProPoweroff!\n");
zOss_SysPowerdown();
sprintf((char *)pPtr, "\r\nOK\r\n");
zCtrm_PsCallbackEntry(channel_id, pPtr, strlen((const char *)pPtr), chInd);
@@ -160,7 +160,7 @@
CHAR *pStrAt = NULL;
char pPtr[ZPS_CTRM_MSINFO_MAX_NVINFO_LEN + 30] = {0};
if ((pStrAt = strstr((const char *)buff, "AT+RTESTINFO")) != 0) {
- zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "ZTE_PVTEST zPvTest_ProReadNvInfo!\n");
+ zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "PVTEST zPvTest_ProReadNvInfo!\n");
retCode = zPS_NvAMTItemRead(ABTESTINFO_NVPARAM, buffNv, ZPS_CTRM_MSINFO_MAX_NVINFO_LEN);
if (retCode != ZOSS_ERROR) {
@@ -192,7 +192,7 @@
for (i = 0; i < sizeof(g_PvTest_Reg_At) / sizeof(T_PvTest_At); ++ i) {
if (0 == zCtrm_ExtRegisterAT(g_PvTest_Reg_At[i].at, strlen(g_PvTest_Reg_At[i].at), g_PvTest_Reg_At[i].func)) {
- zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "ZTE_PVTEST zPvTest_Entry zCtrm_ExtRegisterAT %s success!\n", g_PvTest_Reg_At[i].at);
+ zOss_Printf(SUBMDL_FS, PRINT_LEVEL_NORMAL, "PVTEST zPvTest_Entry zCtrm_ExtRegisterAT %s success!\n", g_PvTest_Reg_At[i].at);
}
}
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_sms.c b/ap/app/zte_comm/zte_mmi/mmi_sms.c
index b692e66..5553787 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_sms.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_sms.c
@@ -78,7 +78,7 @@
recvBox_state = SMS_RECVBOX_STATUS_UNREAD;
}
s_mmi_sms_tip_timer_status = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_sms_tip_timer_cb rec_stat:%d!!\n", recvBox_state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_sms_tip_timer_cb rec_stat:%d!!\n", recvBox_state);
mmi_set_sms_update();
return NULL;
}
@@ -88,7 +88,7 @@
if (s_mmi_sms_tip_timer_status == 1) {
sc_timer_delete(SET_SMS_TIP_TIMER);
s_mmi_sms_tip_timer_status = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_sms_tip_timer_stop !!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_sms_tip_timer_stop !!\n");
}
}
@@ -101,7 +101,7 @@
int ret = -1;
ret = sc_timer_create(SET_SMS_TIP_TIMER, TIMER_FLAG_ONCE, SET_SMS_TIP_TIME, &mmi_sms_tip_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_sms_tip_timer_create FAILED\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_sms_tip_timer_create FAILED\n");
}
s_mmi_sms_tip_timer_status = 1;
}
@@ -119,7 +119,7 @@
SINT32 is_reading = 0;
SINT32 unread_count = 0;
if (data == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI svr_handle_msg_smsbox_status NULL message!!!");
+ slog(MMI_PRINT, SLOG_ERR, "MMI svr_handle_msg_smsbox_status NULL message!!!");
return MMI_ERROR;
}
full_ind = ((T_zUfi_SmsStatusInfoInd*)data) ->sms_memory_full_ind;
@@ -127,19 +127,19 @@
newsms_ind = ((T_zUfi_SmsStatusInfoInd*)data) ->sms_new_ind;
is_reading = ((T_zUfi_SmsStatusInfoInd*)data) ->sms_is_reading;
unread_count = ((T_zUfi_SmsStatusInfoInd*)data) ->sms_unread_count;
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI svr_handle_msg_smsbox_status full=%d unread=%d,newsms_ind = %d,is_reading =%d,unread_count = %d !!!\n", full_ind, unread_ind, newsms_ind, is_reading, unread_count);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI svr_handle_msg_smsbox_status full=%d unread=%d,newsms_ind = %d,is_reading =%d,unread_count = %d !!!\n", full_ind, unread_ind, newsms_ind, is_reading, unread_count);
sms_unread_number = unread_count;
if (unread_ind == 1) {
recvBox_state = SMS_RECVBOX_STATUS_UNREAD;
}
if (newsms_ind == 1) {
recvBox_state = SMS_RECVBOX_STATUS_NEW;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI svr_handle_msg_smsbox_status newsms_ind == 1 s_mmi_sms_tip_timer_status = %d\n", s_mmi_sms_tip_timer_status);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI svr_handle_msg_smsbox_status newsms_ind == 1 s_mmi_sms_tip_timer_status = %d\n", s_mmi_sms_tip_timer_status);
mmi_sms_tip_timer_create();
}
if (full_ind == 1) {
recvBox_state = SMS_RECVBOX_STATUS_FULL;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI svr_handle_msg_smsbox_status full_ind == 1!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI svr_handle_msg_smsbox_status full_ind == 1!!!\n");
}
if (is_reading == 1) {
mmi_sms_tip_timer_stop();
@@ -164,20 +164,20 @@
char smsUnreadNumber[16] = {0};
sc_cfg_get(NV_SMS_INIT_STATUS, smsinboxstatus, sizeof(smsinboxstatus));
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI sms_led_init smsinboxstatus=%s!!!\n", smsinboxstatus);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI sms_led_init smsinboxstatus=%s!!!\n", smsinboxstatus);
if (!(strncmp(smsinboxstatus, SMS_IN_BOX_STATUS_FULL, strlen(SMS_IN_BOX_STATUS_FULL)))) {
recvBox_state = SMS_RECVBOX_STATUS_FULL;
} else if (!(strncmp(smsinboxstatus, SMS_IN_BOX_STATUS_UNREAD, strlen(SMS_IN_BOX_STATUS_UNREAD)))) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI sms_led_init smsinboxstatus == SMS_IN_BOX_STATUS_UNREAD!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI sms_led_init smsinboxstatus == SMS_IN_BOX_STATUS_UNREAD!!!\n");
recvBox_state = SMS_RECVBOX_STATUS_UNREAD;
sc_cfg_get(SMS_UNREAD_COUNT_NV, smsUnreadNumber, sizeof(smsUnreadNumber));
sms_unread_number = atoi(smsUnreadNumber);
} else {
recvBox_state = SMS_RECVBOX_STATUS_NOR;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI sms_led_init sms_unread_number = %d !!!\n", sms_unread_number);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI sms_led_init sms_unread_number = %d !!!\n", sms_unread_number);
mmi_set_sms_update();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI sms_led_init finish!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI sms_led_init finish!!!\n");
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_time.c b/ap/app/zte_comm/zte_mmi/mmi_time.c
index c99ea39..21c6401 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_time.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_time.c
@@ -60,7 +60,7 @@
int ret = -1;
ret = sc_timer_create(SET_TIME_CHECK_TIMER, TIMER_FLAG_RESTART, SET_TIME_CHECK_TIME, &mmi_time_check_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, " ZTE_MMI mmi_time_check_timer_create FAILED!!\n");
+ slog(MMI_PRINT, SLOG_ERR, " MMI mmi_time_check_timer_create FAILED!!\n");
}
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_tip.c b/ap/app/zte_comm/zte_mmi/mmi_tip.c
index a5ff189..3622032 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_tip.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_tip.c
@@ -185,19 +185,19 @@
strcpy(s_mmi_net_pro, nv_net_pro);
}
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_network_provider s_mmi_net_pro_tip = %s!!\n", s_mmi_net_pro);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_network_provider s_mmi_net_pro_tip = %s!!\n", s_mmi_net_pro);
}
VOID mmi_update_netprovider(VOID)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_update_netprovider !!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_update_netprovider !!!\n");
mmi_get_network_provider();
mmi_set_update_flag(MMI_TASK_TIP);
}
VOID mmi_update_net_connect_tip(SINT32 con_state, E_zMmi_Net_Mode net_mode)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_update_net_connect_tip con_state = %d, net_mod = %d !!\n", con_state, net_mode);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_update_net_connect_tip con_state = %d, net_mod = %d !!\n", con_state, net_mode);
if (net_mode == NET_MODE_NOSERVICE) {
s_mmi_netcon_tip = NET_NOSERVICE;
mmi_set_update_flag(MMI_TASK_TIP_NET_CONNECT);
@@ -214,13 +214,13 @@
VOID mmi_update_net_tip(SINT32 con_state, E_zMmi_Net_Mode net_mode)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_update_net_tip !!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_update_net_tip !!!\n");
mmi_update_net_connect_tip(con_state, net_mode);
mmi_update_netprovider();
}
SINT32 zMMI_Handle_Msg_Get_Provider(VOID *data)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI svr_Handle_Msg_Get_Provider !!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI svr_Handle_Msg_Get_Provider !!!\n");
mmi_update_netprovider();
return 0;
}
@@ -233,7 +233,7 @@
SINT32 tip_conntent = 0;
tip_conntent = *(SINT32*)arg;
s_mmi_netcon_tip = (E_zMmi_NetCon_Tip)tip_conntent;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI zMMI_Handle_Msg_Get_Connecting_Tip s_mmi_netcon_tip = %d!!!\n", s_mmi_netcon_tip);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI zMMI_Handle_Msg_Get_Connecting_Tip s_mmi_netcon_tip = %d!!!\n", s_mmi_netcon_tip);
if (s_mmi_netcon_tip != NET_DISCONNECTED && s_mmi_netcon_tip != NET_CONNECTED) {
mmi_set_update_flag(MMI_TASK_TIP_NET_CONNECT);
@@ -253,7 +253,7 @@
char nv_sim_state[32] = {0};
static BOOL run_once = FALSE;
sc_cfg_get(NV_MODEM_MAIN_STATE, nv_sim_state, 32);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_check_sim_state nv_sim_state = %s,s_mmi_sim_tipEx = %d !!\n", nv_sim_state, s_mmi_sim_tipEx);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_check_sim_state nv_sim_state = %s,s_mmi_sim_tipEx = %d !!\n", nv_sim_state, s_mmi_sim_tipEx);
if (!strcmp(nv_sim_state, NV_SIM_STATE_PUK_WATIT)) {
s_mmi_sim_tip = PUK_LOCK;
} else if (!strcmp(nv_sim_state, NV_SIM_STATE_PIN_WATIT)) {
@@ -284,7 +284,7 @@
mmi_set_update_flag(MMI_TASK_TIP);
s_mmi_sim_tipEx = s_mmi_sim_tip;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_check_sim_state s_mmi_sim_tip = %d,s_mmi_sim_tipEx = %d !!\n", s_mmi_sim_tip, s_mmi_sim_tipEx);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_check_sim_state s_mmi_sim_tip = %d,s_mmi_sim_tipEx = %d !!\n", s_mmi_sim_tip, s_mmi_sim_tipEx);
}
#if 0
@@ -298,7 +298,7 @@
} else {
strcpy(s_mmi_sinr_dB, INVALID_STR);
}
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI mmi_check_lte_sinr s_mmi_sinr_dB %s!!!\n",s_mmi_sinr_dB);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI mmi_check_lte_sinr s_mmi_sinr_dB %s!!!\n",s_mmi_sinr_dB);
mmi_set_update_flag(MMI_CONTENT_FLAG_SIGNAL_INFO);
}
static VOID mmi_check_lte_pci(VOID)
@@ -310,7 +310,7 @@
} else {
strcpy(s_mmi_pci, INVALID_STR);
}
- //slog(MMI_PRINT,SLOG_DEBUG,"ZTE_MMI mmi_check_lte_pci s_mmi_pci %s!!!\n",s_mmi_pci);
+ //slog(MMI_PRINT,SLOG_DEBUG,"MMI mmi_check_lte_pci s_mmi_pci %s!!!\n",s_mmi_pci);
mmi_set_update_flag(MMI_CONTENT_FLAG_SIGNAL_INFO);
}
#endif
@@ -342,7 +342,7 @@
int ret = -1;
ret = sc_timer_create(SET_TIP_CHECK_TIMER, TIMER_FLAG_RESTART, SET_TIP_CHECK_TIME, &mmi_tip_check_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_tip_check_timer_create FAILED !!");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_tip_check_timer_create FAILED !!");
}
}
@@ -368,7 +368,7 @@
sc_cfg_get("m_DefaultKeyID", nv_multi_key, sizeof(nv_multi_key));
key_multi_index = atoi(nv_multi_key); //kw 3
if(key_multi_index < 0 || key_multi_index > INT_MAX-1) {// 0~3
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_multi_wifikey %d!!\n", key_multi_index);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_multi_wifikey %d!!\n", key_multi_index);
key_multi_index = 0;
}
key_multi_index = key_multi_index + 1;
@@ -399,7 +399,7 @@
sc_cfg_get("DefaultKeyID", nv_key, sizeof(nv_key));
key_index = atoi(nv_key); //kw 3
if(key_index < 0 || key_index > INT_MAX-1) {// 0~3
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_main_wifikey %d!!\n", key_index);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_main_wifikey %d!!\n", key_index);
key_index = 0;
}
key_index = key_index + 1;
@@ -436,7 +436,7 @@
gMultiSSIDSwitchFlag = FALSE;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_ssid_wifikey s_mmi_ssid = %s s_mmi_wifikey= %s s_multi_mmi_ssid = %s s_multi_mmi_wifikey= %s!!\n",
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_ssid_wifikey s_mmi_ssid = %s s_mmi_wifikey= %s s_multi_mmi_ssid = %s s_multi_mmi_wifikey= %s!!\n",
s_mmi_ssid, s_mmi_wifikey, s_mmi_ssid2, s_mmi_wifikey2);
}
@@ -447,7 +447,7 @@
SINT32 zMMI_Handle_Msg_Get_SSID_Key(VOID *data)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI zMMI_Handle_Msg_Get_SSID_Key !!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI zMMI_Handle_Msg_Get_SSID_Key !!\n");
mmi_get_ssid_wifikey();
#ifndef DISABLE_LCD
if (!mmi_get_multi_ssid_switch_flag()) {
@@ -469,7 +469,7 @@
SINT32 zMMI_Handle_Msg_SSID_Show_Info(VOID *data)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_ssid_show_timer_cb !!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_ssid_show_timer_cb !!\n");
s_mmi_ssid_show_timer_status = 0;
#ifndef DISABLE_LCD
mmi_set_lcd_page_index(MMI_SHOW_PAGE_FIRST);
@@ -489,7 +489,7 @@
int ret = -1;
ret = sc_timer_create(SET_SSID_SHOW_TIMER, TIMER_FLAG_ONCE, SET_SSID_SHOW_TIME, &mmi_ssid_show_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_ssid_show_timer_create FAILED !!");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_ssid_show_timer_create FAILED !!");
}
s_mmi_ssid_show_timer_status = 1;
}
@@ -499,7 +499,7 @@
if (s_mmi_ssid_show_timer_status == 1) {
sc_timer_delete(SET_SSID_SHOW_TIMER);
s_mmi_ssid_show_timer_status = 0;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_ssid_show_timer_stop !!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_ssid_show_timer_stop !!\n");
}
}
static VOID mmi_show_ssid_poweron()
@@ -528,7 +528,7 @@
***********************************************************************************/
VOID mmi_init_lcd_tip(VOID)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_init_lcd_tip !!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_init_lcd_tip !!!\n");
mmi_check_sim_state();
mmi_show_ssid_poweron();
mmi_get_network_provider();
diff --git a/ap/app/zte_comm/zte_mmi/mmi_traffic.c b/ap/app/zte_comm/zte_mmi/mmi_traffic.c
index e3f0d08..4d1c9af 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_traffic.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_traffic.c
@@ -46,7 +46,7 @@
pTrafficInfo->uesd_traffic = s_mmi_used_traffic;
pTrafficInfo->data_unit = s_mmi_data_unit;
pTrafficInfo->useddata_unit = s_mmi_useddata_unit;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_trafficinfo total = %f used = %f!\n", pTrafficInfo->total_traffic, pTrafficInfo->uesd_traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_trafficinfo total = %f used = %f!\n", pTrafficInfo->total_traffic, pTrafficInfo->uesd_traffic);
}
return MMI_SUCCESS;
}
@@ -90,12 +90,12 @@
SINT32 leaved_traffic = 0;
UINT32 i = 0;
if (u_traffic == 0) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_judge_traffic_status u_traffic is too small!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_judge_traffic_status u_traffic is too small!\n");
s_mmi_t_status = (MMI_TRAFFIC_LED)9;
return;
}
leaved_traffic = t_traffic - u_traffic;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_judge_traffic_status leaved_traffic = %d !\n", leaved_traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_judge_traffic_status leaved_traffic = %d !\n", leaved_traffic);
if (leaved_traffic <= 0) {
s_mmi_t_status = (MMI_TRAFFIC_LED)0;
return;
@@ -104,17 +104,17 @@
leaved_traffic = leaved_traffic * 10;
for (i = 0; i < 10; i++) {
#if MMI_DEBUG
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_judge_traffic_status i = %d t_traffic * i=%d t_traffic* (i+1)=%d!\n", i, t_traffic * i, t_traffic * (i + 1));
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_judge_traffic_status i = %d t_traffic * i=%d t_traffic* (i+1)=%d!\n", i, t_traffic * i, t_traffic * (i + 1));
#endif
if (((UINT32)leaved_traffic > t_traffic * i) && ((UINT32)leaved_traffic <= t_traffic * (i + 1))) {
s_mmi_t_status = (MMI_TRAFFIC_LED)i;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_judge_traffic_status s_mmi_t_status = %d!\n", s_mmi_t_status);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_judge_traffic_status s_mmi_t_status = %d!\n", s_mmi_t_status);
return;
}
}
//²»·ûºÏÉÏÃæÈκÎÒ»ÖÖÇé¿ö£¬×Ô¼º¸øs_mmi_t_status¸³Ò»¸öÖµ£¬·ÀÖ¹ÖµÎÞЧµ¼ÖÂÁ÷Á¿µÆ²»ÁÁ
s_mmi_t_status = (MMI_TRAFFIC_LED)9;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_judge_traffic_status invalid s_mmi_t_status !\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_judge_traffic_status invalid s_mmi_t_status !\n");
}
@@ -125,15 +125,15 @@
{
CHAR m_switch[2] = {0};
sc_cfg_get(NV_TRAFFIC_LIMIT_SWITCH, m_switch, sizeof(m_switch));
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_traffic_limit_switch m_switch = %s!\n", m_switch);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_traffic_limit_switch m_switch = %s!\n", m_switch);
if (!(strncmp(m_switch, "1", 2))) {
s_mmi_traffic_switch = TRAFFIC_LIMIT_SWITCH_ON;
} else if (!(strncmp(m_switch, "0", 2))) {
s_mmi_traffic_switch = TRAFFIC_LIMIT_SWITCH_OFF;
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_traffic_limit_switch error!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_traffic_limit_switch error!\n");
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_traffic_limit_switch s_mmi_traffic_switch = %d!\n", s_mmi_traffic_switch);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_traffic_limit_switch s_mmi_traffic_switch = %d!\n", s_mmi_traffic_switch);
}
/**********************************************************************************
@@ -145,19 +145,19 @@
MMI_TRAFFIC_UNIT traffic_unit = TRAFFIC_UNIT_MAX;
if (s_mmi_traffic_switch == TRAFFIC_LIMIT_SWITCH_ON) {
sc_cfg_get(NV_TRAFFIC_LIMIT_UNIT, m_unit, sizeof(m_unit));
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_traffic_unit m_unit = %s!\n", m_unit);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_traffic_unit m_unit = %s!\n", m_unit);
if (!(strncmp(m_unit, NV_TRAFFIC_LIMIT_UNIT_DATA, 5))) {
traffic_unit = TRAFFIC_UNIT_DATA;
} else if (!(strncmp(m_unit, NV_TRAFFIC_LIMIT_UNIT_TIME, 5))) {
traffic_unit = TRAFFIC_UNIT_TIME;
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_traffic_unit error!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_traffic_unit error!\n");
}
} else {
traffic_unit = TRAFFIC_UNIT_DATA;
}
s_mmi_traffic_unit = traffic_unit;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_traffic_unit traffic_unit = %d! s_mmi_traffic_unit = %d\n", traffic_unit, s_mmi_traffic_unit);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_traffic_unit traffic_unit = %d! s_mmi_traffic_unit = %d\n", traffic_unit, s_mmi_traffic_unit);
return traffic_unit;
}
@@ -172,11 +172,11 @@
UINT32 warn_level = 0;
UINT32 i = 0;
sc_cfg_get(NV_TRAFFIC_ALERT_PERCENT, m_warn_data, sizeof(m_warn_data));
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_warning_traffic m_warn_data = %s!\n", m_warn_data);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_warning_traffic m_warn_data = %s!\n", m_warn_data);
m_warn_value = strlen(m_warn_data) == 0 ? 0 : atoi(m_warn_data);
if (m_warn_value > INT_MAX-1) {//kw 3
m_warn_value = 0;
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_warning_traffic errdata = %s!\n", m_warn_data);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_warning_traffic errdata = %s!\n", m_warn_data);
}
s_warning_tip_level = m_warn_value;
if (m_warn_value == 100) {
@@ -186,7 +186,7 @@
for (i = 0; i < 10; i++) {
if (m_warn_value >= 10 * i && m_warn_value < 10 * (i + 1)) {
warn_level = 9 - i;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_warning_traffic warn_level = %d!\n", warn_level);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_warning_traffic warn_level = %d!\n", warn_level);
return warn_level;
}
}
@@ -225,22 +225,22 @@
UINT32 used_traffic = 0;
if (t_unit == TRAFFIC_UNIT_TIME) {
sc_cfg_get(NV_TRAFFIC_USED_TIME, m_used_data, sizeof(m_used_data));
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_used_traffic UNIT_TIME m_used_data = %s!\n", m_used_data);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_used_traffic UNIT_TIME m_used_data = %s!\n", m_used_data);
UINT32 m_used_data_time_value = strlen(m_used_data) == 0 ? 0 : (UINT32)(atoi(m_used_data));
if(m_used_data_time_value > INT_MAX-1) { //kw 3
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI UNIT_TIME err m_used_data =%s-->%u!\n", m_used_data, m_used_data_time_value);
+ slog(MMI_PRINT, SLOG_ERR, "MMI UNIT_TIME err m_used_data =%s-->%u!\n", m_used_data, m_used_data_time_value);
m_used_data_time_value = 0;
}
used_traffic = m_used_data_time_value / (60 * 60);
float m_user_data_time_value_f = (float)m_used_data_time_value;
s_mmi_used_traffic = m_user_data_time_value_f / (60 * 60);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_used_traffic used_traffic = %d!,s_mmi_used_traffic=%f\n", used_traffic, s_mmi_used_traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_used_traffic used_traffic = %d!,s_mmi_used_traffic=%f\n", used_traffic, s_mmi_used_traffic);
} else if (t_unit == TRAFFIC_UNIT_DATA) {
sc_cfg_get(NV_TRAFFIC_USED_DATA, m_used_data, sizeof(m_used_data));
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_used_traffic UNIT_DATA m_used_data = %s!\n", m_used_data);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_used_traffic UNIT_DATA m_used_data = %s!\n", m_used_data);
long long m_user_data_value = atoll(m_used_data);
if(m_user_data_value < 0 || m_user_data_value > LLONG_MAX-1) { //kw 3
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI UNIT_DATA err m_used_data =%s-->%lld!\n", m_used_data, m_user_data_value);
+ slog(MMI_PRINT, SLOG_ERR, "MMI UNIT_DATA err m_used_data =%s-->%lld!\n", m_used_data, m_user_data_value);
m_user_data_value = 0;
}
@@ -250,9 +250,9 @@
used_traffic = (UINT32)(m_user_data_value / (1024 * 1024));
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_used_traffic m_user_data_value = %lld!\n", m_user_data_value);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_used_traffic m_user_data_value = %lld!\n", m_user_data_value);
float m_user_data_value_f = (float)m_user_data_value;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_used_traffic m_user_data_value_f = %f!\n", m_user_data_value_f);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_used_traffic m_user_data_value_f = %f!\n", m_user_data_value_f);
if (s_mmi_traffic_switch == TRAFFIC_LIMIT_SWITCH_OFF) {
mmi_set_used_data(m_user_data_value_f);
} else {
@@ -268,7 +268,7 @@
s_mmi_used_traffic = m_user_data_value_f / (1024 * 1024);
}
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_used_traffic used_traffic = %d!,s_mmi_used_traffic=%f\n", used_traffic, s_mmi_used_traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_used_traffic used_traffic = %d!,s_mmi_used_traffic=%f\n", used_traffic, s_mmi_used_traffic);
}
return used_traffic;
@@ -285,7 +285,7 @@
UINT32 unitValue = 0;
float t_traffic = 0;
sc_cfg_get(NV_TRAFFIC_LIMIT_SIZE, m_traffic, sizeof(m_traffic));
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_total_traffic m_traffic = %s!\n", m_traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_total_traffic m_traffic = %s!\n", m_traffic);
if (s_mmi_traffic_switch == TRAFFIC_LIMIT_SWITCH_OFF) {
s_mmi_total_traffic = 0;
return t_traffic;
@@ -293,7 +293,7 @@
if (t_unit == TRAFFIC_UNIT_DATA) {
sscanf((const char *)m_traffic, "%f_%lu", &dataValue, &unitValue);
if(dataValue < 0 || dataValue > FLT_MAX) { //kw 3
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_total_traffic err dataValue =%f!\n", dataValue);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_total_traffic err dataValue =%f!\n", dataValue);
dataValue = 0;
}
@@ -305,10 +305,10 @@
s_mmi_data_unit = TRAFFIC_DATA_UNIT_TB;
} else {
s_mmi_data_unit = TRAFFIC_DATA_UNIT_MB;
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_total_traffic err unitValue=%lu!\n", unitValue);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_total_traffic err unitValue=%lu!\n", unitValue);
unitValue = 1;//kw 3
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_total_traffic s_mmi_data_unit = %d!\n", s_mmi_data_unit);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_total_traffic s_mmi_data_unit = %d!\n", s_mmi_data_unit);
t_traffic = dataValue * unitValue;
s_mmi_total_traffic = dataValue;
if (t_traffic <= 10) {
@@ -325,8 +325,8 @@
}
s_mmi_total_traffic = t_traffic;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_total_traffic t_traffic = %f!\n", t_traffic);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_total_traffic s_mmi_total_traffic = %f!\n", s_mmi_total_traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_total_traffic t_traffic = %f!\n", t_traffic);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_total_traffic s_mmi_total_traffic = %f!\n", s_mmi_total_traffic);
return t_traffic;
}
@@ -357,7 +357,7 @@
***********************************************************************************/
VOID mmi_set_trafficled_on(VOID)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI TRAFFIC_LED ON!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI TRAFFIC_LED ON!!!\n");
s_mmi_t_status_ex = (MMI_TRAFFIC_LED)0;
mmi_set_traffic_update();
}
@@ -367,7 +367,7 @@
***********************************************************************************/
static VOID * mmi_get_traffic_info_timer_callback(VOID *arg)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_traffic_info_timer_callback!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_traffic_info_timer_callback!!!\n");
if (s_mmi_traffic_switch == TRAFFIC_LIMIT_SWITCH_ON && mmi_get_net_state() == 1) {
mmi_get_traffic_info();
mmi_set_traffic_update();
@@ -380,11 +380,11 @@
***********************************************************************************/
SINT32 zMMI_Handle_Msg_Get_TafficInfo_Start(VOID* data)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_Get_TafficInfo_Start !!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_Get_TafficInfo_Start !!!\n");
int ret = -1;
ret = sc_timer_create(SET_TRAFFIC_INFO_WAIT_TIMER, TIMER_FLAG_RESTART, SET_TRAFFIC_INFO_WAIT_TIME, &mmi_get_traffic_info_timer_callback, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, " ZTE_MMI TafficInfo_Start_Timer FAILED,cause=%d!!\n", ret);
+ slog(MMI_PRINT, SLOG_ERR, " MMI TafficInfo_Start_Timer FAILED,cause=%d!!\n", ret);
}
mmi_get_traffic_info();
mmi_set_traffic_update();
@@ -393,7 +393,7 @@
SINT32 zMMI_Handle_Msg_Get_TafficInfo_End(VOID* data)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_Get_TafficInfo_End !!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_Get_TafficInfo_End !!!\n");
sc_timer_delete(SET_TRAFFIC_INFO_WAIT_TIMER);
//¶Ï¿ªÍøÂ磬¹Ø±ÕÍøÂç¸æ¾¯µÆ
s_warning_tip_level = 0;
@@ -403,7 +403,7 @@
SINT32 zMMI_Handle_Msg_TafficInfo_Reset(VOID* data)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_TafficInfo_Reset !!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_TafficInfo_Reset !!!\n");
s_mmi_t_status_ex = (MMI_TRAFFIC_LED)0;
mmi_get_traffic_info();
mmi_set_traffic_update();
@@ -432,10 +432,10 @@
if (s_mmi_traffic_switch == TRAFFIC_LIMIT_SWITCH_ON) {
ret = sc_timer_create(SET_TRAFFIC_INFO_WAIT_TIMER, TIMER_FLAG_RESTART, SET_TRAFFIC_INFO_WAIT_TIME, &mmi_get_traffic_info_timer_callback, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, " ZTE_MMI Taffic init Start Timer FAILED,cause=%d!!\n", ret);
+ slog(MMI_PRINT, SLOG_ERR, " MMI Taffic init Start Timer FAILED,cause=%d!!\n", ret);
}
}
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_traffic_led_init finish!!!\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_traffic_led_init finish!!!\n");
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_voip.c b/ap/app/zte_comm/zte_mmi/mmi_voip.c
index 5056fdd..81ee46b 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_voip.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_voip.c
@@ -70,12 +70,12 @@
} else {
s_mmi_rj11_state = RJ11_STATUS_NOR;
}
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_get_rj11_status nv_status = %s s_mmi_rj11_state= %d !\n", nv_voip_status, s_mmi_rj11_state);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_get_rj11_status nv_status = %s s_mmi_rj11_state= %d !\n", nv_voip_status, s_mmi_rj11_state);
}
SINT32 zMMI_Handle_Msg_Rj11_Status(VOID * data)
{
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI zMMI_Handle_Msg_Rj11_Status !\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI zMMI_Handle_Msg_Rj11_Status !\n");
mmi_get_rj11_status();
mmi_set_rj11_update();
return 0;
@@ -135,7 +135,7 @@
} else {
s_mmi_voip_state = VOIP_STATUS_NOR;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI zMMI_Handle_Msg_Voip_Status nv_voip_status = %s s_mmi_voip_state= %d !\n", nv_voip_status, s_mmi_voip_state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI zMMI_Handle_Msg_Voip_Status nv_voip_status = %s s_mmi_voip_state= %d !\n", nv_voip_status, s_mmi_voip_state);
}
/************************************************************************************
@@ -143,7 +143,7 @@
***********************************************************************************/
SINT32 zMMI_Handle_Msg_Voip_Status(VOID * data)
{
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI zMMI_Handle_Msg_Voip_Status !\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI zMMI_Handle_Msg_Voip_Status !\n");
mmi_get_voip_status();
mmi_set_voip_update();
return 0;
@@ -156,6 +156,6 @@
{
mmi_get_voip_status();
mmi_set_voip_update();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_voip_init finish!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_voip_init finish!!!\n");
}
diff --git a/ap/app/zte_comm/zte_mmi/mmi_wifi.c b/ap/app/zte_comm/zte_mmi/mmi_wifi.c
index 52c9e60..a3e6fc6 100755
--- a/ap/app/zte_comm/zte_mmi/mmi_wifi.c
+++ b/ap/app/zte_comm/zte_mmi/mmi_wifi.c
@@ -247,7 +247,7 @@
{
char wifi_mode[2] = {0};
sc_cfg_get(WLAN_NV_CUR_STATE, wifi_mode, 2);
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI handle_wifi_opt mode = %s RadioOff=%s\n", mode, wifi_mode);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI handle_wifi_opt mode = %s RadioOff=%s\n", mode, wifi_mode);
if (!strcmp(mode, WIFI_TURN_OFF_FAKE_POWEROFF)) {
if (g_mmi_key_longpress_flag) {
g_mmi_key_longpress_flag = FALSE;
@@ -261,20 +261,20 @@
mmi_ms_sleep(30);
sc_cfg_get(WLAN_NV_PROCESS_STATE, wifi_process_state, 11);
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI wait for wifi processing end wait_times = %d\n", wait_times);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI wait for wifi processing end wait_times = %d\n", wait_times);
}
sc_cfg_get(WLAN_NV_CUR_STATE, wifi_mode, 2);
if (!strcmp(wifi_mode, WIFI_OPENED)) {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI handle_wifi_opt FAKE_POWEROFF\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI handle_wifi_opt FAKE_POWEROFF\n");
ipc_send_message(MODULE_ID_MMI, MODULE_ID_WIFI, (USHORT)MSG_CMD_WIFI_CLOSE, NULL, NULL, 0);
}
} else {
if (strcmp(wifi_mode, mode)) {
if (strcmp(wifi_mode, WIFI_OPENED) == 0) {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI handle_wifi_opt mode close wifi\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI handle_wifi_opt mode close wifi\n");
ipc_send_message(MODULE_ID_MMI, MODULE_ID_WIFI, (USHORT)MSG_CMD_WIFI_CLOSE, NULL, NULL, 0); //ÏòWIFI·¢Ë͹رÕÏûÏ¢
} else if (strcmp(wifi_mode, WIFI_CLOSED) == 0) {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI handle_wifi_opt mode open wifi\n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI handle_wifi_opt mode open wifi\n");
ipc_send_message(MODULE_ID_MMI, MODULE_ID_WIFI, (USHORT)MSG_CMD_WIFI_OPEN, NULL, NULL, 0); //ÏòWIFI·¢ËÍ»½ÐÑÏûÏ¢
}
}
@@ -296,7 +296,7 @@
int ret = -1;
ret = sc_timer_create(SET_WPS_TIP_CHECK_TIMER, TIMER_FLAG_ONCE, SET_WPS_TIP_CHECK_TIME, &mmi_wps_tip_check_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_wps_tip_timer_start FAILED\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_wps_tip_timer_start FAILED\n");
}
}
@@ -328,7 +328,7 @@
|| ((!strcmp(authmode, "WPAPSKWPA2PSK")) && (!strcmp(encrypType, "TKIP")))
|| (!strcmp(authmode, "WPA3Personal"))
|| (!strcmp(authmode, "WPA2WPA3"))) {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_wps_operate authmode = %s, encryptype = %s, hidessid = %s \n", authmode, encrypType, hidessid);
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_wps_operate authmode = %s, encryptype = %s, hidessid = %s \n", authmode, encrypType, hidessid);
s_mmi_wpsState = WPS_FAIL;
mmi_wps_tip_timer_start();
mmi_set_wifi_update();
@@ -337,7 +337,7 @@
return;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_wps_operate authmode = %s, encryptype = %s, hidessid = %s \n", authmode, encrypType, hidessid);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_wps_operate authmode = %s, encryptype = %s, hidessid = %s \n", authmode, encrypType, hidessid);
if (mmi_get_wifi_state() && (mmi_get_wps_state() == WPS_ACTIVE_MAX)) { //³¤°´Æô¶¯WPS
strncpy(wps_mode, "PBC", 9);
@@ -348,7 +348,7 @@
sc_cfg_set(WLAM_NV_WPS_MODE_NAME, wps_mode);
lRet = ipc_send_message(MODULE_ID_MMI, MODULE_ID_WIFI, (USHORT)MSG_CMD_WIFI_WPS, 0, NULL, 0);
if (0 == lRet) {
- slog(MMI_PRINT, SLOG_NORMAL, "ZTE_MMI mmi_wps_operate send to wifi ok \n");
+ slog(MMI_PRINT, SLOG_NORMAL, "MMI mmi_wps_operate send to wifi ok \n");
//send_rsp_str_to_farps(MODULE_ID_MMI, "\r\n+TKEYEVENT: wps actived\r\n", strlen("\r\n+TKEYEVENT: wps actived\r\n"));
ipc_send_message(MODULE_ID_MMI, MODULE_ID_AT_CTL, MSG_CMD_SEND_RSP_TO_OUTSIDE, strlen("\r\n+TKEYEVENT: wps actived\r\n"), "\r\n+TKEYEVENT: wps actived\r\n", 0);
}
@@ -370,11 +370,11 @@
m_wifi_num = atoi(va1_wifi_num);
if ((wifi_num < 0 || wifi_num > INT_MAX-1) ||
(m_wifi_num < 0 || m_wifi_num > INT_MAX-1)){//kw 3, 0~32?
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_get_wifi_stanum wifi_num = %d, m_wifi_num = %d\n", wifi_num, m_wifi_num);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_get_wifi_stanum wifi_num = %d, m_wifi_num = %d\n", wifi_num, m_wifi_num);
return;
}
s_mmi_wifi_connect_num = wifi_num + m_wifi_num;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_get_wifi_stanum wifi_num = %d,m_wifi_num = %d, s_mmi_wifi_connect_num = %d \n", wifi_num, m_wifi_num, s_mmi_wifi_connect_num);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_get_wifi_stanum wifi_num = %d,m_wifi_num = %d, s_mmi_wifi_connect_num = %d \n", wifi_num, m_wifi_num, s_mmi_wifi_connect_num);
}
/**********************************************************************************
@@ -387,10 +387,10 @@
#if 0
s_mmi_wifi_connect_num = zte_wlan_capture_sta_num();
if (s_mmi_wifi_connect_num != 0 && s_mmi_wifi_connect_numEx == 0) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI zMMI_Get_wifi_Stanum_Callback s_mmi_connected_user = 1!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI zMMI_Get_wifi_Stanum_Callback s_mmi_connected_user = 1!!!\n");
s_mmi_Isconnected_user = 1;
} else if (s_mmi_wifi_connect_num == 0 && s_mmi_wifi_connect_numEx != 0) {
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI zMMI_Get_wifi_Stanum_Callback s_mmi_connected_user = 0!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI zMMI_Get_wifi_Stanum_Callback s_mmi_connected_user = 0!!!\n");
s_mmi_Isconnected_user = 0;
}
s_mmi_wifi_connect_numEx = s_mmi_wifi_connect_num;
@@ -398,7 +398,7 @@
#else
SINT32 va_state = -1;
va_state = *(SINT32*)data;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI zMMI_Handle_Msg_Get_Wifi_StaNum va_state = %d\n", va_state);
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI zMMI_Handle_Msg_Get_Wifi_StaNum va_state = %d\n", va_state);
mmi_get_wifi_stanum();
mmi_set_wifi_update();
#endif
@@ -425,7 +425,7 @@
int ret = -1;
ret = sc_timer_create(SET_WIFI_STANUM_CHECK_TIMER, TIMER_FLAG_RESTART, SET_WIFI_STANUM_CHECK_TIME, &mmi_wifi_stanum_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_wifi_stanum_timer_create FAILED\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_wifi_stanum_timer_create FAILED\n");
}
}
@@ -451,7 +451,7 @@
#if 0 //kw 3
if (s_mmi_wifidata0_send == -1 || s_mmi_wifidata0_recv == -1 || s_mmi_wifidata1_send == -1 || s_mmi_wifidata1_recv == -1) {
s_mmi_wifidata_state = FALSE;
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_wifi_data_timer_cb invalid wifi data!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_wifi_data_timer_cb invalid wifi data!\n");
s_mmi_wifidata0_lastsend = 0;
s_mmi_wifidata0_lastrecv = 0;
s_mmi_wifidata1_lastsend = 0;
@@ -463,10 +463,10 @@
if ((s_mmi_wifidata0_send != s_mmi_wifidata0_lastsend) || (s_mmi_wifidata0_recv != s_mmi_wifidata0_lastrecv)
|| (s_mmi_wifidata1_send != s_mmi_wifidata1_lastsend) || (s_mmi_wifidata1_recv != s_mmi_wifidata1_lastrecv)) {
s_mmi_wifidata_state = TRUE; //ÓÐÊý¾Ý´«Êä
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_wifi_data_timer_cb having data transfer!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_wifi_data_timer_cb having data transfer!\n");
} else {
s_mmi_wifidata_state = FALSE;
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI mmi_wifi_data_timer_cb no data transfer!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI mmi_wifi_data_timer_cb no data transfer!\n");
}
s_mmi_wifidata0_lastsend = s_mmi_wifidata0_send;
s_mmi_wifidata0_lastrecv = s_mmi_wifidata0_recv;
@@ -496,7 +496,7 @@
int ret = -1;
ret = sc_timer_create(SET_WIFI_DATA_CHECK_TIMER, TIMER_FLAG_RESTART, SET_WIFI_DATA_CHECK_TIME, &mmi_wifi_data_timer_cb, NULL);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_wifi_data_timer_create FAILED\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_wifi_data_timer_create FAILED\n");
}
}
@@ -517,7 +517,7 @@
fd_qrcode = fopen(QRCODE_STATE_PATH, "r");
if (fd_qrcode == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_set_qrcode_state open qrcode file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_set_qrcode_state open qrcode file fail!\n");
perror(QRCODE_STATE_PATH);
return 0;
}
@@ -529,10 +529,10 @@
} else if (strcmp(buf_qrcode, "0") == 0) {
s_mmi_qrcode_exist = FALSE;
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI qrcode file state error!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI qrcode file state error!\n");
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI read qrcode file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI read qrcode file fail!\n");
}
fclose(fd_qrcode);
@@ -560,7 +560,7 @@
fd_wifi = fopen(WIFI_STATE_PATH, "r");
if (fd_wifi == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_set_wifi_state open wifi file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_set_wifi_state open wifi file fail!\n");
perror(WIFI_STATE_PATH);
return;
}
@@ -582,10 +582,10 @@
}
//#endif
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI wifi file state error!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI wifi file state error!\n");
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI read wifi file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI read wifi file fail!\n");
}
fclose(fd_wifi);
@@ -603,7 +603,7 @@
fd_wps = fopen(WPS_STATE_PATH, "r");
if (fd_wps == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_set_wifi_state open wps file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_set_wifi_state open wps file fail!\n");
perror(WPS_STATE_PATH);
return;
}
@@ -616,10 +616,10 @@
s_mmi_wpsState = WPS_DEACTIVED;
mmi_wps_tip_timer_start();
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI wps file state error!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI wps file state error!\n");
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI read wps file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI read wps file fail!\n");
}
fclose(fd_wps);
@@ -633,7 +633,7 @@
fd_wps = fopen(WPS_STATEEX_PATH, "r");
if (fd_wps == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_set_wifi_state open wpsEX file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_set_wifi_state open wpsEX file fail!\n");
perror(WPS_STATEEX_PATH);
return;
}
@@ -646,10 +646,10 @@
} else if (strcmp(buf_wps, "2") == 0) {
s_mmi_wpsState = WPS_DEACTIVING;
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI wps file state error!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI wps file state error!\n");
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI read wps file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI read wps file fail!\n");
}
fclose(fd_wps);
@@ -666,7 +666,7 @@
fd_wifiStation = fopen(WIFI_STATION_PATH, "r");
if (fd_wifiStation == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_set_wifiStation_state open wifiStation file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_set_wifiStation_state open wifiStation file fail!\n");
perror(WIFI_STATION_PATH);
return;
}
@@ -689,11 +689,11 @@
} else if (strcmp(buf_wifiStation, "0") == 0) {
s_mmi_wifistation_signal_num = 0;
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI wifiStation file state error!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI wifiStation file state error!\n");
}
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI read wifiStation file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI read wifiStation file fail!\n");
}
fclose(fd_wifiStation);
}
@@ -743,28 +743,28 @@
fd = inotify_init();
if (fd < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI fail to inotify_init\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI fail to inotify_init\n");
assert(0);
}
prctl(PR_SET_NAME, "mmiwificheck", 0, 0, 0);
file_wd[0].filename = WIFI_STATE_PATH;
wd = inotify_add_watch(fd, file_wd[0].filename, IN_CLOSE_WRITE);
if (wd < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI can't add watch for %s\n", file_wd[0].filename);
+ slog(MMI_PRINT, SLOG_ERR, "MMI can't add watch for %s\n", file_wd[0].filename);
}
file_wd[0].wd = wd;
file_wd[1].filename = WPS_STATE_PATH;
wd = inotify_add_watch(fd, file_wd[1].filename, IN_CLOSE_WRITE);
if (wd < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI can't add watch for %s\n", file_wd[1].filename);
+ slog(MMI_PRINT, SLOG_ERR, "MMI can't add watch for %s\n", file_wd[1].filename);
}
file_wd[1].wd = wd;
file_wd[3].filename = WPS_STATEEX_PATH;
wd = inotify_add_watch(fd, file_wd[3].filename, IN_CLOSE_WRITE);
if (wd < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI can't add watch for %s\n", file_wd[3].filename);
+ slog(MMI_PRINT, SLOG_ERR, "MMI can't add watch for %s\n", file_wd[3].filename);
}
file_wd[3].wd = wd;
@@ -773,14 +773,14 @@
file_wd[2].filename = QRCODE_STATE_PATH;
wd = inotify_add_watch(fd, file_wd[2].filename, IN_CLOSE_WRITE);
if (wd < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI can't add watch for %s\n", file_wd[2].filename);
+ slog(MMI_PRINT, SLOG_ERR, "MMI can't add watch for %s\n", file_wd[2].filename);
}
file_wd[2].wd = wd;
file_wd[4].filename = WIFI_STATION_PATH;
wd = inotify_add_watch(fd, file_wd[4].filename, IN_CLOSE_WRITE);
if (wd < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI can't add watch for %s\n", file_wd[4].filename);
+ slog(MMI_PRINT, SLOG_ERR, "MMI can't add watch for %s\n", file_wd[4].filename);
}
file_wd[4].wd = wd;
}
@@ -795,7 +795,7 @@
while ((char *)event - buffer < len) {
int event_len = event->len;
if (event_len < 0 || event_len > INT_MAX-1) {//kw 3, <len-offs_len
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI mmi_wifi_thread_function %d!!\n", event_len);
+ slog(MMI_PRINT, SLOG_ERR, "MMI mmi_wifi_thread_function %d!!\n", event_len);
break;
}
for (i = 0; i < WD_NUM; i++) {
@@ -824,10 +824,10 @@
{
pthread_t mmi_wifi_thread;
if (pthread_create(&mmi_wifi_thread, NULL, &mmi_wifi_thread_function, NULL) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_MMI create wifi thread error!\n");
+ slog(MMI_PRINT, SLOG_ERR, "MMI create wifi thread error!\n");
MMI_ASSERT(0);
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_MMI create wifi_thread success!!!\n");
+ slog(MMI_PRINT, SLOG_DEBUG, "MMI create wifi_thread success!!!\n");
}
/**********************************************************************************
diff --git a/ap/app/zte_comm/zte_watchdog/watchdog.c b/ap/app/zte_comm/zte_watchdog/watchdog.c
index 931a5bd..2b0ac1d 100755
--- a/ap/app/zte_comm/zte_watchdog/watchdog.c
+++ b/ap/app/zte_comm/zte_watchdog/watchdog.c
@@ -40,10 +40,10 @@
{
int msgid = 0;
if ((msgid = msgget(MODULE_ID_WDT, IPC_CREAT | 0600)) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT [error]:Create MODULE_ID_WDT queue faild! msgid=%d\n", msgid);
+ slog(MMI_PRINT, SLOG_ERR, "WDT [error]:Create MODULE_ID_WDT queue faild! msgid=%d\n", msgid);
return -1;
}
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_WDT Creating mmi message queue success! MODULE_ID_WDT=0x%x\n", msgid);
+ slog(MMI_PRINT, SLOG_DEBUG, "WDT Creating mmi message queue success! MODULE_ID_WDT=0x%x\n", msgid);
return msgid;
}
@@ -57,10 +57,10 @@
}
iRet = msgrcv(msgQueueId, pstMsg, msgSize, MsgType, MSG_NOERROR);
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_RecvMsgFromQueue : iRet : %ld, pstMsg->src_id:%ld, pstMsg->usMsgCmd:%ld \n", iRet, pstMsg->src_id, pstMsg->usMsgCmd);
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_RecvMsgFromQueue : iRet : %ld, pstMsg->src_id:%ld, pstMsg->usMsgCmd:%ld \n", iRet, pstMsg->src_id, pstMsg->usMsgCmd);
if (iRet <= 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_RecvMsgFromQueue Failed : iRet : %ld, pstMsg->src_id:%ld, pstMsg->usMsgCmd:%ld \n", iRet, pstMsg->src_id, pstMsg->usMsgCmd);
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_RecvMsgFromQueue Failed : iRet : %ld, pstMsg->src_id:%ld, pstMsg->usMsgCmd:%ld \n", iRet, pstMsg->src_id, pstMsg->usMsgCmd);
return -1;
} else {
return 0;
@@ -74,12 +74,12 @@
return -1;
}
if ((pstMsg->usMsgCmd != MSG_CMD_MMICHECK_TIP_INFO) && (pstMsg->usMsgCmd != MSG_CMD_MMIGET_WIFI_DATA)) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_ProcMsg msg:src_id = 0x%04x,lMsgType = %d,usMsgCmd = 0x%08x,usDataLen = %d,data = %s\n", pstMsg->src_id, pstMsg->lMsgType, pstMsg->usMsgCmd, pstMsg->usDataLen, pstMsg->aucDataBuf);
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_ProcMsg msg:src_id = 0x%04x,lMsgType = %d,usMsgCmd = 0x%08x,usDataLen = %d,data = %s\n", pstMsg->src_id, pstMsg->lMsgType, pstMsg->usMsgCmd, pstMsg->usDataLen, pstMsg->aucDataBuf);
}
switch (pstMsg->usMsgCmd) {
case RTC_MSG_ALARM_ELAPSED:
//οغÍι¹·
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT RTC_MSG_ALARM_ELAPSED\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT RTC_MSG_ALARM_ELAPSED\n");
set_wake_lock(WDT_GET_POWER_LOCK_ID);
wdt_feet();
wdt_temp_check_process();
@@ -111,7 +111,7 @@
{
//pthread_t handlemsg_thread;
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT start wdt_creatMsgThread\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT start wdt_creatMsgThread\n");
long MsgType = 0;
MSG_BUF Msg;
@@ -175,7 +175,7 @@
}
sc_cfg_get("watchdog_app", nv_value, sizeof(nv_value));
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT watchdog_app = %s\n", nv_value);
+ slog(MMI_PRINT, SLOG_ERR, "WDT watchdog_app = %s\n", nv_value);
if (strcmp(nv_value, "1") == 0) {
g_watchdog_flag = 1;
@@ -195,17 +195,17 @@
loglevel_init();
//zdm½«nvÉèÖÃת»»³ÉÈ«¾Ö±äÁ¿½øÐй¦ÄÜ¿ØÖÆ
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT ######START######\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT ######START######\n");
if ((g_wdt_msgQue_Id = wdt_create_msg_queue()) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT create g_mmi_msgQue_Id failed!!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT create g_mmi_msgQue_Id failed!!!\n");
assert(0);
}
get_nv();
if (!g_watchdog_flag && !g_temp_protect_wd) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT ######END######\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT ######END######\n");
return -1;
}
if (g_watchdog_flag) {
@@ -213,7 +213,7 @@
wdt_rtc_add(WDT_INTERVAL_TIME);
} else {
if (pthread_create(&temp_check_thread, NULL, &wdt_creatTempCheckThread, NULL) == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT temp_check_thread creat error\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT temp_check_thread creat error\n");
return -1;
}
}
diff --git a/ap/app/zte_comm/zte_watchdog/watchdog_adapter.c b/ap/app/zte_comm/zte_watchdog/watchdog_adapter.c
index 8de6f81..204bf70 100755
--- a/ap/app/zte_comm/zte_watchdog/watchdog_adapter.c
+++ b/ap/app/zte_comm/zte_watchdog/watchdog_adapter.c
@@ -43,17 +43,17 @@
ret_fd = open(filepath, O_RDWR);
if (ret_fd == -1) {
- perror("ZTE_WDT wdt_file_operate open file fail:!\n");
+ perror("WDT wdt_file_operate open file fail:!\n");
return WDT_ERROR;
}
len = strlen(buf);
if (write(ret_fd, buf, len) != len) {
- perror("ZTE_WDT wdt_file_operate write file fail:!\n");
+ perror("WDT wdt_file_operate write file fail:!\n");
close((int)ret_fd);
return WDT_ERROR;
}
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_file_operate write file: %s success!!\n", filepath);
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_file_operate write file: %s success!!\n", filepath);
close((int)ret_fd);
return WDT_SUCCESS;
}
@@ -69,7 +69,7 @@
ret = rtc_timer_add(time_in_ms / 1000, WDT_TEMP_PROTECT, MODULE_ID_WDT);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_rtc_add failed!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_rtc_add failed!\n");
}
}
VOID wdt_rtc_delete()
@@ -79,7 +79,7 @@
ret = rtc_timer_del(WDT_TEMP_PROTECT, MODULE_ID_MMI);
if (ret != 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_rtc_delete failed\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_rtc_delete failed\n");
}
}
@@ -87,12 +87,12 @@
{
int ret = -1;
if (g_wdt_handle == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt didn't open !\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt didn't open !\n");
return;
}
ret = ioctl(g_wdt_handle, ZX_WDT_FEED_DOG, NULL);
if (ret < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt feed dog failed!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt feed dog failed!\n");
}
}
@@ -100,17 +100,17 @@
{
g_wdt_handle = open(ZX_SOFT_WDT_DEV, 0);
if (g_wdt_handle == -1) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT Couldn't open wdt:%s %s!\n", ZX_SOFT_WDT_DEV, strerror(errno));
+ slog(MMI_PRINT, SLOG_ERR, "WDT Couldn't open wdt:%s %s!\n", ZX_SOFT_WDT_DEV, strerror(errno));
return;
}
int timeout = WDT_INTERVAL_TIME / 1000;
if (ioctl(g_wdt_handle, ZX_WDT_SET_INTERNAL, timeout) < 0) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT The wdt setting failed!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT The wdt setting failed!\n");
return;
}
wdt_feet();
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT INIT END: %d seconds\n", timeout);
+ slog(MMI_PRINT, SLOG_ERR, "WDT INIT END: %d seconds\n", timeout);
}
diff --git a/ap/app/zte_comm/zte_watchdog/watchdog_battery.c b/ap/app/zte_comm/zte_watchdog/watchdog_battery.c
index aa30c28..a385229 100755
--- a/ap/app/zte_comm/zte_watchdog/watchdog_battery.c
+++ b/ap/app/zte_comm/zte_watchdog/watchdog_battery.c
@@ -74,7 +74,7 @@
f_couter = fopen(CHARGE_BAT_TEMP_PATH, "r");
if (f_couter == NULL) {
perror(CHARGE_BAT_TEMP_PATH);
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT open battery_temp file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT open battery_temp file fail!\n");
return TEMP_DETECT_MAX;
}
len = fread(buf, 1, CHARGE_STATUS_LENGTH, f_couter);
@@ -82,11 +82,11 @@
temp_voltage = atoi(buf);
fclose(f_couter);
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT read battery_temp file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT read battery_temp file fail!\n");
fclose(f_couter);
return TEMP_DETECT_MAX;
}
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT BATTERY wdt_get_battery_temp_voltage temp = %d!\n", temp_voltage);
+ slog(MMI_PRINT, SLOG_ERR, "WDT BATTERY wdt_get_battery_temp_voltage temp = %d!\n", temp_voltage);
if (temp_voltage <= g_superhightempvol || temp_voltage >= g_superlowtempvol) {
temp_detect = TEMP_DETECT_ERROR;
@@ -113,20 +113,20 @@
s_temp_count = 1;
} else {
s_temp_count ++;
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT BATTERY wdt_battery_temp_check = %d, temp=%d, g_chg_switch_off = %d!\n", s_temp_count, temp,g_chg_switch_off);
+ slog(MMI_PRINT, SLOG_ERR, "WDT BATTERY wdt_battery_temp_check = %d, temp=%d, g_chg_switch_off = %d!\n", s_temp_count, temp,g_chg_switch_off);
if (s_temp_count == 3) {
s_temp_count = 0;
if (temp == TEMP_DETECT_ABNORMAL) {
if (!g_chg_switch_off) {
record_temperror_offnum2();
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT BATTERY temp abnormal!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT BATTERY temp abnormal!\n");
system(TURN_OFF_CHG);
g_chg_switch_off = TRUE;
}
} else if (temp == TEMP_DETECT_ERROR) {
record_temperror_offnum2();
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT BATTERY temp error,TURN OFF DISCHG!!!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT BATTERY temp error,TURN OFF DISCHG!!!\n");
if (g_discharge_protect_wd) {
system(TURN_OFF_DISCHG);
@@ -141,12 +141,12 @@
#endif
} else if (temp == TEMP_DETECT_NORMAL) {
if (g_chg_switch_off) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT BATTERY temp normal,TURN_ON_CHG!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT BATTERY temp normal,TURN_ON_CHG!\n");
system(TURN_ON_CHG);
g_chg_switch_off = FALSE;
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_battery_temp_check invalid temp = %d!\n", temp);
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_battery_temp_check invalid temp = %d!\n", temp);
}
}
@@ -165,21 +165,21 @@
fd_charger = fopen(CHARGE_STATUS_PATH, "r");
if (fd_charger == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_get_charge_status open charging file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_get_charge_status open charging file fail!\n");
//MMI_ASSERT(0);
return STATE_CHARGE_MAX;
}
len = fread(chg_state_buf, 1, CHARGE_STATUS_LENGTH, fd_charger);
if (len > 0) { //kw 3
fclose(fd_charger);
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_WDT wdt_get_charge_status chg_state_buf=%s !\n", chg_state_buf);
+ slog(MMI_PRINT, SLOG_DEBUG, "WDT wdt_get_charge_status chg_state_buf=%s !\n", chg_state_buf);
for (i = 0; i < sizeof(g_chgStateStringTab) / sizeof(T_WdtChgStateStringItem); ++ i) {
if (strncmp(chg_state_buf, g_chgStateStringTab[i].devString, strlen(g_chgStateStringTab[i].devString)) == 0) {
return g_chgStateStringTab[i].chg_sta;
}
}
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_get_charge_status read voltage file fail len = %d !\n", len);
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_get_charge_status read voltage file fail len = %d !\n", len);
fclose(fd_charger);
return STATE_CHARGE_MAX;
}
@@ -198,7 +198,7 @@
fd_voltage = fopen(CHARGE_VOLTAGE_PATH, "r");
if (fd_voltage == NULL) {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT open voltage file fail!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT open voltage file fail!\n");
//MMI_ASSERT(0);
return -1;
}
@@ -208,7 +208,7 @@
fclose(fd_voltage);
return voltagepower;
} else {
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT read voltage file fail len = %d !\n", len);
+ slog(MMI_PRINT, SLOG_ERR, "WDT read voltage file fail len = %d !\n", len);
fclose(fd_voltage);
return -1;
}
@@ -223,14 +223,14 @@
E_WDT_Charge_State chg_sta = STATE_CHARGE_MAX;
bat_volt = wdt_voltage_state_read();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_WDT wdt_voltage_state_read bat_volt =%d\n\n", bat_volt);
+ slog(MMI_PRINT, SLOG_DEBUG, "WDT wdt_voltage_state_read bat_volt =%d\n\n", bat_volt);
chg_sta = wdt_get_charge_status();
- slog(MMI_PRINT, SLOG_DEBUG, "ZTE_WDT wdt_get_charge_status chg_sta = %d!!\n", chg_sta);
+ slog(MMI_PRINT, SLOG_DEBUG, "WDT wdt_get_charge_status chg_sta = %d!!\n", chg_sta);
if (bat_volt != -1 && bat_volt < CHARGEONLEVEL && chg_sta == STATE_FULL) {
system(TURN_ON_CHG);
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT wdt_battery_charge_check charge on!\n");
+ slog(MMI_PRINT, SLOG_ERR, "WDT wdt_battery_charge_check charge on!\n");
}
}
@@ -245,7 +245,7 @@
if (g_temp_protect_wd) {
char mode[2] = {0};
sc_cfg_get(BOOT_TESTBATTERY_MODE, mode, 2);
- slog(MMI_PRINT, SLOG_ERR, "ZTE_WDT BOOT_TESTBATTERY_MODE=%s\n", mode);
+ slog(MMI_PRINT, SLOG_ERR, "WDT BOOT_TESTBATTERY_MODE=%s\n", mode);
if (strcmp(mode, "0") != 0) {
wdt_battery_temp_check();
if (g_charge_protect_wd) {
diff --git a/ap/app/zte_cpe/zte_cpe.c b/ap/app/zte_cpe/zte_cpe.c
index 7afa751..f07eb0d 100755
--- a/ap/app/zte_cpe/zte_cpe.c
+++ b/ap/app/zte_cpe/zte_cpe.c
@@ -216,7 +216,7 @@
if (0 == strcmp(argv[2], "amt")) {
ret = sc_cfg_set("ver_mode", "0");
if(ret < 0)
- printf("zte_cpe set vermode fail\n");
+ printf("cpe set vermode fail\n");
else
sc_cfg_save();
printf("---set ver mode to 0\n");
@@ -297,7 +297,7 @@
while(1)
{
sleep(20);
- //printf("zte app test -1 \n");
+ //printf("app test -1 \n");
}
return 0;
diff --git a/ap/app/zte_dm/telecom_dm/telecom_dm.c b/ap/app/zte_dm/telecom_dm/telecom_dm.c
index 839c132..addc612 100644
--- a/ap/app/zte_dm/telecom_dm/telecom_dm.c
+++ b/ap/app/zte_dm/telecom_dm/telecom_dm.c
@@ -142,7 +142,7 @@
g_sock_fd = socket(AF_INET, SOCK_STREAM, 0);
if (g_sock_fd < 0)
{
- log_debug("[zte_dm] create socket failed. fd=%d \n", g_sock_fd);
+ log_debug("[dm] create socket failed. fd=%d \n", g_sock_fd);
return ERR_SOCKET_CREATE_ERROR;
}
@@ -190,7 +190,7 @@
toAddr.sin_family = AF_INET;
toAddr.sin_port = htons(urlInfo->portNum);
bzero(&(toAddr.sin_zero), 8);
- log_debug("[zte_dm] Send IP:%s\n", inet_ntoa(toAddr.sin_addr));
+ log_debug("[dm] Send IP:%s\n", inet_ntoa(toAddr.sin_addr));
connectNum = 3;
CONNECT_SOCKET:
@@ -200,16 +200,16 @@
{
close(socketId);
socketId = -1;
- log_debug("[zte_dm]http socket connect connectNum(%d), errno = %d\n", connectNum, errno);
+ log_debug("[dm]http socket connect connectNum(%d), errno = %d\n", connectNum, errno);
sleep(1);
if (-1 == (socketId = http_socket_create()))
{
- log_debug("[zte_dm]create socket fail. err= %d!\n", ERR_SOCKET_CREATE_ERROR);
+ log_debug("[dm]create socket fail. err= %d!\n", ERR_SOCKET_CREATE_ERROR);
return ERR_SOCKET_CREATE_ERROR;
}
goto CONNECT_SOCKET;
}
- log_debug("[zte_dm] sendSocket connect Fail.err =%d!\n", ERR_SOCKET_CONNECT_ERROR);
+ log_debug("[dm] sendSocket connect Fail.err =%d!\n", ERR_SOCKET_CONNECT_ERROR);
return ERR_SOCKET_CONNECT_ERROR;
}
@@ -243,13 +243,13 @@
//assert(sendPacketData);
telecom_encode_http_head(sendPacketData, sendSrcData);
- log_debug("[zte_dm] need send message =%s \n", sendPacketData);
+ log_debug("[dm] need send message =%s \n", sendPacketData);
retValue = send(socketId, sendPacketData, strlen(sendPacketData), 0);
if (retValue <= 0)
{
}
- log_debug("[zte_dm] need send len = %d, send success len = %d chars \n", strlen(sendPacketData), retValue);
+ log_debug("[dm] need send len = %d, send success len = %d chars \n", strlen(sendPacketData), retValue);
free(sendPacketData);
return ERR_SUCCESS;
}
@@ -274,10 +274,10 @@
retValue = select(socketId + 1, &readfds, NULL, NULL, &tv);
if (retValue <= 0)
{
- log_debug("[zte_dm] ...select data fail:%d,errno:%d... \n", retValue, errno);
+ log_debug("[dm] ...select data fail:%d,errno:%d... \n", retValue, errno);
return ERR_RECV_ERROR;
}
- log_debug("[zte_dm] select retValue = %d\n", retValue);
+ log_debug("[dm] select retValue = %d\n", retValue);
return ERR_SUCCESS;
}
@@ -292,15 +292,15 @@
{
int retValue;
DM_TELECOM_HTTP_DATA_INFO *data_info = packetbuf;
- log_debug("[zte_dm] http_socket_recv , data_info->dataLen = %d\n", data_info->dataLen);
+ log_debug("[dm] http_socket_recv , data_info->dataLen = %d\n", data_info->dataLen);
retValue = recv(socketId, data_info->dataBuffer, data_info->dataLen - 1, 0);
if (retValue <= 0)
{
- log_debug("[zte_dm] ...recv data fail:%d,errno:%d... \n", retValue, errno);
+ log_debug("[dm] ...recv data fail:%d,errno:%d... \n", retValue, errno);
return ERR_RECV_ERROR;
}
data_info->dataBuffer[data_info->dataLen - 1] = '\0';
- log_debug("[zte_dm] http_socket_recv , bufsize = %d, buf = %s\n", retValue, data_info->dataBuffer);
+ log_debug("[dm] http_socket_recv , bufsize = %d, buf = %s\n", retValue, data_info->dataBuffer);
data_info->totalSize = retValue;
return telecom_parse_response(data_info->dataBuffer);
}
@@ -436,7 +436,7 @@
//memcpy(state, p1, len);
strncpy(state, p1, sizeof(state) - 1); //klockworks issue.
- log_debug("[zte_dm] telecom_parse_response_state....state = %s \n", state);
+ log_debug("[dm] telecom_parse_response_state....state = %s \n", state);
return atoi(state);
}
@@ -501,7 +501,7 @@
p1 = strchr(srcStr, '{');
if (p1 == NULL)
{
- log_debug("[zte_dm] telecom_get_response_content....not Content-Length and no { ,fail, return \n");
+ log_debug("[dm] telecom_get_response_content....not Content-Length and no { ,fail, return \n");
return -1;
}
@@ -519,7 +519,7 @@
else
{
memcpy(content, p1, datalen);
- log_debug("[zte_dm] content too long ,error\n");
+ log_debug("[dm] content too long ,error\n");
}
}
return ERR_SUCCESS;
@@ -545,17 +545,17 @@
state = telecom_parse_response_state(srcStr);
if (state != 200)
{
- log_debug("[zte_dm] telecom_parse_response..state = %d, fail\n", state);
+ log_debug("[dm] telecom_parse_response..state = %d, fail\n", state);
return ERR_RECV_ERROR;
}
state = telecom_get_response_content(srcStr, data, RESPONSE_JSONDATA_LEN);
if (state != ERR_SUCCESS)
{
- log_debug("[zte_dm] telecom_parse_response. fail\n");
+ log_debug("[dm] telecom_parse_response. fail\n");
return ERR_RECV_ERROR;
}
- log_debug("[zte_dm] telecom_parse_response..data = %s \n", data);
+ log_debug("[dm] telecom_parse_response..data = %s \n", data);
return telecom_parse_response_content(data);
}
@@ -580,9 +580,9 @@
}
sc_cfg_get("hostName", hostname, sizeof(hostname));
- log_debug("[zte_dm] telecom_encode_http_head senddata = %s \n", sendSrcData->dataBuffer);
+ log_debug("[dm] telecom_encode_http_head senddata = %s \n", sendSrcData->dataBuffer);
telecom_base64_encode(sendSrcData->dataBuffer, strlen(sendSrcData->dataBuffer), data, BASE64_LEN - 1);
- log_debug("[zte_dm] telecom_encode_http_head base64 senddata = %s \n", data);
+ log_debug("[dm] telecom_encode_http_head base64 senddata = %s \n", data);
len = strlen(data);
snprintf(buf, sizeof(buf)-1, "%d", len); //klockworks issue.
@@ -605,7 +605,7 @@
strcat(httpPacketData, data);
strcat(httpPacketData, "\r\n");
- log_debug("[zte_dm] http_head: %s \n", httpPacketData);
+ log_debug("[dm] http_head: %s \n", httpPacketData);
return ERR_SUCCESS;
}
@@ -622,7 +622,7 @@
int retValue = -1;
int sockt_id = -1;
- log_debug("[zte_dm]telecom_request_handle come in!\n");
+ log_debug("[dm]telecom_request_handle come in!\n");
g_socke_flag = ERR_SUCCESS;
@@ -663,7 +663,7 @@
http_socket_close(sockt_id);
g_socke_flag = retValue;
- log_debug("[zte_dm]telecom_request_handle come out! retValue =%d!\n", retValue);
+ log_debug("[dm]telecom_request_handle come out! retValue =%d!\n", retValue);
return retValue;
}
diff --git a/ap/app/zte_dm/zxic_dm.c b/ap/app/zte_dm/zxic_dm.c
index 7386557..4f1fd2a 100644
--- a/ap/app/zte_dm/zxic_dm.c
+++ b/ap/app/zte_dm/zxic_dm.c
@@ -2526,7 +2526,7 @@
/*¼ì²âÊÇ·ñΪµçÐÅ¿¨*/
if (FALSE == dm_check_is_chinatelecom())
{
- log_debug("[dm_telecom] zte_selfreg_check, not telecom sim or network, return!!\n");
+ log_debug("[dm_telecom] selfreg_check, not telecom sim or network, return!!\n");
return FALSE;
}
@@ -2535,26 +2535,26 @@
/*µçÐÅDM ²åÈë·ÇµçÐÅ¿¨ ²»×¢²á */
if (3 != dmControlInfo->cardType)
{
- log_debug("[dm_telecom] zte_selfreg_check, no-telecom-card cardType(%s) \n", cardType);
+ log_debug("[dm_telecom] selfreg_check, no-telecom-card cardType(%s) \n", cardType);
return FALSE;
}
/*ÒѾ³É¹¦×¢²á*/
if (TRUE == dm_telecom_check_iccid_registed())
{
- log_debug("[dm_telecom] zte_selfreg_check, selfreg success, return!!\n");
+ log_debug("[dm_telecom] selfreg_check, selfreg success, return!!\n");
return FALSE;
}
/*ÖØÊÔ´ÎÊý´óÓÚ10*/
if (dmControlInfo->currentTimes >= DM_TELECOM_RETRY_TIMES)
{
- log_debug("[dm_telecom] zte_selfreg_check, selfreg retry over, return!!\n");
+ log_debug("[dm_telecom] selfreg_check, selfreg retry over, return!!\n");
return FALSE;
}
sc_cfg_get(NV_SIM_IMSI, sim_imsi, sizeof(sim_imsi) - 1);
if (0 == strcmp(sim_imsi, ""))
{
- log_debug("[dm_telecom] zte_selfreg_check, sim_imsi is null, return!!\n");
+ log_debug("[dm_telecom] selfreg_check, sim_imsi is null, return!!\n");
return FALSE;
}
diff --git a/ap/app/zte_log_agent/log_agent.h b/ap/app/zte_log_agent/log_agent.h
index bed4dfa..b118802 100755
--- a/ap/app/zte_log_agent/log_agent.h
+++ b/ap/app/zte_log_agent/log_agent.h
@@ -221,7 +221,7 @@
ZCAT_MODE_CP_NET,
ZCAT_MODE_CP_FS,
#ifdef USE_CAP_SUPPORT
- ZCAT_MODE_CAP_EMMC
+ ZCAT_MODE_CAP_FS
#endif
} E_ZCAT_MODE;
diff --git a/ap/app/zte_log_agent/log_agent_main.c b/ap/app/zte_log_agent/log_agent_main.c
index 03b0d40..6869bd1 100755
--- a/ap/app/zte_log_agent/log_agent_main.c
+++ b/ap/app/zte_log_agent/log_agent_main.c
@@ -92,7 +92,7 @@
* @note
* @see
*/
-void init_log_type(int argc, char *argv[])
+int init_log_type(int argc, char *argv[])
{
char zcat_mode[16] = { 0 };
@@ -110,7 +110,7 @@
{
if (log_argv_proc(argc, argv) < 0)
return -1;
-
+
g_log_dir = ZCAT_MODE_AP_FS;
}
else if (strcmp(zcat_mode, "CPFS") == 0)
@@ -130,15 +130,16 @@
g_log_dir = ZCAT_MODE_AP_USB;
}
#ifdef USE_CAP_SUPPORT
- else if (strcmp(zcat_mode, "CAPEMMC") == 0)
+ else if (strcmp(zcat_mode, "CAPFS") == 0)
{
- g_log_dir = ZCAT_MODE_CAP_EMMC;
+ g_log_dir = ZCAT_MODE_CAP_FS;
}
#endif
else
{
g_log_dir = ZCAT_MODE_CP_USB;
}
+ return 0;
}
/**
@@ -166,7 +167,9 @@
if(ioctl(cplog_fd, ZCAT_IPC_ALLOC_CAP_SMLOGBUF, g_log_dir)!= 0)
{
printf("[zcat]ioctl:ZCAT_IPC_SET_PERIPHERAL_MODE fail!\n");
+ return -1;
}
+ return 0;
}
#endif
@@ -177,18 +180,19 @@
* -<em>-1</em> fail
* -<em>0</em> succeed
*/
- volatile int gttest = 1;
-
int main(int argc, char *argv[])
{
char zcat_usblog[8] = { 0 };
int ret = 0;
/* 1.»ñÈ¡nvÖµ*/
- init_log_type(argc, argv);
+ ret = init_log_type(argc, argv);
+
+ if (ret < 0)
+ return -1;
printf("[zcat] zcat_mode = 0x%x\n", g_log_dir);
-
+
if (ZCAT_MODE_AP_USB == g_log_dir || ZCAT_MODE_CP_USB == g_log_dir)
{
sc_cfg_get("zcat_usblog", zcat_usblog, sizeof(zcat_usblog) - 1);
@@ -240,7 +244,7 @@
goto __exit;
}
}
-
+
printf("[zcat] init logdev success.\n");
// 4.³õʼ»¯Êý¾ÝÊä³öÍâÉè
@@ -275,7 +279,7 @@
break;
}
#ifdef USE_CAP_SUPPORT
- case ZCAT_MODE_CAP_EMMC:
+ case ZCAT_MODE_CAP_FS:
{
init_cap_mode();
break;
@@ -285,9 +289,9 @@
goto __exit;
}
}
-
+
g_log_state = ZCAT_STATE_RUNNING;
-
+
// 5.³õʼ»¯Á÷³ÌÍê³É£¬Óëcpͬ²½
printf("[zcat] init peripheral success.\n");
@@ -329,7 +333,7 @@
if(kernellog_fd >= 0) close(kernellog_fd);
if(cplog_fd >= 0) close(cplog_fd);
- printf("[zcat] zte_log_agent exit.\n");
+ printf("[zcat] log_agent exit.\n");
return 0;
}
diff --git a/ap/app/zte_log_agent/log_agent_sdcard.c b/ap/app/zte_log_agent/log_agent_sdcard.c
index 3b864a1..deb1bbe 100755
--- a/ap/app/zte_log_agent/log_agent_sdcard.c
+++ b/ap/app/zte_log_agent/log_agent_sdcard.c
@@ -40,12 +40,6 @@
/**
* ºê¶¨Òå
*/
-#if 0
-#define DEFAULT_LOG_ROOT "/sdcard"
-#define DEFAULT_LOG_ROOT_PARENT "/ZTELog"
-#define CONFIG_STORAGE_FILE_PATH "/data/misc/rild/log_storage.cfg"
-#endif
-
#define USB_DEV_SDCARD_PATH "/dev/mmcblk0p1"
#define USB_DEV_SDCARD_PATH_BACK "/dev/mmcblk0"
@@ -56,15 +50,13 @@
/*APFS ģʽ:±£´æµ½EMMC¿¨£¬¹ÒÔØÂ·¾¶ºÍ¹æÔò·¾¶ÓÉÓû§ÅäÖÃ*/
#define ZCAT_FS_CFG_LOG_PATH "/zcat"
-/*APFS ģʽ:±£´æµ½Îļþϵͳ*/
-#define ZCAT_FS_PATH "/var/zcat"
-
-/*APFS ģʽ:¹æÔòÎļþĬÈÏ·¾¶*/
-#define ZCAT_FS_DEF_RULE_PATH "/tmp/log.rule"
-
-#define ZCAT_MAX_LOG_NUM (10)
-#define ZCAT_MAX_CFG_TOTAL_SIZE (0x100000)
-#define ZCAT_ONE_MB_SIZE (1024*1024)
+#define MAX_STRING_LENGTH (256)
+#define MAX_NVCFG_LOG_SIZE (1000)
+#define MAX_NUMSIZE_STRING_LEN (16)
+#define ZCAT_RULE_DIR_MAXLEN (0x100)
+#define ZCAT_MAX_LOG_NUM (10)
+#define ZCAT_MAX_CFG_TOTAL_SIZE (0x100000)
+#define ZCAT_ONE_MB_SIZE (1024*1024)
#define SINGLE_LOG_SIZE_TFCARD (500*1024*1024)
#define SINGLE_LOG_SIZE_APFS (100*1024*1024)
@@ -144,12 +136,33 @@
*/
static void init_cfg_param(int zcat_mode)
{
- int max_logNum = 0;
- int total_size = 0;
+ int nvint_size = 0;
+ int max_logNum = 0;
+ UINT64 total_size = 0;
+ char nvstr_num[MAX_NUMSIZE_STRING_LEN] = {0};
+ char nvstr_size[MAX_NUMSIZE_STRING_LEN] = {0};
+ if(g_log_sdcard_para.max_file_num == 0)
+ {
+ sc_cfg_get("zlog_num", nvstr_num, MAX_NUMSIZE_STRING_LEN - 1);
+ g_log_sdcard_para.max_file_num = (int)strtol(nvstr_num, NULL, 0);
+ }
+
+ if(g_log_sdcard_para.max_total_size == 0)
+ {
+ sc_cfg_get("zlog_size", nvstr_size, MAX_NUMSIZE_STRING_LEN - 1);
+ nvint_size = (int)strtol(nvstr_size, NULL, 0);
+ if((nvint_size > 0) && (nvint_size < MAX_NVCFG_LOG_SIZE))
+ {
+ g_log_sdcard_para.max_total_size = (UINT64)((nvint_size) * ZCAT_ONE_MB_SIZE);
+ }
+ }
+
max_logNum = g_log_sdcard_para.max_file_num;
total_size = g_log_sdcard_para.max_total_size;
-
+ printf("[zcat] max_logNum %d\n", max_logNum);
+ printf("[zcat] max_total_size %lld\n", g_log_sdcard_para.max_total_size);
+
if (total_size && max_logNum)
{
g_log_sdcard_para.max_file_size = total_size / max_logNum;
@@ -392,7 +405,7 @@
}
if (fnum_flag^tsize_flag)
{
- printf("param error: \"zte_log_agent -t 100 -n 10\" or \"zte_log_agent\" !");
+ printf("param error: \"log_agent -t 100 -n 10\" or \"log_agent\" !");
return -1;
}
else
@@ -411,40 +424,45 @@
int init_fs_log_dir()
{
char *log_path = NULL;
- char *rule_path = NULL;
+ char *rule_file = NULL;
+ int logdir_size = 0;
+ int ruledir_size = 0;
+
+ log_path = g_log_sdcard_para.log_dir;
+ rule_file = g_log_sdcard_para.rule_path;
+ logdir_size = sizeof(g_log_sdcard_para.log_dir);
+ ruledir_size = sizeof(g_log_sdcard_para.rule_path);
init_cfg_param(ZCAT_MODE_AP_FS);
-
- log_path = g_log_sdcard_para.log_dir;
- rule_path = g_log_sdcard_para.rule_path;
-
- memset(log_path, 0, sizeof(g_log_sdcard_para.log_dir));
- memset(rule_path, 0, sizeof(g_log_sdcard_para.rule_path));
+
+ memset(log_path, 0, logdir_size);
+ memset(rule_file, 0, ruledir_size);
if (logfs_emmc_path)
{
//ÅжÏ·¾¶ÊÇ·ñ¿ÉÓÃ
if (access(logfs_emmc_path, R_OK|W_OK) < 0)
{
- printf("[zcat] APFS log: Emmc path error, errno=%d\n", errno);
- }
- snprintf(log_path, MAX_STRING_LENGTH - 1 , "%s%s", logfs_emmc_path, ZCAT_FS_CFG_LOG_PATH);
-
- if (logfs_rule_path)
- {
- strncpy(rule_path, logfs_rule_path, MAX_STRING_LENGTH - 1);
- }
+ sc_cfg_get("zlog_path", log_path, logdir_size);
+ printf("[zcat] APFS log: path error, errno=%d, so now read from nv!\n", errno);
+ }
else
{
- strncpy(rule_path, ZCAT_FS_DEF_RULE_PATH, MAX_STRING_LENGTH - 1);
+ snprintf(log_path, MAX_STRING_LENGTH - 1 , "%s%s", logfs_emmc_path, ZCAT_FS_CFG_LOG_PATH);
}
}
else
- {
- strncpy(log_path, ZCAT_FS_PATH, MAX_STRING_LENGTH - 1);
- strncpy(rule_path, ZCAT_FS_DEF_RULE_PATH, MAX_STRING_LENGTH - 1);
+ {
+ sc_cfg_get("zlog_path", log_path, logdir_size);
}
-
+
+ if (logfs_rule_path)
+ strncpy(rule_file, logfs_rule_path, ruledir_size - 1);
+ else
+ sc_cfg_get("rule_file", rule_file, ruledir_size - 1);
+
+ printf("[zcat] log_path: %s, rule_file %s\n", log_path, rule_file);
+
if(test_dir_exist(log_path) < 0)//´´½¨ÈÕÖ¾Îļþ¼Ð
{
printf("[zcat] test %s dir exist failed. \n", g_log_sdcard_para.log_dir);
diff --git a/ap/app/zte_lpa/zte_lpa.c b/ap/app/zte_lpa/zte_lpa.c
index b80f265..7a69adf 100755
--- a/ap/app/zte_lpa/zte_lpa.c
+++ b/ap/app/zte_lpa/zte_lpa.c
@@ -11,7 +11,7 @@
int poll_num = 1;
int poll_interval = 0;
- printf("##zte_lpa start##\n");
+ printf("##lpa start##\n");
if (-1 == lpa_init()) {
printf("lpa init fail!\n");
@@ -59,7 +59,7 @@
} while (poll_num > 0);
lpa_uninit();
- printf("##zte_lpa end##\n");
+ printf("##lpa end##\n");
return 0;
}
diff --git a/ap/app/zte_mdl/Makefile b/ap/app/zte_mdl/Makefile
index 1d30806..9d99db3 100755
--- a/ap/app/zte_mdl/Makefile
+++ b/ap/app/zte_mdl/Makefile
@@ -90,6 +90,10 @@
LDLIBS += -lsoft_timer_sc -L$(zte_lib_path)/libsoft_timer
LDLIBS += -latutils -L$(zte_lib_path)/libatutils
LDLIBS += -lsqlite -L$(zte_lib_path)/libsqlite
+ifeq ($(USE_VOICE_AT),yes)
+LDLIBS += -ltinyalsa -L$(zte_lib_path)/libtinyalsa
+LDLIBS += -lvoice -L$(zte_lib_path)/libvoice
+endif
LDLIBS += -latext -L$(zte_lib_path)/libatext
LDLIBS += -lm
#LDLIBS += -ltinyalsa -L$(zte_lib_path)/libtinyalsa
diff --git a/ap/app/zte_mdl/zte_mdl.c b/ap/app/zte_mdl/zte_mdl.c
index cc43ce2..2beb93f 100755
--- a/ap/app/zte_mdl/zte_mdl.c
+++ b/ap/app/zte_mdl/zte_mdl.c
@@ -137,7 +137,7 @@
while(1)
{
sleep(20);
- //printf("zte app test -1 \n");
+ //printf("app test -1 \n");
}
return 0;
diff --git a/ap/app/zte_mifi/zte_mifi.c b/ap/app/zte_mifi/zte_mifi.c
index 537ccdf..5297b18 100755
--- a/ap/app/zte_mifi/zte_mifi.c
+++ b/ap/app/zte_mifi/zte_mifi.c
@@ -180,7 +180,7 @@
if (0 == strcmp(argv[2], "amt")) {
ret = sc_cfg_set("ver_mode", "0");
if(ret < 0)
- printf("zte_mifi set vermode fail\n");
+ printf("mifi set vermode fail\n");
else
sc_cfg_save();
printf("---set ver mode to 0\n");
@@ -268,7 +268,7 @@
while(1)
{
sleep(20);
- //printf("zte app test -1 \n");
+ //printf("app test -1 \n");
}
return 0;
diff --git a/ap/app/zte_ufi/zte_ufi.c b/ap/app/zte_ufi/zte_ufi.c
index 914efd6..f5f765f 100755
--- a/ap/app/zte_ufi/zte_ufi.c
+++ b/ap/app/zte_ufi/zte_ufi.c
@@ -96,7 +96,7 @@
void zte_mmi_entry(char *arg)
{
- //printf("zte_mmi_entry boot:%s\n", arg);
+ //printf("mmi_entry boot:%s\n", arg);
/* if (0 == strcmp(arg, "2")) {
char *argv[2];
argv[0] = NULL;
@@ -181,7 +181,7 @@
if (0 == strcmp(argv[2], "amt")) {
ret = sc_cfg_set("ver_mode", "0");
if(ret < 0)
- printf("zte_ufi set vermode fail\n");
+ printf("ufi set vermode fail\n");
else
sc_cfg_save();
printf("---set ver mode to 0\n");
@@ -270,7 +270,7 @@
while(1)
{
sleep(20);
- //printf("zte app test -1 \n");
+ //printf("app test -1 \n");
}
return 0;