iwlagn: implement layout-agnostic EEPROM reading
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 9 Dec 2010 18:09:14 +0000 (10:09 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 9 Dec 2010 18:09:14 +0000 (10:09 -0800)
commit6942fec92d3d1b6918425730de31b4c6d0d5c196
tree365199bb0becffdd6127e8f1207a92739d0250dc
parentcbf68a668d0e41527572c762824a1b6a9225d33f
iwlagn: implement layout-agnostic EEPROM reading

From: Johannes Berg <johannes.berg@intel.com>

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