iwlagn: implement layout-agnostic EEPROM reading
authorJohannes Berg <johannes.berg@intel.com>
Thu, 9 Dec 2010 17:30:14 +0000 (09:30 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 13 Dec 2010 23:52:11 +0000 (15:52 -0800)
commit8d6748ca73a0caffed4304a47a9cb4cd0aba361e
tree33d2a527a6fae850d199cb03d65455d3c8409d68
parente7362a0069f8448bb346d65f07d98b319f243e30
iwlagn: implement layout-agnostic EEPROM reading

The current EEPROM reading code has some layout
assumptions that now turned out to be false with
some newer versions of the EEPROM. Luckily, we
can avoid all such assumptions by using data in
the EEPROM itself, so implement using that.

However, for risk mitigation purposes, keep the
old reading code for current hardware for now.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-1000.c
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-agn-eeprom.c
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-eeprom.h