From: Johannes Berg Date: Fri, 13 Jan 2012 13:17:59 +0000 (+0100) Subject: mac80211: fix no-op authorized transitions X-Git-Tag: v3.3-rc1~17^2~6^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=543d1b92d5500841e70f15e79d197bbffed36561;p=pandora-kernel.git mac80211: fix no-op authorized transitions When userspace attempts to authorize a station that is already authorized, nothing happens as you'd expect. Similarly, when it unauthorizes a station that is associated, nothing happens. However, when it unauthorizes a station that isn't even associated yet, we erroneously try to move the station to associated. This seems to happen occasionally as a result of a race when wpa_supplicant attempts to unauthorize the port in managed mode. Particularly with my new patches to keep stations, it can then move a station into ASSOCIATED state before we have really associated, which is really confusing. I introduced this bug in "mac80211: refactor station state transitions" Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed