summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/eeprom.h
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2012-09-10 17:05:11 +0530
committerJohn W. Linville <linville@tuxdriver.com>2012-09-11 15:31:47 -0400
commit420e2b1b4a9120b6f89bc98e37173a6b2a48a798 (patch)
tree77a76ae9ca51f86211ed0c556340375691726821 /drivers/net/wireless/ath/ath9k/eeprom.h
parentc21d34a302c21580133748a781af6f03a9a06aa7 (diff)
downloadlinux-stable-420e2b1b4a9120b6f89bc98e37173a6b2a48a798.tar.gz
linux-stable-420e2b1b4a9120b6f89bc98e37173a6b2a48a798.tar.bz2
linux-stable-420e2b1b4a9120b6f89bc98e37173a6b2a48a798.zip
ath9k_hw: add 8 points for 5G temp slop
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/eeprom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h
index 7e1da18d09df..319c651fa6c5 100644
--- a/drivers/net/wireless/ath/ath9k/eeprom.h
+++ b/drivers/net/wireless/ath/ath9k/eeprom.h
@@ -96,6 +96,7 @@
#define ATH9K_POW_SM(_r, _s) (((_r) & 0x3f) << (_s))
#define FREQ2FBIN(x, y) ((y) ? ((x) - 2300) : (((x) - 4800) / 5))
+#define FBIN2FREQ(x, y) ((y) ? (2300 + x) : (4800 + 5 * x))
#define ath9k_hw_use_flash(_ah) (!(_ah->ah_flags & AH_USE_EEPROM))
#define AR5416_VER_MASK (eep->baseEepHeader.version & AR5416_EEP_VER_MINOR_MASK)