mac80211: fix race condition caused by late addBA response
authorNikolay Martynov <mar.kolya@gmail.com>
Mon, 28 Nov 2011 08:18:00 +0000 (09:18 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Nov 2011 18:46:41 +0000 (13:46 -0500)
commitd305a6557b2c4dca0110f05ffe745b1ef94adb80
tree5b4f95d4c8f2535d5971aaff0cde15a96695a1f1
parenta73228124bed4022d4d4c5663d9679ba2fb99c6c
mac80211: fix race condition caused by late addBA response

If addBA responses comes in just after addba_resp_timer has
expired mac80211 will still accept it and try to open the
aggregation session. This causes drivers to be confused and
in some cases even crash.

This patch fixes the race condition and makes sure that if
addba_resp_timer has expired addBA response is not longer
accepted and we do not try to open half-closed session.

Cc: stable@vger.kernel.org
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
[some adjustments]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/agg-tx.c