-- if (sum == 0 || sum == 0xffff * 3) {
-+
-+ if (!is_valid_ether_addr(ahp->ah_macaddr)) {
-+ DECLARE_MAC_BUF(macbuf);
-+
-+ DPRINTF(ah->ah_sc, ATH_DBG_EEPROM,
-+ "eeprom contains invalid mac address: %s\n",
-+ print_mac(macbuf, ahp->ah_macaddr));
-+
-+ random_ether_addr(ahp->ah_macaddr);
- DPRINTF(ah->ah_sc, ATH_DBG_EEPROM,
-- "mac address read failed: %pM\n",
-- ahp->ah_macaddr);