mwifiex: correct TX byte count statistics
[linux-drm-fsl-dcu.git] / drivers / net / wireless / mwifiex / txrx.c
index 8dd145cf8030597e9e844909367f424b9054cb19..3446da6792c90efb28b8d594e38d2d99676564da 100644 (file)
@@ -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 {