diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2009-06-24 18:56:41 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:24 -0400 |
commit | e5f0921a9593365b506f69daa3cfd19c0ed1340b (patch) | |
tree | 517b9d993790e182918b0950413913b2dfad7f8c /drivers/net/wireless/ath/ath9k/ath9k.h | |
parent | f38faa31e0da07390d72fb67d3151e56c54871f4 (diff) | |
download | talos-op-linux-e5f0921a9593365b506f69daa3cfd19c0ed1340b.tar.gz talos-op-linux-e5f0921a9593365b506f69daa3cfd19c0ed1340b.zip |
ath9k: race condition in SCANNING state check during ANI calibration
ANI calibration shouldn't be done when we are not on our home channel.
This is already verified. However, it is racy. Fix this by proper
spin locks.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
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 747e046b03b0..eb9d5228cb6c 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h @@ -540,6 +540,7 @@ struct ath_softc { int irq; spinlock_t sc_resetlock; spinlock_t sc_serial_rw; + spinlock_t ani_lock; struct mutex mutex; u8 curbssid[ETH_ALEN]; |