Bug 221 - driver does not increment transmit statistics
: driver does not increment transmit statistics
Status: VERIFIED DUPLICATE of bug 220
: IPW2200
__UNSPECIFIED__
: 0.7
: All Fedora Core 1
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-09-13 00:49 by
Modified: 2004-09-13 00:50 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-09-13 00:49:07
(reported on mailing list along with a patch by Stephen Hemminger - Fri 
9/3/2004)

The ipw2200 driver never increments the network transmit statistics!
Here is one place it could be done.  Others are in the tasklet, or 
in ieee80211_tx free code.

diff -Nru a/drivers/net/wireless/ieee80211/ieee80211_tx.c 
b/drivers/net/wireless/ieee80211/ieee80211_tx.c
--- a/drivers/net/wireless/ieee80211/ieee80211_tx.c	2004-09-03 09:43:26 -
07:00
+++ b/drivers/net/wireless/ieee80211/ieee80211_tx.c	2004-09-03 09:43:26 -
07:00
@@ -350,6 +350,8 @@
 			ieee80211_encrypt_fragment(ieee, skb_frag, hdr_len);
 #endif
 	}
+	stats->tx_packets++;
+	stats->tx_bytes += skb->len;
 
 	/* We are now done with the SKB provided to us */
 	dev_kfree_skb_any(skb);
------- Comment #1 From 2004-09-13 00:49:41 -------

*** This bug has been marked as a duplicate of 220 ***
------- Comment #2 From 2004-09-13 00:50:46 -------
Bug reported twice in error. Closing this one.