[Feature][data][API-1374]update the iface information when the PDN is disconnected.
Only Configure:No
Affected branch:GSW3.0-No-Connman
Affected module:DATA
Is it affected on both ZXIC and MTK:Only MTK
Self-test:Yes
Doc Update:No
Change-Id: I93e5351ea8f912b0beb2be7e901333a542ec764f
diff --git a/src/lynq/framework/lynq-ril-service/src/data/data_gdbus.cpp b/src/lynq/framework/lynq-ril-service/src/data/data_gdbus.cpp
index 980ebd8..d6fb6cd 100755
--- a/src/lynq/framework/lynq-ril-service/src/data/data_gdbus.cpp
+++ b/src/lynq/framework/lynq-ril-service/src/data/data_gdbus.cpp
@@ -121,6 +121,7 @@
{
bzero(apn_table[i].apn,LYNQ_APN_LEN_MAX);
bzero(apn_table[i].apntype,LYNQ_APNTPYE_LEN_MAX);
+ bzero(apn_table[i].ifaceName,LYNQ_APNTPYE_LEN_MAX);
apn_table[i].used = 0;
apn_table[i].netId = 0;
apn_table[i].pdpstate = PDN_DISCONNECTED;
@@ -280,6 +281,7 @@
{
bzero(apn_table[i].apn,LYNQ_APN_LEN_MAX);
bzero(apn_table[i].apntype,LYNQ_APNTPYE_LEN_MAX);
+ bzero(apn_table[i].ifaceName,LYNQ_APNTPYE_LEN_MAX);
apn_table[i].used = 0;
apn_table[i].netId = 0;
apn_table[i].pdpstate = PDN_DISCONNECTED;
@@ -312,6 +314,7 @@
else
{
memcpy(iface_t,urc_response->ifname,strlen(urc_response->ifname)+1);
+ memcpy(apn_table[i].ifaceName,urc_response->ifname,strlen(urc_response->ifname)+1);
}
if(NULL == urc_response->addresses)
{
@@ -363,6 +366,7 @@
else
{
memcpy(iface_t,urc_response->ifname,strlen(urc_response->ifname)+1);
+ memcpy(apn_table[i].ifaceName,urc_response->ifname,strlen(urc_response->ifname)+1);
}
if(NULL == urc_response->addresses)
{