]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Do not try to calibrate radio when in sleep mode
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 19 May 2009 14:01:39 +0000 (17:01 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 May 2009 18:46:33 +0000 (14:46 -0400)
commit4ae5705e9d45a87850b893801a336f5b16887c7d
tree96bbca0c29039eb8ef289756b4b76938141c587e
parentf1676f98d424653a3aebb55bc0009e06dc344b90
ath9k: Do not try to calibrate radio when in sleep mode

When the chip is in sleep mode, there is no point trying to calibrate
the radio since it will just results in incorrect values being read
from registers and other potential issues. In addition, if we actually
start processing calibrate, do not allow the chip to be put into sleep
until we have completed the calibration step.

Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c