diff options
author | Gabor Juhos | 2009-07-15 02:17:13 +0200 |
---|---|---|
committer | John W. Linville | 2009-07-24 21:05:18 +0200 |
commit | 04717ccd80e5acc500239222684fcf8d2c759a84 (patch) | |
tree | a506fc7ab3bca88e39a54952b822006d97765920 /drivers/net/wireless/ath/ath9k/ath9k.h | |
parent | ath9k: Remove pointless ath9k_ps_restore() in ath_detach() (diff) | |
download | kernel-qcow2-linux-04717ccd80e5acc500239222684fcf8d2c759a84.tar.gz kernel-qcow2-linux-04717ccd80e5acc500239222684fcf8d2c759a84.tar.xz kernel-qcow2-linux-04717ccd80e5acc500239222684fcf8d2c759a84.zip |
ath9k: serialize ath9k_hw_setpower calls
Because ath9k_setpower is called from various contexts, we have to
protect it against concurrent calls.
Changes-licensed-under: ISC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 20bf4a7f896d..b37eb592b524 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h @@ -559,6 +559,7 @@ struct ath_softc { spinlock_t sc_resetlock; spinlock_t sc_serial_rw; spinlock_t ani_lock; + spinlock_t sc_pm_lock; struct mutex mutex; u8 curbssid[ETH_ALEN]; |