]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix offchannel assumption upon association
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 25 Sep 2010 01:59:57 +0000 (21:59 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 28 Sep 2010 19:47:55 +0000 (15:47 -0400)
commitd6be4d9b8096de3a32c005c44fc74417ff377c40
tree4d68c0dea0d852cddc64e0d65a2d303c918c0e6d
parentf2337928c73de471b15a97cc5bc2d83c195ea2c6
mac80211: fix offchannel assumption upon association

Association is dealt with as an atomic offchannel operation,
we do this because we don't know we are associated until we
get the associatin response from the AP. When we do get the
associatin response though we were never clearing the offchannel
state. This has a few implications, we told drivers we were
still offchannel, and the first configured TX power for the
channel does not take into account any power constraints.

For ath9k this meant ANI calibration would not start upon
association, and we'd have to wait until the first bgscan
to be triggered. There may be other issues this resolves
but I'm too lazy to comb the code to check.

Cc: stable@kernel.org
Cc: Amod Bodas <amod.bodas@atheros.com>
Cc: Vasanth Thiagarajan <vasanth.thiagarajan@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c