summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/570-mac80211_initialize_last_rx.patch
blob: edcc227e9be2f94a8accdab8ddec8164d2302aed (plain)
1
2
3
4
5
6
7
8
9
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);