summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ath/ath_hal/ah_eeprom_v14.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ah_eeprom_v14.c b/sys/dev/ath/ath_hal/ah_eeprom_v14.c
index 0f8a72a..fdddea1 100644
--- a/sys/dev/ath/ath_hal/ah_eeprom_v14.c
+++ b/sys/dev/ath/ath_hal/ah_eeprom_v14.c
@@ -84,8 +84,10 @@ v14EepromGet(struct ath_hal *ah, int param, void *val)
return IS_VERS(>=, AR5416_EEP_MINOR_VER_19) ?
pBase->txGainType : AR5416_EEP_TXGAIN_ORIG;
case AR_EEP_FSTCLK_5G:
- return IS_VERS(>, AR5416_EEP_MINOR_VER_16) ?
- pBase->fastClk5g : AH_TRUE;
+ /* 5ghz fastclock is always enabled for Merlin minor <= 16 */
+ if (IS_VERS(<=, AR5416_EEP_MINOR_VER_16))
+ return HAL_OK;
+ return pBase->fastClk5g ? HAL_OK : HAL_EIO;
case AR_EEP_OL_PWRCTRL:
HALASSERT(val == AH_NULL);
return pBase->openLoopPwrCntl ? HAL_OK : HAL_EIO;
OpenPOWER on IntegriCloud