mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Move this magic check to only occur if no eeprom data is given.
Tested on: * AP99 (AR7241+AR9287)
This commit is contained in:
parent
e12a307eff
commit
222d73f11d
1 changed files with 6 additions and 6 deletions
|
|
@ -310,12 +310,12 @@ ath_hal_9287EepromAttach(struct ath_hal *ah)
|
|||
"%s Error reading Eeprom MAGIC\n", __func__);
|
||||
return HAL_EEREAD;
|
||||
}
|
||||
}
|
||||
HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s Eeprom Magic = 0x%x\n",
|
||||
__func__, magic);
|
||||
if (magic != AR5416_EEPROM_MAGIC) {
|
||||
HALDEBUG(ah, HAL_DEBUG_ANY, "Bad magic number\n");
|
||||
return HAL_EEMAGIC;
|
||||
HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s Eeprom Magic = 0x%x\n",
|
||||
__func__, magic);
|
||||
if (magic != AR5416_EEPROM_MAGIC) {
|
||||
HALDEBUG(ah, HAL_DEBUG_ANY, "Bad magic number\n");
|
||||
return HAL_EEMAGIC;
|
||||
}
|
||||
}
|
||||
|
||||
ee = ath_hal_malloc(sizeof(HAL_EEPROM_9287));
|
||||
|
|
|
|||
Loading…
Reference in a new issue