[Bugfix][T106BUG-279]after add DRDI, send at no response
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I957b4389b134849e723133cb4c012abcb170f688
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 d0afa68..0ca983b 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
@@ -1337,12 +1337,21 @@
}
if(ret < 0)
{/*дʧ°Ü·ÀֹͨµÀ¶ÂÈû*/
+//xf.li@20230930 modify for DRDI start
+#ifdef USE_CAP_SUPPORT
+ struct at_context * context = NULL;
+ if((context = at_context_find_ctx_by_fd_type(fd, AT_FWD_DOWN)) != 0){
+ char* err_str = at_err_build(ATERR_PROC_FAILED);
+ at_context_write_data(context->fwd_context->at_channel->at_fd, err_str,strlen(err_str));
+ free(err_str);
+ }
+#endif
rcv_at_rsp_handle(fd,"ERROR","",0,"",0);
- at_print(AT_ERR,"fwd_all_at_str write fail\n");
+ at_print(AT_ERR,"fwd_all_at_str write fail \n");
}
}
}
-
+//xf.li@20230930 modify for DRDI end
/*¶Ô½ÓÊÕµ½µÄATÃüÁî×Ö·û´®½øÐе¥¸ö×Ö·û´®´¦Àí ´¦Àí´Ó"at_recv_thread"Ï̴߳«À´µÄATͨµÀÏûÏ¢¡£¸ù¾Ý½ÓÊÕµ½µÄatÃüÁî×Ö·û´®£¬
×é×°ºÍÖØ×é³ÉÍêÕûµÄatÃüÁ²¢´¦Àí¡£*/
int rcv_at_str_proc(int at_fd, char *at_str, int at_len)