diff options
author | Reinette Chatre <reinette.chatre@intel.com> | 2009-02-10 18:19:04 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 13:46:08 -0500 |
commit | a89d03c4230beb50756c98d2d1ba036c83da7680 (patch) | |
tree | 34cc30f3840f55ccc12431bc0c2429691e3db643 /drivers/net/wireless/iwlwifi/iwl-eeprom.c | |
parent | 24566f4a15e2626cfaf2854057b636ef40ee8481 (diff) |
iwlwifi: fix FAT channel config for 5000 series
The test to find out if we have FAT channels do not consider that
the value of regulatory_bands for the 5000 series is larger than its
eeprom size. Using the eeprom size is strange in itself.
Use a new EEPROM_REGULATORY_BAND_NO_FAT to indicate no FAT support
and test for that explicitly.
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Acked-by: Samuel Ortiz <samuel.ortiz@intel.com>
Tested-by: Johannes Berg <johannes@sipsolutions.net>
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, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c index d1d1d9bcfeae..75517d05df08 100644 --- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c +++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c | |||
@@ -532,10 +532,10 @@ int iwl_init_channel_map(struct iwl_priv *priv) | |||
532 | } | 532 | } |
533 | 533 | ||
534 | /* Check if we do have FAT channels */ | 534 | /* Check if we do have FAT channels */ |
535 | if (priv->cfg->ops->lib->eeprom_ops.regulatory_bands[5] >= | 535 | if (priv->cfg->ops->lib->eeprom_ops.regulatory_bands[5] == |
536 | priv->cfg->eeprom_size && | 536 | EEPROM_REGULATORY_BAND_NO_FAT && |
537 | priv->cfg->ops->lib->eeprom_ops.regulatory_bands[6] >= | 537 | priv->cfg->ops->lib->eeprom_ops.regulatory_bands[6] == |
538 | priv->cfg->eeprom_size) | 538 | EEPROM_REGULATORY_BAND_NO_FAT) |
539 | return 0; | 539 | return 0; |
540 | 540 | ||
541 | /* 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 */ |