T108 sim Voie data network sms 支持双卡 ql 接口第一版
Change-Id: If5a9fb81971258bb5a3d811f3e4562b2df351853
diff --git a/mbtk/test/libql_lib_v2/ql_nw_test.c b/mbtk/test/libql_lib_v2/ql_nw_test.c
index 409a966..15b4bc0 100755
--- a/mbtk/test/libql_lib_v2/ql_nw_test.c
+++ b/mbtk/test/libql_lib_v2/ql_nw_test.c
@@ -1400,6 +1400,8 @@
return;
}
+
+
#if 0
void item_ql_nw_wea_set_config(void)
{
@@ -1606,6 +1608,59 @@
printf("Sucessful\n");
}
}
+void item_ql_set_nw_slot(void)
+{
+ int choice = -1;
+ int ret = -1;
+ printf("1:sim card 1, 2:sim card 2\n");
+ while (1)
+ {
+ if (scanf("%d", &choice) == 1)
+ {
+ if (choice == 1 || choice == 2)
+ {
+ break;
+ }
+ else
+ {
+ printf("invlid input \n");
+ }
+ }
+ else
+ {
+ int c;
+ while ((c = getchar()) != '\n' && c != EOF);
+ printf("invalid input \n");
+ }
+
+ }
+
+ if (choice == 1)
+ {
+ ret = ql_set_sms_slot(QL_SIM_SLOT_1);
+ if(ret != QL_ERR_OK)
+ {
+ printf("ql_set_sms_slot failed %d\n",ret);
+ }
+ else
+ {
+ printf("ql_set_sms_slot success\n");
+ }
+ }
+ else if (choice == 2)
+ {
+ ret = ql_set_sms_slot(QL_SIM_SLOT_2);
+ if(ret != QL_ERR_OK)
+ {
+ printf("ql_set_sms_slot failed %d\n",ret);
+ }
+ else
+ {
+ printf("ql_set_sms_slot success\n");
+ }
+ }
+
+}
static t_item_t ql_nw_items[] =
@@ -1635,6 +1690,7 @@
// {"ql_nw_etws_set_config", item_ql_nw_etws_set_config},
// {"ql_nw_etws_get_config", item_ql_nw_etws_get_config},
{"ql_nw_set_service_error_cb", item_ql_nw_set_service_error_cb},
+ {"ql_set_nw_slot", item_ql_set_nw_slot},
{"ql_nw_deinit", item_ql_nw_deinit},
};