]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/net/wireless/ath/ath5k/eeprom.c
ath5k: enable EEPROM checksum check
[linux-beck.git] / drivers / net / wireless / ath / ath5k / eeprom.c
index 644962adda97306943857b0effbaad9ccfbd0608..791885262602412a6680d6980f714b516f3f229f 100644 (file)
@@ -97,6 +97,7 @@ ath5k_eeprom_init_header(struct ath5k_hw *ah)
        struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom;
        int ret;
        u16 val;
+       u32 cksum, offset;
 
        /*
         * Read values from EEPROM and store them in the capability structure
@@ -111,7 +112,6 @@ ath5k_eeprom_init_header(struct ath5k_hw *ah)
        if (ah->ah_ee_version < AR5K_EEPROM_VERSION_3_0)
                return 0;
 
-#ifdef notyet
        /*
         * Validate the checksum of the EEPROM date. There are some
         * devices with invalid EEPROMs.
@@ -124,7 +124,6 @@ ath5k_eeprom_init_header(struct ath5k_hw *ah)
                ATH5K_ERR(ah->ah_sc, "Invalid EEPROM checksum 0x%04x\n", cksum);
                return -EIO;
        }
-#endif
 
        AR5K_EEPROM_READ_HDR(AR5K_EEPROM_ANT_GAIN(ah->ah_ee_version),
            ee_ant_gain);