diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-04-21 18:41:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-07 15:02:15 -0400 |
commit | 073d3f5f1b3b6512eb82a3d40c84dedb14dc6f73 (patch) | |
tree | 49ef76bf1d863a231b0a672c2c34fb44f63fad9c /drivers/net/wireless/iwlwifi/iwl-4965.h | |
parent | 5da4b55f78fb2ed40926b775d4f7c791594ecbd7 (diff) |
iwlwifi: changing EEPROM layout handling
This patch
1. changes the current EEPROM handling through a single HW struct
layout representation, to more general approach, treating the EEPROM
image as a flat bytes array, handling this image through ops functions
and offsets.
2. Eeprom is dynamically allocated accroding HW type
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h index 0550d12e5c60..35a67cdf707c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965.h | |||
@@ -200,9 +200,9 @@ enum { | |||
200 | struct iwl_channel_info { | 200 | struct iwl_channel_info { |
201 | struct iwl4965_channel_tgd_info tgd; | 201 | struct iwl4965_channel_tgd_info tgd; |
202 | struct iwl4965_channel_tgh_info tgh; | 202 | struct iwl4965_channel_tgh_info tgh; |
203 | struct iwl4965_eeprom_channel eeprom; /* EEPROM regulatory limit */ | 203 | struct iwl_eeprom_channel eeprom; /* EEPROM regulatory limit */ |
204 | struct iwl4965_eeprom_channel fat_eeprom; /* EEPROM regulatory limit for | 204 | struct iwl_eeprom_channel fat_eeprom; /* EEPROM regulatory limit for |
205 | * FAT channel */ | 205 | * FAT channel */ |
206 | 206 | ||
207 | u8 channel; /* channel number */ | 207 | u8 channel; /* channel number */ |
208 | u8 flags; /* flags copied from EEPROM */ | 208 | u8 flags; /* flags copied from EEPROM */ |
@@ -1122,7 +1122,8 @@ struct iwl_priv { | |||
1122 | struct list_head ibss_mac_hash[IWL_IBSS_MAC_HASH_SIZE]; | 1122 | struct list_head ibss_mac_hash[IWL_IBSS_MAC_HASH_SIZE]; |
1123 | 1123 | ||
1124 | /* eeprom */ | 1124 | /* eeprom */ |
1125 | struct iwl4965_eeprom eeprom; | 1125 | u8 *eeprom; |
1126 | struct iwl_eeprom_calib_info *calib_info; | ||
1126 | 1127 | ||
1127 | enum ieee80211_if_types iw_mode; | 1128 | enum ieee80211_if_types iw_mode; |
1128 | 1129 | ||