ath9k: serialize ath9k_ps_{wakeup,restore} calls
authorGabor Juhos <juhosg@openwrt.org>
Wed, 15 Jul 2009 00:17:15 +0000 (20:17 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 Jul 2009 19:05:19 +0000 (15:05 -0400)
commit709ade9eb8ef06e03526115408e2fc93a9feabbd
tree66c9d0b622483ee22e6bdd89435e644e742aa550
parent0bc0798b7605664c3ab8d577b398dc7ae0b2e58c
ath9k: serialize ath9k_ps_{wakeup,restore} calls

These functions are changing the power mode of the chip, but this may
have unpredictable effects, if another code are trying to set the power
mode via 'ath9k_hw_setpower' in the same time from another context.

Changes-licensed-under: ISC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/hw.c