ath9k: get rid of most of those annoying dma tx stop issues
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 570-ath9k_fix_reg_bit_macros.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.h
2 +++ b/drivers/net/wireless/ath/ath9k/hw.h
3 @@ -95,9 +95,9 @@
4 #define REG_READ_FIELD(_a, _r, _f) \
5 (((REG_READ(_a, _r) & _f) >> _f##_S))
6 #define REG_SET_BIT(_a, _r, _f) \
7 - REG_WRITE(_a, _r, REG_READ(_a, _r) | _f)
8 + REG_WRITE(_a, _r, REG_READ(_a, _r) | (_f))
9 #define REG_CLR_BIT(_a, _r, _f) \
10 - REG_WRITE(_a, _r, REG_READ(_a, _r) & ~_f)
11 + REG_WRITE(_a, _r, REG_READ(_a, _r) & ~(_f))
12
13 #define DO_DELAY(x) do { \
14 if ((++(x) % 64) == 0) \