[Bugfix][T106BUG-178][AUTOSUSPEND]it will be awakened by sms after setting up the whiltelist
Only Configure: No
Affected branch: master
Affected module: autosuspend
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: Yes
Change-Id: I9c44721656113d72badf4c715f959bb3f3178b9f
diff --git a/ap/app/zte_comm/at_ctl/src/atconfig/ps_sms.c b/ap/app/zte_comm/at_ctl/src/atconfig/ps_sms.c
index 55bd76b..f71c254 100755
--- a/ap/app/zte_comm/at_ctl/src/atconfig/ps_sms.c
+++ b/ap/app/zte_comm/at_ctl/src/atconfig/ps_sms.c
@@ -700,14 +700,19 @@
}
#endif
-/*Öն˲àÖ§³Ö¶ÌÐÅʱ²ÅÐèÒª½âÎö£¬Öն˲àÖ»Ö§³Öpdu¸ñʽ¶ÌÐÅ*/
+
+extern int g_modem_model;//jb.qi add for it will be awakened by sms after setting up the whiltelist on 20231218
+extern int g_support_sms;//jb.qi add for it will be awakened by sms after setting up the whiltelist on 20231218
int atSms_RecvPdu( char *at_str, struct at_context *context)
{
- char needModemInit[10] = {0};
+ /*jb.qi add for it will be awakened by sms after setting up the whiltelist on 20231218 start*/
+ /*char needModemInit[10] = {0};
char needSmsInit[10] = {0};
sc_cfg_get(NV_NEED_SUPPORT_SMS,needSmsInit,sizeof(needSmsInit));
sc_cfg_get("need_init_modem",needModemInit,sizeof(needModemInit));
- if(0 == strcmp(needModemInit, "yes") && 0 != strcmp(needSmsInit, "no"))
+ if(0 == strcmp(needModemInit, "yes") && 0 != strcmp(needSmsInit, "no"))*/
+ if((g_modem_model == 1) && (g_support_sms == 1))
+ /*jb.qi add for it will be awakened by sms after setting up the whiltelist on 20231218 end*/
{
//at_print(AT_DEBUG,"atSms_RecvPdu atstr:%s, bNewCmt:%d, bNewCds:%d!\n", at_str, bNewCmt, bNewCds);
if(context != NULL)