diff options
author | Ujjal Roy <royujjal@gmail.com> | 2013-12-02 23:17:55 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-09 15:35:30 -0500 |
commit | a1ed484960066c413712cd9c4d50a350cf67eba3 (patch) | |
tree | 0fe8b84ef22c0d2fd231a898563dd99d525a4f67 /drivers/net/wireless/mwifiex/txrx.c | |
parent | f49c6e814274a12295dbd13e1c8ef2b7edd5ab87 (diff) | |
download | talos-obmc-linux-a1ed484960066c413712cd9c4d50a350cf67eba3.tar.gz talos-obmc-linux-a1ed484960066c413712cd9c4d50a350cf67eba3.zip |
mwifiex: correct TX byte count statistics
The skb is modified in sending the TX packet. Save the original
packet length to a variable so that we can get the correct
statistics update.
Signed-off-by: Ujjal Roy <royujjal@gmail.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/txrx.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/txrx.c b/drivers/net/wireless/mwifiex/txrx.c index 8dd145cf8030..3446da6792c9 100644 --- a/drivers/net/wireless/mwifiex/txrx.c +++ b/drivers/net/wireless/mwifiex/txrx.c @@ -175,7 +175,7 @@ int mwifiex_write_data_complete(struct mwifiex_adapter *adapter, mwifiex_set_trans_start(priv->netdev); if (!status) { priv->stats.tx_packets++; - priv->stats.tx_bytes += skb->len; + priv->stats.tx_bytes += tx_info->pkt_len; if (priv->tx_timeout_cnt) priv->tx_timeout_cnt = 0; } else { |