summaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorRoger While <simrw@sim-basis.de>2005-11-07 19:58:21 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2005-11-08 02:50:00 (GMT)
commit0b47939fe616a5e0dd279d98d1eb372e4acc1c09 (patch)
tree0e7d5bceaba4a2ca0d55accdd59218edc4d023c5 /drivers/net/wireless
parentde7fe963b123365a27f82330689806226a48d088 (diff)
downloadlinux-0b47939fe616a5e0dd279d98d1eb372e4acc1c09.tar.xz
[PATCH] prism54 : Transmit stats updated in wrong place
Move update of the transmit statistics to the correct place. This would be just before starting transmission rather than (potentially long) afterward. Signed-off-by: Roger While <simrw@sim-basis.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/prism54/islpci_eth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/prism54/islpci_eth.c b/drivers/net/wireless/prism54/islpci_eth.c
index 3b49efa..56d9783 100644
--- a/drivers/net/wireless/prism54/islpci_eth.c
+++ b/drivers/net/wireless/prism54/islpci_eth.c
@@ -227,17 +227,17 @@ islpci_eth_transmit(struct sk_buff *skb, struct net_device *ndev)
priv->data_low_tx_full = 1;
}
+ /* set the transmission time */
+ ndev->trans_start = jiffies;
+ priv->statistics.tx_packets++;
+ priv->statistics.tx_bytes += skb->len;
+
/* trigger the device */
islpci_trigger(priv);
/* unlock the driver code */
spin_unlock_irqrestore(&priv->slock, flags);
- /* set the transmission time */
- ndev->trans_start = jiffies;
- priv->statistics.tx_packets++;
- priv->statistics.tx_bytes += skb->len;
-
return 0;
drop_free: