diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-01-05 16:06:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-05 16:06:25 -0500 |
commit | c96e96354a6c9456cdf1f150eca504e2ea35301e (patch) | |
tree | 751bec601fb8152116b8e31e0f1f83d687a37d6f /drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | |
parent | dbbe68bb12b34f3e450da7a73c20e6fa1f85d63a (diff) | |
parent | 33af88138b859f515b365a074e0a014d7cdbf846 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
net/bluetooth/Makefile
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_eeprom.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c index 466d2bf02ea..4819747fa4c 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | |||
@@ -59,6 +59,8 @@ | |||
59 | 59 | ||
60 | #define CTL(_tpower, _flag) ((_tpower) | ((_flag) << 6)) | 60 | #define CTL(_tpower, _flag) ((_tpower) | ((_flag) << 6)) |
61 | 61 | ||
62 | #define EEPROM_DATA_LEN_9485 1088 | ||
63 | |||
62 | static int ar9003_hw_power_interpolate(int32_t x, | 64 | static int ar9003_hw_power_interpolate(int32_t x, |
63 | int32_t *px, int32_t *py, u_int16_t np); | 65 | int32_t *px, int32_t *py, u_int16_t np); |
64 | 66 | ||
@@ -3368,7 +3370,7 @@ found: | |||
3368 | "Found block at %x: code=%d ref=%d length=%d major=%d minor=%d\n", | 3370 | "Found block at %x: code=%d ref=%d length=%d major=%d minor=%d\n", |
3369 | cptr, code, reference, length, major, minor); | 3371 | cptr, code, reference, length, major, minor); |
3370 | if ((!AR_SREV_9485(ah) && length >= 1024) || | 3372 | if ((!AR_SREV_9485(ah) && length >= 1024) || |
3371 | (AR_SREV_9485(ah) && length >= (4 * 1024))) { | 3373 | (AR_SREV_9485(ah) && length > EEPROM_DATA_LEN_9485)) { |
3372 | ath_dbg(common, ATH_DBG_EEPROM, | 3374 | ath_dbg(common, ATH_DBG_EEPROM, |
3373 | "Skipping bad header\n"); | 3375 | "Skipping bad header\n"); |
3374 | cptr -= COMP_HDR_LEN; | 3376 | cptr -= COMP_HDR_LEN; |