[Bugfix][T800][task-view-109] lynq_get_urc_info: get wcdma rscp/ecno
value error and no lte/wcdma signal strength
Only Configure: No
Affected branch: unknown
Affected module: network
Is it affected on both ZXIC and MTK: only MTK
Self-test: yes
Doc Update: no
Change-Id: I77c48f31a190ef159502c0c9af6b51b1584591f3
diff --git a/common_src/lib/liblynq-network/lynq_network.cpp b/common_src/lib/liblynq-network/lynq_network.cpp
index b89612e..7b3f79e 100755
--- a/common_src/lib/liblynq-network/lynq_network.cpp
+++ b/common_src/lib/liblynq-network/lynq_network.cpp
@@ -1223,9 +1223,11 @@
LYDBGLOG("get state update to signal info");
solSigStren->gw_sig_valid = s_network_urc_solSigStren.gw_sig_valid;
solSigStren->rssi = s_network_urc_solSigStren.rssi;
+ solSigStren->wcdma_signalstrength = s_network_urc_solSigStren.wcdma_signalstrength;
solSigStren->wcdma_sig_valid = s_network_urc_solSigStren.wcdma_sig_valid;
solSigStren->rscp = s_network_urc_solSigStren.rscp;
solSigStren->ecno = s_network_urc_solSigStren.ecno;
+ solSigStren->lte_signalstrength = s_network_urc_solSigStren.lte_signalstrength;
solSigStren->lte_sig_valid = s_network_urc_solSigStren.lte_sig_valid;
solSigStren->rsrp = s_network_urc_solSigStren.rsrp;
solSigStren->rsrq = s_network_urc_solSigStren.rsrq;
@@ -1386,7 +1388,9 @@
int resp_type;
int none = 0;
int NR_sum = 0;
- int size=p->dataSize();
+ int size=p->dataSize();
+ int rscp;
+ int ecno;
p->readInt32(&resp_type);
p->readInt32(&s_module_wait_urc_id);
p->readInt32(&s_module_urc_slot_id);
@@ -1447,12 +1451,14 @@
p->readInt32(&none);
p->readInt32(&s_network_urc_solSigStren.wcdma_signalstrength);
p->readInt32(&none);//bitErrorRate
- p->readInt32(&s_network_urc_solSigStren.rscp);
- p->readInt32(&s_network_urc_solSigStren.ecno);
+ p->readInt32(&rscp);
+ p->readInt32(&ecno);
if(is_rssi_valid(s_network_urc_solSigStren.wcdma_signalstrength))
{
s_network_urc_solSigStren.wcdma_sig_valid = 1;
- LYINFLOG("urc_WCDMA_signalstrength:%d",s_network_urc_solSigStren.wcdma_signalstrength);
+ convert_rscp(rscp,&s_network_urc_solSigStren.rscp);
+ convert_ecno(ecno,&s_network_urc_solSigStren.ecno);
+ LYINFLOG("urc_WCDMA_signalstrength:%d",s_network_urc_solSigStren.wcdma_signalstrength);
}else{
s_network_urc_solSigStren.wcdma_sig_valid = 0;
}