Bump version to v1.5 and start work on adding 4.19 kernel suppot
[librecmc/librecmc.git] / package / kernel / mac80211 / patches / 008-revert-ndo_stats64-cleanup.patch
1 --- a/net/mac80211/iface.c
2 +++ b/net/mac80211/iface.c
3 @@ -1133,7 +1133,7 @@ static u16 ieee80211_netdev_select_queue
4         return ieee80211_select_queue(IEEE80211_DEV_TO_SUB_IF(dev), skb);
5  }
6  
7 -static void
8 +static struct rtnl_link_stats64 *
9  ieee80211_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats)
10  {
11         int i;
12 @@ -1158,6 +1158,8 @@ ieee80211_get_stats64(struct net_device
13                 stats->rx_bytes   += rx_bytes;
14                 stats->tx_bytes   += tx_bytes;
15         }
16 +
17 +       return stats;
18  }
19  
20  static const struct net_device_ops ieee80211_dataif_ops = {