]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mac80211: fix race condition caused by late addBA response
authorNikolay Martynov <mar.kolya@gmail.com>
Sat, 10 Dec 2011 16:31:23 +0000 (17:31 +0100)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:00:12 +0000 (13:00 -0800)
commit2b98750f8234d698ba73bd161e7aada73b49a8b5
tree5a6a78afc2938582324fb5accb6c430ff01796dc
parent98c876fd9e3f6ab68d7e990451de3d6e3bafb8d1
mac80211: fix race condition caused by late addBA response

Upstream commit d305a6557b2c4dca0110f05ffe745b1ef94adb80.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/mac80211/agg-tx.c