]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: fix channel assumption for association done work
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 1 Oct 2010 21:05:19 +0000 (17:05 -0400)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:01 +0000 (23:40 +0100)
commitce838da05df6b16b9d2ac4cf4df1e86e6c9da16f
tree6e0cb73c6478e2db48c6f3aa56b537560e7e7399
parent12e3edfbbf42a116afc5e491930c5a1e56f4edb2
mac80211: fix channel assumption for association done work

commit e7480bbb926c5816e4fbfca70748096bbe0e4978 upstream.

Be consistent and use the wk->chan instead of the
local->hw.conf.channel for the association done work.
This prevents any possible races against channel changes
while we run this work.

In the case that the race did happen we would be initializing
the bit rates for the new AP under the assumption of a wrong
channel and in the worst case, wrong band. This could lead
to trying to assuming we could use CCK frames on 5 GHz, for
example.

This patch has a fix for kernels >= v2.6.34

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
net/mac80211/mlme.c