diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-11 20:38:17 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-03-14 18:46:58 (GMT) |
commit | 997941d7efe4d165a558ed5b6029a8b3c2c85cf7 (patch) | |
tree | 2fd09395edc323f1250f0b614600e2223dcf0826 /drivers/net/wireless/ath | |
parent | cf28d7934c57168d530b606c26ab955a56eb13f9 (diff) | |
download | linux-fsl-qoriq-997941d7efe4d165a558ed5b6029a8b3c2c85cf7.tar.xz |
ath9k_hw: fix REG_SET_BIT and REG_CLR_BIT for multiple bits
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index ef79f4c..6650fd4 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -95,9 +95,9 @@ #define REG_READ_FIELD(_a, _r, _f) \ (((REG_READ(_a, _r) & _f) >> _f##_S)) #define REG_SET_BIT(_a, _r, _f) \ - REG_WRITE(_a, _r, REG_READ(_a, _r) | _f) + REG_WRITE(_a, _r, REG_READ(_a, _r) | (_f)) #define REG_CLR_BIT(_a, _r, _f) \ - REG_WRITE(_a, _r, REG_READ(_a, _r) & ~_f) + REG_WRITE(_a, _r, REG_READ(_a, _r) & ~(_f)) #define DO_DELAY(x) do { \ if ((++(x) % 64) == 0) \ |