diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 93d3df87fdaa..87c7bb0d5044 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -48,12 +48,15 @@ | |||
48 | static int iwl4965_send_tx_power(struct iwl_priv *priv); | 48 | static int iwl4965_send_tx_power(struct iwl_priv *priv); |
49 | static int iwl4965_hw_get_temperature(const struct iwl_priv *priv); | 49 | static int iwl4965_hw_get_temperature(const struct iwl_priv *priv); |
50 | 50 | ||
51 | /* Change firmware file name, using "-" and incrementing number, | 51 | /* Highest firmware API version supported */ |
52 | * *only* when uCode interface or architecture changes so that it | 52 | #define IWL4965_UCODE_API_MAX 2 |
53 | * is not compatible with earlier drivers. | 53 | |
54 | * This number will also appear in << 8 position of 1st dword of uCode file */ | 54 | /* Lowest firmware API version supported */ |
55 | #define IWL4965_UCODE_API "-2" | 55 | #define IWL4965_UCODE_API_MIN 2 |
56 | #define IWL4965_MODULE_FIRMWARE "iwlwifi-4965" IWL4965_UCODE_API ".ucode" | 56 | |
57 | #define IWL4965_FW_PRE "iwlwifi-4965-" | ||
58 | #define _IWL4965_MODULE_FIRMWARE(api) IWL4965_FW_PRE #api ".ucode" | ||
59 | #define IWL4965_MODULE_FIRMWARE(api) _IWL4965_MODULE_FIRMWARE(api) | ||
57 | 60 | ||
58 | 61 | ||
59 | /* module parameters */ | 62 | /* module parameters */ |
@@ -2336,7 +2339,9 @@ static struct iwl_ops iwl4965_ops = { | |||
2336 | 2339 | ||
2337 | struct iwl_cfg iwl4965_agn_cfg = { | 2340 | struct iwl_cfg iwl4965_agn_cfg = { |
2338 | .name = "4965AGN", | 2341 | .name = "4965AGN", |
2339 | .fw_name = IWL4965_MODULE_FIRMWARE, | 2342 | .fw_name_pre = IWL4965_FW_PRE, |
2343 | .ucode_api_max = IWL4965_UCODE_API_MAX, | ||
2344 | .ucode_api_min = IWL4965_UCODE_API_MIN, | ||
2340 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 2345 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
2341 | .eeprom_size = IWL4965_EEPROM_IMG_SIZE, | 2346 | .eeprom_size = IWL4965_EEPROM_IMG_SIZE, |
2342 | .eeprom_ver = EEPROM_4965_EEPROM_VERSION, | 2347 | .eeprom_ver = EEPROM_4965_EEPROM_VERSION, |
@@ -2346,7 +2351,7 @@ struct iwl_cfg iwl4965_agn_cfg = { | |||
2346 | }; | 2351 | }; |
2347 | 2352 | ||
2348 | /* Module firmware */ | 2353 | /* Module firmware */ |
2349 | MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE); | 2354 | MODULE_FIRMWARE(IWL4965_MODULE_FIRMWARE(IWL4965_UCODE_API_MAX)); |
2350 | 2355 | ||
2351 | module_param_named(antenna, iwl4965_mod_params.antenna, int, 0444); | 2356 | module_param_named(antenna, iwl4965_mod_params.antenna, int, 0444); |
2352 | MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); | 2357 | MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); |