source: branches/backfire/package/mac80211/patches/570-ath9k_fix_reg_bit_macros.patch @ 25989

Last change on this file since 25989 was 25989, checked in by nbd, 6 years ago

ath9k: backport tx dma stop fixes from r25988

File size: 497 bytes
  • drivers/net/wireless/ath/ath9k/hw.h

    a b  
    9595#define REG_READ_FIELD(_a, _r, _f) \ 
    9696        (((REG_READ(_a, _r) & _f) >> _f##_S)) 
    9797#define REG_SET_BIT(_a, _r, _f) \ 
    98         REG_WRITE(_a, _r, REG_READ(_a, _r) | _f) 
     98        REG_WRITE(_a, _r, REG_READ(_a, _r) | (_f)) 
    9999#define REG_CLR_BIT(_a, _r, _f) \ 
    100         REG_WRITE(_a, _r, REG_READ(_a, _r) & ~_f) 
     100        REG_WRITE(_a, _r, REG_READ(_a, _r) & ~(_f)) 
    101101 
    102102#define DO_DELAY(x) do {                        \ 
    103103                if ((++(x) % 64) == 0)          \ 
Note: See TracBrowser for help on using the repository browser.