diff options
author | Samuel Ortiz <samuel.ortiz@intel.com> | 2009-01-23 16:45:15 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:35 -0500 |
commit | e6148917db2c223fa7edd3dfb64d99756a86b452 (patch) | |
tree | 814dc8d58d03d35e15904cc48d81c30f94dc07cf /drivers/net/wireless/iwlwifi/iwl-eeprom.c | |
parent | a8e74e2774cd1aecfef0460de07e6e178df89232 (diff) |
iwl3945: Use iwl-eeprom.c routines
By adding the eeprom ops to the 3945 code, we can now use the iwlcore eeprom
routines (defined in iwl-eeprom.c).
We also removed the heavy eeprom39 reference from iwl_priv and use the eeprom
pointer instead.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-eeprom.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-eeprom.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c index cebfb8fa5da1..eaa658f9e54c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c +++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c | |||
@@ -531,6 +531,13 @@ int iwl_init_channel_map(struct iwl_priv *priv) | |||
531 | } | 531 | } |
532 | } | 532 | } |
533 | 533 | ||
534 | /* Check if we do have FAT channels */ | ||
535 | if (priv->cfg->ops->lib->eeprom_ops.regulatory_bands[5] >= | ||
536 | priv->cfg->eeprom_size && | ||
537 | priv->cfg->ops->lib->eeprom_ops.regulatory_bands[6] >= | ||
538 | priv->cfg->eeprom_size) | ||
539 | return 0; | ||
540 | |||
534 | /* Two additional EEPROM bands for 2.4 and 5 GHz FAT channels */ | 541 | /* Two additional EEPROM bands for 2.4 and 5 GHz FAT channels */ |
535 | for (band = 6; band <= 7; band++) { | 542 | for (band = 6; band <= 7; band++) { |
536 | enum ieee80211_band ieeeband; | 543 | enum ieee80211_band ieeeband; |
@@ -582,6 +589,7 @@ void iwl_free_channel_map(struct iwl_priv *priv) | |||
582 | kfree(priv->channel_info); | 589 | kfree(priv->channel_info); |
583 | priv->channel_count = 0; | 590 | priv->channel_count = 0; |
584 | } | 591 | } |
592 | EXPORT_SYMBOL(iwl_free_channel_map); | ||
585 | 593 | ||
586 | /** | 594 | /** |
587 | * iwl_get_channel_info - Find driver's private channel info | 595 | * iwl_get_channel_info - Find driver's private channel info |