From: Johannes Berg Date: Mon, 20 Feb 2012 13:19:58 +0000 (+0100) Subject: mac80211: fix associated vs. idle race X-Git-Tag: v3.4-rc1~177^2~108^2~39^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79ebfb85d4ad3495d70124a249a1096ab6396c05;p=pandora-kernel.git 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 Tested-by: Eliad Peller Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed