summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2011-03-06 00:30:43 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2011-03-06 00:30:43 +0000
commit8823714276ffde782fb5b43e6859280500b003a5 (patch)
treedee9ab22711357b5c9f77d4f218a18e8be8bfb40
parent2348f1110e08b0f9bd4436c9b46e67b839c0c6bf (diff)
Notes
-rw-r--r--sys/dev/ath/ath_hal/ah_eeprom.h1
-rw-r--r--sys/dev/ath/ath_hal/ah_eeprom_v14.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah_eeprom.h b/sys/dev/ath/ath_hal/ah_eeprom.h
index f7b87b222fc77..740a4c6b1ac17 100644
--- a/sys/dev/ath/ath_hal/ah_eeprom.h
+++ b/sys/dev/ath/ath_hal/ah_eeprom.h
@@ -100,6 +100,7 @@ enum {
AR_EEP_ANTGAINMAX_5, /* int8_t* */
AR_EEP_ANTGAINMAX_2, /* int8_t* */
AR_EEP_WRITEPROTECT, /* use ath_hal_eepromGetFlag */
+ AR_EEP_PWR_TABLE_OFFSET /* int8_t* */
};
typedef struct {
diff --git a/sys/dev/ath/ath_hal/ah_eeprom_v14.c b/sys/dev/ath/ath_hal/ah_eeprom_v14.c
index 8bb043a86434c..bfa9714ca0e15 100644
--- a/sys/dev/ath/ath_hal/ah_eeprom_v14.c
+++ b/sys/dev/ath/ath_hal/ah_eeprom_v14.c
@@ -126,6 +126,13 @@ v14EepromGet(struct ath_hal *ah, int param, void *val)
case AR_EEP_ANTGAINMAX_5:
*(int8_t *) val = ee->ee_antennaGainMax[0];
return HAL_OK;
+ case AR_EEP_PWR_TABLE_OFFSET:
+ if (IS_VERS(>=, AR5416_EEP_MINOR_VER_21))
+ *(int8_t *) val = pBase->pwr_table_offset;
+ else
+ *(int8_t *) val = AR5416_PWR_TABLE_OFFSET_DB;
+ return HAL_OK;
+
default:
HALASSERT(0);
return HAL_EINVAL;