if (0 != sta_info[NL80211_STA_INFO_RX_BYTES]) {
station_info->rx_bytes =
nla_get_u32(sta_info[NL80211_STA_INFO_RX_BYTES]);
- WMESH_LOGD(" rx bytes:\t%u", station_info->rx_bytes);
+ WMESH_LOGD(" rx bytes:\t%" G_GUINT64_FORMAT, station_info->rx_bytes);
} else if (0 != sta_info[NL80211_STA_INFO_RX_BYTES64]) {
station_info->rx_bytes =
(unsigned long long)nla_get_u64(sta_info[NL80211_STA_INFO_RX_BYTES64]);
- WMESH_LOGE(" rx bytes:\t%llu", station_info->rx_bytes);
+ WMESH_LOGE(" rx bytes:\t%" G_GUINT64_FORMAT, station_info->rx_bytes);
}
/* RX Packets */
if (0 != sta_info[NL80211_STA_INFO_TX_BYTES]) {
station_info->tx_bytes =
nla_get_u32(sta_info[NL80211_STA_INFO_TX_BYTES]);
- WMESH_LOGD(" tx bytes:\t%u", station_info->tx_bytes);
+ WMESH_LOGD(" tx bytes:\t%" G_GUINT64_FORMAT, station_info->tx_bytes);
} else if (0 != sta_info[NL80211_STA_INFO_TX_BYTES64]) {
station_info->tx_bytes =
(unsigned long long)nla_get_u64(sta_info[NL80211_STA_INFO_TX_BYTES64]);
- WMESH_LOGD(" tx bytes:\t%llu", station_info->rx_packets);
+ WMESH_LOGD(" tx bytes:\t%" G_GUINT64_FORMAT, station_info->tx_bytes);
+ }
+
+ /* TX Packets */
+ if (0 != sta_info[NL80211_STA_INFO_TX_PACKETS]) {
+ station_info->tx_packets =
+ nla_get_u32(sta_info[NL80211_STA_INFO_TX_PACKETS]);
+ WMESH_LOGD(" tx packets:\t%u", station_info->tx_packets);
}
/* LLID, PLID */
if (0 != sta_info[NL80211_STA_INFO_RX_DROP_MISC]) {
station_info->rx_drop_misc =
(unsigned long long)nla_get_u64(sta_info[NL80211_STA_INFO_RX_DROP_MISC]);
- WMESH_LOGD(" rx drop misc:\t%llu", station_info->rx_drop_misc);
+ WMESH_LOGD(" rx drop misc:\t%" G_GUINT64_FORMAT, station_info->rx_drop_misc);
}
#endif /* NL80211_STA_INFO_RX_DROP_MISC */
if (0 != sta_info[NL80211_STA_INFO_BEACON_RX]) {
station_info->beacon_rx =
(unsigned long long)nla_get_u64(sta_info[NL80211_STA_INFO_BEACON_RX]);
- WMESH_LOGD(" beacon rx:\t%llu", station_info->beacon_rx);
+ WMESH_LOGD(" beacon rx:\t%" G_GUINT64_FORMAT, station_info->beacon_rx);
}
#endif /* NL80211_STA_INFO_BEACON_RX */