aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-07-23 13:24:45 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-08 16:04:03 -0400
commitca9a46056908d3cade6957b3d5b2e698356b29fc (patch)
tree343619b1c45d1386d44688f577414623496e4fb6
parent5d7969bf2bce73fdb91bd53ad39b1f0ab43f5ce3 (diff)
iwlagn: bump firmware API for some devices
We're working on improvements for the firmware for some devices, and need to bump the API for those since they won't be backward compatible completely (the earlier patch reserving queue 10 for P2P). Bump the API version to 6 for those devices but don't warn users of version 5 yet. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-1000.c10
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-2000.c18
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-6000.c11
3 files changed, 30 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c
index 9e8e06aad508..ccdbed567171 100644
--- a/drivers/net/wireless/iwlwifi/iwl-1000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-1000.c
@@ -45,8 +45,12 @@
45#include "iwl-agn-hw.h" 45#include "iwl-agn-hw.h"
46 46
47/* Highest firmware API version supported */ 47/* Highest firmware API version supported */
48#define IWL1000_UCODE_API_MAX 5 48#define IWL1000_UCODE_API_MAX 6
49#define IWL100_UCODE_API_MAX 5 49#define IWL100_UCODE_API_MAX 6
50
51/* Oldest version we won't warn about */
52#define IWL1000_UCODE_API_OK 5
53#define IWL100_UCODE_API_OK 5
50 54
51/* Lowest firmware API version supported */ 55/* Lowest firmware API version supported */
52#define IWL1000_UCODE_API_MIN 1 56#define IWL1000_UCODE_API_MIN 1
@@ -205,6 +209,7 @@ static struct iwl_ht_params iwl1000_ht_params = {
205#define IWL_DEVICE_1000 \ 209#define IWL_DEVICE_1000 \
206 .fw_name_pre = IWL1000_FW_PRE, \ 210 .fw_name_pre = IWL1000_FW_PRE, \
207 .ucode_api_max = IWL1000_UCODE_API_MAX, \ 211 .ucode_api_max = IWL1000_UCODE_API_MAX, \
212 .ucode_api_ok = IWL1000_UCODE_API_OK, \
208 .ucode_api_min = IWL1000_UCODE_API_MIN, \ 213 .ucode_api_min = IWL1000_UCODE_API_MIN, \
209 .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \ 214 .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \
210 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \ 215 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \
@@ -226,6 +231,7 @@ struct iwl_cfg iwl1000_bg_cfg = {
226#define IWL_DEVICE_100 \ 231#define IWL_DEVICE_100 \
227 .fw_name_pre = IWL100_FW_PRE, \ 232 .fw_name_pre = IWL100_FW_PRE, \
228 .ucode_api_max = IWL100_UCODE_API_MAX, \ 233 .ucode_api_max = IWL100_UCODE_API_MAX, \
234 .ucode_api_ok = IWL100_UCODE_API_OK, \
229 .ucode_api_min = IWL100_UCODE_API_MIN, \ 235 .ucode_api_min = IWL100_UCODE_API_MIN, \
230 .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \ 236 .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \
231 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \ 237 .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c
index 3ce8106426c0..8a2cfde46d5a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-2000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-2000.c
@@ -46,10 +46,16 @@
46#include "iwl-6000-hw.h" 46#include "iwl-6000-hw.h"
47 47
48/* Highest firmware API version supported */ 48/* Highest firmware API version supported */
49#define IWL2030_UCODE_API_MAX 5 49#define IWL2030_UCODE_API_MAX 6
50#define IWL2000_UCODE_API_MAX 5 50#define IWL2000_UCODE_API_MAX 6
51#define IWL105_UCODE_API_MAX 5 51#define IWL105_UCODE_API_MAX 6
52#define IWL135_UCODE_API_MAX 5 52#define IWL135_UCODE_API_MAX 6
53
54/* Oldest version we won't warn about */
55#define IWL2030_UCODE_API_OK 5
56#define IWL2000_UCODE_API_OK 5
57#define IWL105_UCODE_API_OK 5
58#define IWL135_UCODE_API_OK 5
53 59
54/* Lowest firmware API version supported */ 60/* Lowest firmware API version supported */
55#define IWL2030_UCODE_API_MIN 5 61#define IWL2030_UCODE_API_MIN 5
@@ -254,6 +260,7 @@ static struct iwl_bt_params iwl2030_bt_params = {
254#define IWL_DEVICE_2000 \ 260#define IWL_DEVICE_2000 \
255 .fw_name_pre = IWL2000_FW_PRE, \ 261 .fw_name_pre = IWL2000_FW_PRE, \
256 .ucode_api_max = IWL2000_UCODE_API_MAX, \ 262 .ucode_api_max = IWL2000_UCODE_API_MAX, \
263 .ucode_api_ok = IWL2000_UCODE_API_OK, \
257 .ucode_api_min = IWL2000_UCODE_API_MIN, \ 264 .ucode_api_min = IWL2000_UCODE_API_MIN, \
258 .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ 265 .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \
259 .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ 266 .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \
@@ -278,6 +285,7 @@ struct iwl_cfg iwl2000_2bg_cfg = {
278#define IWL_DEVICE_2030 \ 285#define IWL_DEVICE_2030 \
279 .fw_name_pre = IWL2030_FW_PRE, \ 286 .fw_name_pre = IWL2030_FW_PRE, \
280 .ucode_api_max = IWL2030_UCODE_API_MAX, \ 287 .ucode_api_max = IWL2030_UCODE_API_MAX, \
288 .ucode_api_ok = IWL2030_UCODE_API_OK, \
281 .ucode_api_min = IWL2030_UCODE_API_MIN, \ 289 .ucode_api_min = IWL2030_UCODE_API_MIN, \
282 .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ 290 .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \
283 .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ 291 .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \
@@ -304,6 +312,7 @@ struct iwl_cfg iwl2030_2bg_cfg = {
304#define IWL_DEVICE_105 \ 312#define IWL_DEVICE_105 \
305 .fw_name_pre = IWL105_FW_PRE, \ 313 .fw_name_pre = IWL105_FW_PRE, \
306 .ucode_api_max = IWL105_UCODE_API_MAX, \ 314 .ucode_api_max = IWL105_UCODE_API_MAX, \
315 .ucode_api_ok = IWL105_UCODE_API_OK, \
307 .ucode_api_min = IWL105_UCODE_API_MIN, \ 316 .ucode_api_min = IWL105_UCODE_API_MIN, \
308 .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ 317 .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \
309 .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ 318 .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \
@@ -330,6 +339,7 @@ struct iwl_cfg iwl105_bgn_cfg = {
330#define IWL_DEVICE_135 \ 339#define IWL_DEVICE_135 \
331 .fw_name_pre = IWL135_FW_PRE, \ 340 .fw_name_pre = IWL135_FW_PRE, \
332 .ucode_api_max = IWL135_UCODE_API_MAX, \ 341 .ucode_api_max = IWL135_UCODE_API_MAX, \
342 .ucode_api_ok = IWL135_UCODE_API_OK, \
333 .ucode_api_min = IWL135_UCODE_API_MIN, \ 343 .ucode_api_min = IWL135_UCODE_API_MIN, \
334 .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \ 344 .eeprom_ver = EEPROM_2000_EEPROM_VERSION, \
335 .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \ 345 .eeprom_calib_ver = EEPROM_2000_TX_POWER_VERSION, \
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
index fcaffa1157d3..b382a44c5bd5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
@@ -49,7 +49,10 @@
49/* Highest firmware API version supported */ 49/* Highest firmware API version supported */
50#define IWL6000_UCODE_API_MAX 4 50#define IWL6000_UCODE_API_MAX 4
51#define IWL6050_UCODE_API_MAX 5 51#define IWL6050_UCODE_API_MAX 5
52#define IWL6000G2_UCODE_API_MAX 5 52#define IWL6000G2_UCODE_API_MAX 6
53
54/* Oldest version we won't warn about */
55#define IWL6000G2_UCODE_API_OK 5
53 56
54/* Lowest firmware API version supported */ 57/* Lowest firmware API version supported */
55#define IWL6000_UCODE_API_MIN 4 58#define IWL6000_UCODE_API_MIN 4
@@ -364,8 +367,9 @@ static struct iwl_bt_params iwl6000_bt_params = {
364}; 367};
365 368
366#define IWL_DEVICE_6005 \ 369#define IWL_DEVICE_6005 \
367 .fw_name_pre = IWL6005_FW_PRE, \ 370 .fw_name_pre = IWL6005_FW_PRE, \
368 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ 371 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
372 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
369 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ 373 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
370 .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \ 374 .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \
371 .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \ 375 .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
@@ -392,8 +396,9 @@ struct iwl_cfg iwl6005_2bg_cfg = {
392}; 396};
393 397
394#define IWL_DEVICE_6030 \ 398#define IWL_DEVICE_6030 \
395 .fw_name_pre = IWL6030_FW_PRE, \ 399 .fw_name_pre = IWL6030_FW_PRE, \
396 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ 400 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
401 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
397 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ 402 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
398 .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \ 403 .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
399 .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ 404 .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \