aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-08-24 14:29:34 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:31 -0400
commit68aae11674b9d6598b660d1148ffba9eef3f895f (patch)
treed5213c5b624e9908b948f2642b7e15721021b4ee /net/mac80211/tx.c
parent24338793eea9dcc0865826e1115af86a19af8d18 (diff)
[MAC80211]: use internal network device stats
Stats are now available for device usage inside network_device Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 1780c24f7957..acfc3054d467 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1528,8 +1528,8 @@ int ieee80211_subif_start_xmit(struct sk_buff *skb,
1528 pkt_data->flags |= IEEE80211_TXPD_MGMT_IFACE; 1528 pkt_data->flags |= IEEE80211_TXPD_MGMT_IFACE;
1529 1529
1530 skb->dev = local->mdev; 1530 skb->dev = local->mdev;
1531 sdata->stats.tx_packets++; 1531 dev->stats.tx_packets++;
1532 sdata->stats.tx_bytes += skb->len; 1532 dev->stats.tx_bytes += skb->len;
1533 1533
1534 /* Update skb pointers to various headers since this modified frame 1534 /* Update skb pointers to various headers since this modified frame
1535 * is going to go through Linux networking code that may potentially 1535 * is going to go through Linux networking code that may potentially
@@ -1602,8 +1602,8 @@ int ieee80211_mgmt_start_xmit(struct sk_buff *skb, struct net_device *dev)
1602 if (!(fc & IEEE80211_FCTL_PROTECTED)) 1602 if (!(fc & IEEE80211_FCTL_PROTECTED))
1603 pkt_data->flags |= IEEE80211_TXPD_DO_NOT_ENCRYPT; 1603 pkt_data->flags |= IEEE80211_TXPD_DO_NOT_ENCRYPT;
1604 1604
1605 sdata->stats.tx_packets++; 1605 dev->stats.tx_packets++;
1606 sdata->stats.tx_bytes += skb->len; 1606 dev->stats.tx_bytes += skb->len;
1607 1607
1608 dev_queue_xmit(skb); 1608 dev_queue_xmit(skb);
1609 1609