mac80211: fix race condition caused by late addBA response
commit5009514a0967db0060656c70de812b8643417da7
authorNikolay Martynov <mar.kolya@gmail.com>
Sat, 10 Dec 2011 16:31:23 +0000 (10 17:31 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 20:57:38 +0000 (21 12:57 -0800)
treee915321fceaba600bc99a78f7abf8ae6a15c0023
parent0ea3edaf9ae2cede6f76b08a09981b3e71439e2e
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