mac80211: backport the inactivity timeout fix from r26251
authorFelix Fietkau <nbd@openwrt.org>
Mon, 21 Mar 2011 03:24:12 +0000 (03:24 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 21 Mar 2011 03:24:12 +0000 (03:24 +0000)
SVN-Revision: 26252

package/mac80211/patches/562-mac80211_initialize_last_rx.patch [new file with mode: 0644]

diff --git a/package/mac80211/patches/562-mac80211_initialize_last_rx.patch b/package/mac80211/patches/562-mac80211_initialize_last_rx.patch
new file mode 100644 (file)
index 0000000..edcc227
--- /dev/null
@@ -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);