summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/570-mac80211_initialize_last_rx.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/mac80211/patches/570-mac80211_initialize_last_rx.patch')
-rw-r--r--package/mac80211/patches/570-mac80211_initialize_last_rx.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/mac80211/patches/570-mac80211_initialize_last_rx.patch b/package/mac80211/patches/570-mac80211_initialize_last_rx.patch
new file mode 100644
index 000000000..edcc227e9
--- /dev/null
+++ b/package/mac80211/patches/570-mac80211_initialize_last_rx.patch
@@ -0,0 +1,10 @@
+--- a/net/mac80211/sta_info.c
++++ b/net/mac80211/sta_info.c
+@@ -243,6 +243,7 @@ struct sta_info *sta_info_alloc(struct i
+ memcpy(sta->sta.addr, addr, ETH_ALEN);
+ sta->local = local;
+ sta->sdata = sdata;
++ sta->last_rx = jiffies;
+
+ ewma_init(&sta->avg_signal, 1024, 8);
+