]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix associated vs. idle race
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Feb 2012 13:19:58 +0000 (14:19 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Feb 2012 19:06:32 +0000 (14:06 -0500)
commit2fb63fb073b57574daae8c38cf68c3a4d062dab1
treea24b8155adbc30e2ed49768351061c48037b9242
parent56a72e4354a98ed3fb57394b7d3f6a2db67055ff
mac80211: fix associated vs. idle race

Eliad reports that if a scan finishes in the
middle of processing associated (however it
happens), the interface can go idle. This is
because we set assoc_data to NULL before we
set associated. Change the order so any idle
check will find either one of them.

Doing this requires duplicating the TX sync
processing, but I already have a patch to
delete that completely and will submit that
as soon as my driver changes to no longer
require it are submitted.

Reported-by: Eliad Peller <eliad@wizery.com>
Tested-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c