ipw2x00: convert to internal net_device_stats
Replace struct in ieee with current net_device_stats, so no longer need get_stats hook Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
f02abf1010
commit
ce55cbaf3a
@@ -139,13 +139,6 @@ static int ieee80211_change_mtu(struct net_device *dev, int new_mtu)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct net_device_stats *ieee80211_generic_get_stats(
|
||||
struct net_device *dev)
|
||||
{
|
||||
struct ieee80211_device *ieee = netdev_priv(dev);
|
||||
return &ieee->stats;
|
||||
}
|
||||
|
||||
struct net_device *alloc_ieee80211(int sizeof_priv)
|
||||
{
|
||||
struct ieee80211_device *ieee;
|
||||
@@ -163,10 +156,6 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
|
||||
dev->hard_start_xmit = ieee80211_xmit;
|
||||
dev->change_mtu = ieee80211_change_mtu;
|
||||
|
||||
/* Drivers are free to override this if the generic implementation
|
||||
* does not meet their needs. */
|
||||
dev->get_stats = ieee80211_generic_get_stats;
|
||||
|
||||
ieee->dev = dev;
|
||||
|
||||
err = ieee80211_networks_allocate(ieee);
|
||||
|
Reference in New Issue
Block a user