From 84d6642e4d1609562abb421341c9a90c023247a1 Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Tue, 4 Jul 2017 11:53:51 +0200 Subject: backports:fix compilation with toradex kernels Signed-off-by: Dominik Sliwa --- net/mac80211/tx.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net/mac80211/tx.c') diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 6e0a675..762ec66 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -43,12 +43,14 @@ static inline void ieee80211_tx_stats(struct net_device *dev, u32 len) { +#if LINUX_VERSION_IS_GEQ(3,14,0) struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); u64_stats_update_begin(&tstats->syncp); tstats->tx_packets++; tstats->tx_bytes += len; u64_stats_update_end(&tstats->syncp); +#endif } static __le16 ieee80211_duration(struct ieee80211_tx_data *tx, -- cgit v1.2.3