summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0158-iwlagn-allow-up-to-uCode-API-6-for-6000-devices.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0158-iwlagn-allow-up-to-uCode-API-6-for-6000-devices.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0158-iwlagn-allow-up-to-uCode-API-6-for-6000-devices.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0158-iwlagn-allow-up-to-uCode-API-6-for-6000-devices.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0158-iwlagn-allow-up-to-uCode-API-6-for-6000-devices.patch
new file mode 100644
index 00000000..7e272347
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0158-iwlagn-allow-up-to-uCode-API-6-for-6000-devices.patch
@@ -0,0 +1,64 @@
1From cad1b4d0f128eb46af3732795f91e3aba5ea4fbb Mon Sep 17 00:00:00 2001
2From: Johannes Berg <johannes.berg@intel.com>
3Date: Fri, 4 Nov 2011 07:22:37 -0700
4Subject: [PATCH 158/165] iwlagn: allow up to uCode API 6 for 6000 devices
5
6commit b914811524fbe9e91fe50845f5d7bd4316b8a6ee upstream.
7
8Since the uCode hasn't been released (yet?),
9warn only if using older than API 4, but load
10anything up to API 6.
11
12Signed-off-by: Johannes Berg <johannes.berg@intel.com>
13Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
14Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
15---
16 drivers/net/wireless/iwlwifi/iwl-6000.c | 7 +++++--
17 1 files changed, 5 insertions(+), 2 deletions(-)
18
19diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
20index c840c78..ae3ea32 100644
21--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
22+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
23@@ -46,11 +46,12 @@
24 #include "iwl-cfg.h"
25
26 /* Highest firmware API version supported */
27-#define IWL6000_UCODE_API_MAX 4
28+#define IWL6000_UCODE_API_MAX 6
29 #define IWL6050_UCODE_API_MAX 5
30 #define IWL6000G2_UCODE_API_MAX 6
31
32 /* Oldest version we won't warn about */
33+#define IWL6000_UCODE_API_OK 4
34 #define IWL6000G2_UCODE_API_OK 5
35
36 /* Lowest firmware API version supported */
37@@ -479,6 +480,7 @@ struct iwl_cfg iwl130_bg_cfg = {
38 #define IWL_DEVICE_6000i \
39 .fw_name_pre = IWL6000_FW_PRE, \
40 .ucode_api_max = IWL6000_UCODE_API_MAX, \
41+ .ucode_api_ok = IWL6000_UCODE_API_OK, \
42 .ucode_api_min = IWL6000_UCODE_API_MIN, \
43 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
44 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
45@@ -559,6 +561,7 @@ struct iwl_cfg iwl6000_3agn_cfg = {
46 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
47 .fw_name_pre = IWL6000_FW_PRE,
48 .ucode_api_max = IWL6000_UCODE_API_MAX,
49+ .ucode_api_ok = IWL6000_UCODE_API_OK,
50 .ucode_api_min = IWL6000_UCODE_API_MIN,
51 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
52 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,
53@@ -569,7 +572,7 @@ struct iwl_cfg iwl6000_3agn_cfg = {
54 .led_mode = IWL_LED_BLINK,
55 };
56
57-MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
58+MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_OK));
59 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
60 MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
61 MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
62--
631.7.7.6
64