o wl3501: update tx statistics

parent f6c1ec79
...@@ -1518,10 +1518,14 @@ static int wl3501_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -1518,10 +1518,14 @@ static int wl3501_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
rc = wl3501_send_pkt(this, skb->data, skb->len); rc = wl3501_send_pkt(this, skb->data, skb->len);
if (enabled) if (enabled)
wl3501_unblock_interrupt(this); wl3501_unblock_interrupt(this);
if (rc) if (rc) {
++this->stats.tx_dropped;
netif_stop_queue(dev); netif_stop_queue(dev);
else } else {
++this->stats.tx_packets;
this->stats.tx_bytes += skb->len;
kfree_skb(skb); kfree_skb(skb);
}
spin_unlock_irqrestore(&this->lock, flags); spin_unlock_irqrestore(&this->lock, flags);
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment