We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963495d commit 046a08fCopy full SHA for 046a08f
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
@@ -295,6 +295,7 @@ static netdev_tx_t brcmf_netdev_start_xmit(struct sk_buff *skb,
295
struct brcmf_pub *drvr = ifp->drvr;
296
struct ethhdr *eh;
297
int head_delta;
298
+ unsigned int tx_bytes = skb->len;
299
300
brcmf_dbg(DATA, "Enter, bsscfgidx=%d\n", ifp->bsscfgidx);
301
@@ -369,7 +370,7 @@ static netdev_tx_t brcmf_netdev_start_xmit(struct sk_buff *skb,
369
370
ndev->stats.tx_dropped++;
371
} else {
372
ndev->stats.tx_packets++;
- ndev->stats.tx_bytes += skb->len;
373
+ ndev->stats.tx_bytes += tx_bytes;
374
}
375
376
/* Return ok: we always eat the packet */
0 commit comments