]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ath6kl: provide 64-bit per-station byte counters
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Tue, 5 Feb 2013 09:44:48 +0000 (11:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Feb 2013 20:34:58 +0000 (15:34 -0500)
Internally, 64-bit byte counters maintained for per-station
statistics. Tell to the netlink that full 64-bit value provided

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c

index 4225cca0f198199a4e0b0e28ee5b4748cb85a45d..259c43332fb855921b0599f28d5314ced37d6052 100644 (file)
@@ -1778,14 +1778,14 @@ static int ath6kl_get_station(struct wiphy *wiphy, struct net_device *dev,
 
        if (vif->target_stats.rx_byte) {
                sinfo->rx_bytes = vif->target_stats.rx_byte;
-               sinfo->filled |= STATION_INFO_RX_BYTES;
+               sinfo->filled |= STATION_INFO_RX_BYTES64;
                sinfo->rx_packets = vif->target_stats.rx_pkt;
                sinfo->filled |= STATION_INFO_RX_PACKETS;
        }
 
        if (vif->target_stats.tx_byte) {
                sinfo->tx_bytes = vif->target_stats.tx_byte;
-               sinfo->filled |= STATION_INFO_TX_BYTES;
+               sinfo->filled |= STATION_INFO_TX_BYTES64;
                sinfo->tx_packets = vif->target_stats.tx_pkt;
                sinfo->filled |= STATION_INFO_TX_PACKETS;
        }