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 0d24201 commit 3f42fafCopy full SHA for 3f42faf
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
@@ -292,6 +292,7 @@ static netdev_tx_t brcmf_netdev_start_xmit(struct sk_buff *skb,
292
struct brcmf_pub *drvr = ifp->drvr;
293
struct ethhdr *eh;
294
int head_delta;
295
+ unsigned int tx_bytes = skb->len;
296
297
brcmf_dbg(DATA, "Enter, bsscfgidx=%d\n", ifp->bsscfgidx);
298
@@ -366,7 +367,7 @@ static netdev_tx_t brcmf_netdev_start_xmit(struct sk_buff *skb,
366
367
ndev->stats.tx_dropped++;
368
} else {
369
ndev->stats.tx_packets++;
- ndev->stats.tx_bytes += skb->len;
370
+ ndev->stats.tx_bytes += tx_bytes;
371
}
372
373
/* Return ok: we always eat the packet */
0 commit comments