mac80211: fix TX aggregation session timer
authorJohannes Berg <johannes.berg@intel.com>
Mon, 7 May 2012 15:57:36 +0000 (17:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 May 2012 16:46:04 +0000 (12:46 -0400)
commit9e73dee7d38e9fa00f6dd1492cfbbc5719378e4a
tree1f2681c5a41e5bc732e9468fececac6806e7bfaf
parenta9d3c05cca51d80ef2b9eddabf794c9458e36c2c
mac80211: fix TX aggregation session timer

In commit 12d3952fc4a1cd96234bc7023bf7eefeb0bb6355
("mac80211: optimize aggregation session timeout handling")
two bugs were introduced:
 1) RCU usage was completely broken since no locks are held
 2) the timer must not rearm when agg session is stopping

Reported-and-tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/agg-tx.c