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