[Feature][T108-yd][task-view-1906][Nw] add ql_nw_get_cell_info interface
Only Configure:No
Affected branchmaster
Affected module:Nw
Is it affected on:asr
Doc Update:No
Change-Id: I77b4fb99aba85cc8f0af5db14b2a8a23f139acd7
diff --git a/mbtk/mbtk_rild_v2/src/main.c b/mbtk/mbtk_rild_v2/src/main.c
index 0447e25..0881b70 100755
--- a/mbtk/mbtk_rild_v2/src/main.c
+++ b/mbtk/mbtk_rild_v2/src/main.c
@@ -1482,11 +1482,10 @@
goto EEMLTESVC_EXIT;
}
cell_info.cell_list.cell[cell_info.cell_list.num].value3 = (uint32)tmp_int; //dl arfcn
- if (at_tok_nextint(&line, &tmp_int) < 0)
+ if (at_tok_nextint(&line, &tmp_int) < 0) //ul arfcn
{
goto EEMLTESVC_EXIT;
}
- cell_info.cell_list.cell[cell_info.cell_list.num].value4 = (uint32)tmp_int; //ul arfcn
if (at_tok_nextint(&line, &tmp_int) < 0)
{
goto EEMLTESVC_EXIT;
@@ -1500,14 +1499,21 @@
{
goto EEMLTESVC_EXIT;
}
- cell_info.cell_list.cell[cell_info.cell_list.num].value8 = (uint32)tmp_int; //cid
+ cell_info.cell_list.cell[cell_info.cell_list.num].value8 = (uint32)tmp_int; //rsrp
if (at_tok_nextint(&line, &tmp_int) < 0)
{
goto EEMLTESVC_EXIT;
}
- cell_info.cell_list.cell[cell_info.cell_list.num].value9 = (uint32)tmp_int; //rsrp
+ cell_info.cell_list.cell[cell_info.cell_list.num].value9 = (uint32)tmp_int; //rsrq
- for(i =0; i < 10; i++)
+ if (at_tok_nextint(&line, &tmp_int) < 0)
+ {
+ goto EEMLTESVC_EXIT;
+ }
+
+ cell_info.cell_list.cell[cell_info.cell_list.num].value11 = (uint32)tmp_int; //sinr
+
+ for(i =0; i < 9; i++)
{
if (at_tok_nextint(&line, &tmp_int) < 0)
{
@@ -1516,6 +1522,7 @@
}
cell_info.cell_list.cell[cell_info.cell_list.num].value10 = (uint32)tmp_int; //cell identiy
+
cell_info.cell_list.num++;
EEMLTESVC_EXIT:
@@ -1860,18 +1867,6 @@
goto EEMGINFOSVC_EXIT;
}
cell_info.cell_list.cell[cell_info.cell_list.num].value6 = (uint32)tmp_int;
-
- /*
- // Jump 3 integer.
- i = 0;
- while(i < 3) {
- if (at_tok_nextint(&line, &tmp_int) < 0)
- {
- goto EEMGINFOSVC_EXIT;
- }
- i++;
- }
- */
// lac
if (at_tok_nextint(&line, &tmp_int) < 0 || tmp_int < 0 || tmp_int >= 65536)
{
@@ -1888,7 +1883,7 @@
// Jump 2 integer.
i = 0;
- while(i < 2) {
+ while(i < 3) {
if (at_tok_nextint(&line, &tmp_int) < 0)
{
goto EEMGINFOSVC_EXIT;
@@ -1897,15 +1892,27 @@
}
// bsic
- if (at_tok_nextint(&line, &tmp_int) < 0 || tmp_int < 0 || tmp_int >= 65536)
+ if ( tmp_int < 0 || tmp_int >= 65536)
{
goto EEMGINFOSVC_EXIT;
}
cell_info.cell_list.cell[cell_info.cell_list.num].value4 = (uint32)tmp_int;
- // Jump 15 integer.
+ // Jump 4 integer, get 5rd number
i = 0;
- while(i < 15) {
+ while(i < 5) {
+ if (at_tok_nextint(&line, &tmp_int) < 0)
+ {
+ goto EEMGINFOSVC_EXIT;
+ }
+ i++;
+ }
+
+ cell_info.cell_list.cell[cell_info.cell_list.num].value7=tmp_int; //rxlev
+
+ // Jump 10 integer, get 11rd number
+ i = 0;
+ while(i < 11) {
if (at_tok_nextint(&line, &tmp_int) < 0)
{
goto EEMGINFOSVC_EXIT;
@@ -1914,7 +1921,7 @@
}
// arfcn
- if (at_tok_nextint(&line, &tmp_int) < 0 || tmp_int < 0 || tmp_int >= 65536)
+ if (tmp_int < 0 || tmp_int >= 65536)
{
goto EEMGINFOSVC_EXIT;
}