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)
commit1ffc1c61bdbe31105d99d65043bbf7ae6d24dbc7
tree96bbca0c29039eb8ef289756b4b76938141c587e
parent9a23f9ca50943c1b4535d22b3acda3c31b4ad072
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