]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ef81930c5755c78b2bf452e5389cd37065b747e
tree5b4f95d4c8f2535d5971aaff0cde15a96695a1f1
parentd04673f8fe5fb6e2f3a2a1128edf75fd98cb8e34
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