Fix a debug message which didn't quite get it right about eeprom version.

This commit is contained in:
Kevin Lo 2015-09-16 07:18:54 +00:00
parent f75281b8f2
commit 4bae831003
2 changed files with 2 additions and 2 deletions

View File

@ -3351,7 +3351,7 @@ rt2860_read_eeprom(struct rt2860_softc *sc, uint8_t macaddr[IEEE80211_ADDR_LEN])
/* read EEPROM version */
val = rt2860_srom_read(sc, RT2860_EEPROM_VERSION);
DPRINTF(("EEPROM rev=%d, FAE=%d\n", val & 0xff, val >> 8));
DPRINTF(("EEPROM rev=%d, FAE=%d\n", val >> 8, val & 0xff));
/* read MAC address */
val = rt2860_srom_read(sc, RT2860_EEPROM_MAC01);

View File

@ -1730,7 +1730,7 @@ run_read_eeprom(struct run_softc *sc)
/* read ROM version */
run_srom_read(sc, RT2860_EEPROM_VERSION, &val);
DPRINTF("EEPROM rev=%d, FAE=%d\n", val & 0xff, val >> 8);
DPRINTF("EEPROM rev=%d, FAE=%d\n", val >> 8, val & 0xff);
/* read MAC address */
run_srom_read(sc, RT2860_EEPROM_MAC01, &val);