data_call: 适配赛格客户需求
Change-Id: I1c8d2c7066f9e890b5e87944f0ce4c070cda7a6e
diff --git a/mbtk/liblynq_lib/src/lynq_data_call.c b/mbtk/liblynq_lib/src/lynq_data_call.c
index e8dc0af..48a94d0 100644
--- a/mbtk/liblynq_lib/src/lynq_data_call.c
+++ b/mbtk/liblynq_lib/src/lynq_data_call.c
@@ -21,7 +21,7 @@
//AT+CGACT range: 1 - 8
//1 default IDX, 8 IMS IDX
#if defined(MBTK_ALL_CID_SUPPORT)
-#if defined(MBTK_ALL_APN_SUPPORT)
+#if defined(MBTK_SG_SUPPORT)
#define QSER_PROFILE_IDX_MIN 0
#else
#define QSER_PROFILE_IDX_MIN 1
@@ -550,7 +550,7 @@
if(qser_apn_add_save_state[apns[i].cid - 1] == '0')
{
//LOGE("idx no open.");
-#if defined(MBTK_ALL_CID_SUPPORT)
+#if defined(MBTK_ALL_CID_SUPPORT) && !defined(MBTK_SG_SUPPORT)
if(apns[i].cid - 1 == 0)
{
qser_apn_info_param_convert(apns[i].cid - 1, &qser_apn_info[apns[i].cid - 1], &apns[i]);
@@ -654,7 +654,7 @@
if(qser_check_profile_idx(data_call->profile_idx) < 0)
{
-#if defined(MBTK_ALL_CID_SUPPORT)
+#if defined(MBTK_ALL_CID_SUPPORT) && !defined(MBTK_SG_SUPPORT)
if( data_call->profile_idx == 0 )
{
LOGE("profile_idx = 0.");
@@ -742,7 +742,7 @@
if(qser_check_profile_idx(data_call->profile_idx) < 0)
{
-#if defined(MBTK_ALL_CID_SUPPORT)
+#if defined(MBTK_ALL_CID_SUPPORT) && !defined(MBTK_SG_SUPPORT)
if((data_call->profile_idx == 0) && (qser_default_pdp_idx < 0))
{
LOGE("profile_idx = 0 and not open default idx.");
@@ -799,7 +799,7 @@
if(qser_check_profile_idx(profile_idx) < 0)
{
-#if defined(MBTK_ALL_CID_SUPPORT)
+#if defined(MBTK_ALL_CID_SUPPORT) && !defined(MBTK_SG_SUPPORT)
if(profile_idx == 0)
{
LOGE("profile_idx = 0.");
@@ -871,7 +871,7 @@
if(qser_check_profile_idx(profile_idx) < 0)
{
-#if defined(MBTK_ALL_CID_SUPPORT)
+#if defined(MBTK_ALL_CID_SUPPORT) && !defined(MBTK_SG_SUPPORT)
if(profile_idx == 0)
{
LOGE("profile_idx = 0.");
@@ -1144,7 +1144,7 @@
if(qser_check_profile_idx(profile_idx) < 0)
{
-#if defined(MBTK_ALL_CID_SUPPORT)
+#if defined(MBTK_ALL_CID_SUPPORT) && !defined(MBTK_SG_SUPPORT)
if(profile_idx != 0)
#endif
{
@@ -1333,7 +1333,7 @@
{
if(qser_apn_add_save_state[apns[i].cid - 1] == '0')
{
-#if defined(MBTK_ALL_CID_SUPPORT)
+#if defined(MBTK_ALL_CID_SUPPORT) && !defined(MBTK_SG_SUPPORT)
if((apns[i].cid - 1) != 0)
#endif
{