diff options
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index b34bbb4..332fdc5 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -36,12 +36,14 @@ static inline void ieee80211_rx_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->rx_packets++; tstats->rx_bytes += len; u64_stats_update_end(&tstats->syncp); +#endif } static u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len, |