- if (snr_level != last_snr_level) {
- INFO("Wi-Fi RSSI: %d dB, %d level", rssi_dbm, snr_level);
+ reply = netconfig_invoke_dbus_method_nonblock(
+ "org.tizen.system.deviced",
+ "/Org/Tizen/System/DeviceD/PmQos",
+ "org.tizen.system.deviced.PmQos",
+ "WifiThroughput",
+ params,
+ NULL,
+ NULL);
+ if (reply != TRUE)
+ return;
+
+ old_level = level;
+}
+
+static void __netconfig_wifi_get_statistics(void)
+{
+ static int last_transfer_state = 0;
+ static int booster_tic = 0;
+ static int old_level = 0;
+ int booster_level = 0;
+ guint64 tx, rx;
+ int transfer_state;
+
+ if (netconfig_wifi_get_bytes_statistics(&tx, &rx, TRUE))
+ netconfig_wifi_set_bytes_pkt_vconf(tx, rx, FALSE);
+
+ netconfig_wifi_get_bytes_default_iface(&tx, &rx);
+
+ if (tx > 0) {
+ if (rx > 0)
+ transfer_state = VCONFKEY_WIFI_TRANSFER_STATE_TXRX;
+ else
+ transfer_state = VCONFKEY_WIFI_TRANSFER_STATE_TX;
+ } else {
+ if (rx > 0)
+ transfer_state = VCONFKEY_WIFI_TRANSFER_STATE_RX;
+ else
+ transfer_state = VCONFKEY_WIFI_TRANSFER_STATE_NONE;
+ }