*tx = 0;
*rx = 0;
+ DBG("open /proc/net/dev file");
fp = fopen(NETCONFIG_PROCDEV, "r");
if (fp == NULL) {
ERR("Failed to open %s", NETCONFIG_PROCDEV);
guint64 total_bytes = 0;
int val = 0;
+ DBG("+");
netconfig_vconf_get_int(VCONFKEY_NETWORK_WIFI_PKT_TOTAL_RCV, &val);
rx_bytes = (guint64)val;
+ DBG("got rx packet size from vconf [%lld]", rx_bytes);
+
if (netconfig_wifi_get_bytes_statistics(&tx, &rx) == TRUE)
total_bytes = rx + rx_bytes;
else
total_bytes = rx_bytes;
+ DBG("wifi total rx bytes [%lld]", total_bytes);
+
network_statistics_complete_get_wifi_total_rx_bytes(object, context, total_bytes);
return TRUE;
}