iwlwifi: fix FAT channel config for 5000 series
authorReinette Chatre <reinette.chatre@intel.com>
Tue, 10 Feb 2009 23:19:04 +0000 (15:19 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Feb 2009 18:46:08 +0000 (13:46 -0500)
commita89d03c4230beb50756c98d2d1ba036c83da7680
tree34cc30f3840f55ccc12431bc0c2429691e3db643
parent24566f4a15e2626cfaf2854057b636ef40ee8481
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>
drivers/net/wireless/iwlwifi/iwl-3945.c
drivers/net/wireless/iwlwifi/iwl-eeprom.c
drivers/net/wireless/iwlwifi/iwl-eeprom.h