diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h index 484b3130590..319c651fa6c 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.h +++ b/drivers/net/wireless/ath/ath9k/eeprom.h | |||
@@ -96,6 +96,7 @@ | |||
96 | 96 | ||
97 | #define ATH9K_POW_SM(_r, _s) (((_r) & 0x3f) << (_s)) | 97 | #define ATH9K_POW_SM(_r, _s) (((_r) & 0x3f) << (_s)) |
98 | #define FREQ2FBIN(x, y) ((y) ? ((x) - 2300) : (((x) - 4800) / 5)) | 98 | #define FREQ2FBIN(x, y) ((y) ? ((x) - 2300) : (((x) - 4800) / 5)) |
99 | #define FBIN2FREQ(x, y) ((y) ? (2300 + x) : (4800 + 5 * x)) | ||
99 | #define ath9k_hw_use_flash(_ah) (!(_ah->ah_flags & AH_USE_EEPROM)) | 100 | #define ath9k_hw_use_flash(_ah) (!(_ah->ah_flags & AH_USE_EEPROM)) |
100 | 101 | ||
101 | #define AR5416_VER_MASK (eep->baseEepHeader.version & AR5416_EEP_VER_MINOR_MASK) | 102 | #define AR5416_VER_MASK (eep->baseEepHeader.version & AR5416_EEP_VER_MINOR_MASK) |
@@ -108,7 +109,7 @@ | |||
108 | #define EEP_RFSILENT_ENABLED_S 0 | 109 | #define EEP_RFSILENT_ENABLED_S 0 |
109 | #define EEP_RFSILENT_POLARITY 0x0002 | 110 | #define EEP_RFSILENT_POLARITY 0x0002 |
110 | #define EEP_RFSILENT_POLARITY_S 1 | 111 | #define EEP_RFSILENT_POLARITY_S 1 |
111 | #define EEP_RFSILENT_GPIO_SEL (AR_SREV_9462(ah) ? 0x00fc : 0x001c) | 112 | #define EEP_RFSILENT_GPIO_SEL ((AR_SREV_9462(ah) || AR_SREV_9565(ah)) ? 0x00fc : 0x001c) |
112 | #define EEP_RFSILENT_GPIO_SEL_S 2 | 113 | #define EEP_RFSILENT_GPIO_SEL_S 2 |
113 | 114 | ||
114 | #define AR5416_OPFLAGS_11A 0x01 | 115 | #define AR5416_OPFLAGS_11A 0x01 |