Add mbtk ecall v1 API.
Change-Id: Icfdb8ccf399a4e052484f6419e44755780c04725
diff --git a/mbtk/mbtk_rild_v2/src/atchannel.c b/mbtk/mbtk_rild_v2/src/atchannel.c
index 316e62a..56b1d08 100755
--- a/mbtk/mbtk_rild_v2/src/atchannel.c
+++ b/mbtk/mbtk_rild_v2/src/atchannel.c
@@ -621,6 +621,14 @@
}
}
+typedef struct
+{
+ int cid;
+ bool act;
+ bool waitting;
+} info_cgact_wait_t;
+extern info_cgact_wait_t cgact_wait;
+
static void *readerLoop(void *arg)
{
UNUSED(arg);
@@ -638,6 +646,10 @@
if(strStartsWith(line, "MBTK_AT_READY")) {
//handleUnsolicited(line);
continue;
+ } else if(strStartsWith(line, "CONNECT")) {
+ if(cgact_wait.waitting && cgact_wait.act) {
+ cgact_wait.waitting = false;
+ }
}
if(isSMSUnsolicited(line))
@@ -835,7 +847,7 @@
pthread_attr_init (&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
- ret = pthread_create(&s_tid_reader, &attr, readerLoop, NULL);
+ ret = pthread_create(&s_tid_reader, &attr, readerLoop, &attr);
if (ret < 0)
{
LOGE("AT thread create fail.");
@@ -843,7 +855,7 @@
}
pthread_t uart_tid_reader;
- ret = pthread_create(&uart_tid_reader, &attr, readerUrcLoop, NULL);
+ ret = pthread_create(&uart_tid_reader, &attr, readerUrcLoop, &attr);
if (ret < 0)
{
LOGE("Uart thread create fail.");