mac80211: fix addba timer
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 29 Oct 2009 07:34:00 +0000 (08:34 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Oct 2009 19:50:25 +0000 (15:50 -0400)
commit2171abc58644e09dbba546d91366b12743115396
treeb4b75fad9bb425034f71cf995586dd4898c93c2f
parente55ea2b152569f09ef6bb28d5a341a4e5a21f5ce
mac80211: fix addba timer

The addba timer function acquires the sta spinlock,
but at the same time we try to del_timer_sync() it
under the spinlock which can produce deadlocks.

To fix this, always del_timer_sync() the timer in
ieee80211_process_addba_resp() and add it again
after checking the conditions, if necessary.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/agg-tx.c