diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 44 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.h | 2 |
3 files changed, 56 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 5866ad868c32..43ec8988feb0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -53,11 +53,13 @@ | |||
53 | #define IWL6000_UCODE_API_MAX 4 | 53 | #define IWL6000_UCODE_API_MAX 4 |
54 | #define IWL6050_UCODE_API_MAX 5 | 54 | #define IWL6050_UCODE_API_MAX 5 |
55 | #define IWL6000G2_UCODE_API_MAX 5 | 55 | #define IWL6000G2_UCODE_API_MAX 5 |
56 | #define IWL130_UCODE_API_MAX 5 | ||
56 | 57 | ||
57 | /* Lowest firmware API version supported */ | 58 | /* Lowest firmware API version supported */ |
58 | #define IWL6000_UCODE_API_MIN 4 | 59 | #define IWL6000_UCODE_API_MIN 4 |
59 | #define IWL6050_UCODE_API_MIN 4 | 60 | #define IWL6050_UCODE_API_MIN 4 |
60 | #define IWL6000G2_UCODE_API_MIN 4 | 61 | #define IWL6000G2_UCODE_API_MIN 4 |
62 | #define IWL130_UCODE_API_MIN 5 | ||
61 | 63 | ||
62 | #define IWL6000_FW_PRE "iwlwifi-6000-" | 64 | #define IWL6000_FW_PRE "iwlwifi-6000-" |
63 | #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode" | 65 | #define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode" |
@@ -75,6 +77,9 @@ | |||
75 | #define _IWL6000G2B_MODULE_FIRMWARE(api) IWL6000G2B_FW_PRE #api ".ucode" | 77 | #define _IWL6000G2B_MODULE_FIRMWARE(api) IWL6000G2B_FW_PRE #api ".ucode" |
76 | #define IWL6000G2B_MODULE_FIRMWARE(api) _IWL6000G2B_MODULE_FIRMWARE(api) | 78 | #define IWL6000G2B_MODULE_FIRMWARE(api) _IWL6000G2B_MODULE_FIRMWARE(api) |
77 | 79 | ||
80 | #define IWL130_FW_PRE "iwlwifi-130-" | ||
81 | #define _IWL100_MODULE_FIRMWARE(api) IWL130_FW_PRE #api ".ucode" | ||
82 | #define IWL100_MODULE_FIRMWARE(api) _IWL130_MODULE_FIRMWARE(api) | ||
78 | 83 | ||
79 | static void iwl6000_set_ct_threshold(struct iwl_priv *priv) | 84 | static void iwl6000_set_ct_threshold(struct iwl_priv *priv) |
80 | { | 85 | { |
@@ -810,6 +815,45 @@ struct iwl_cfg iwl6000_3agn_cfg = { | |||
810 | .need_dc_calib = true, | 815 | .need_dc_calib = true, |
811 | }; | 816 | }; |
812 | 817 | ||
818 | struct iwl_cfg iwl130_bgn_cfg = { | ||
819 | .name = "Intel(R) 130 Series 1x1 BGN", | ||
820 | .fw_name_pre = IWL6000G2B_FW_PRE, | ||
821 | .ucode_api_max = IWL130_UCODE_API_MAX, | ||
822 | .ucode_api_min = IWL130_UCODE_API_MIN, | ||
823 | .sku = IWL_SKU_G|IWL_SKU_N, | ||
824 | .valid_tx_ant = ANT_A, | ||
825 | .valid_rx_ant = ANT_A, | ||
826 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | ||
827 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | ||
828 | .ops = &iwl6000g2b_ops, | ||
829 | .mod_params = &iwlagn_mod_params, | ||
830 | .base_params = &iwl6000_base_params, | ||
831 | .bt_params = &iwl6000_bt_params, | ||
832 | .ht_params = &iwl6000_ht_params, | ||
833 | .need_dc_calib = true, | ||
834 | /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */ | ||
835 | .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A, | ||
836 | }; | ||
837 | |||
838 | struct iwl_cfg iwl130_bg_cfg = { | ||
839 | .name = "Intel(R) 130 Series 1x2 BG", | ||
840 | .fw_name_pre = IWL6000G2B_FW_PRE, | ||
841 | .ucode_api_max = IWL130_UCODE_API_MAX, | ||
842 | .ucode_api_min = IWL130_UCODE_API_MIN, | ||
843 | .sku = IWL_SKU_G, | ||
844 | .valid_tx_ant = ANT_A, | ||
845 | .valid_rx_ant = ANT_A, | ||
846 | .eeprom_ver = EEPROM_6000G2_EEPROM_VERSION, | ||
847 | .eeprom_calib_ver = EEPROM_6000G2_TX_POWER_VERSION, | ||
848 | .ops = &iwl6000g2b_ops, | ||
849 | .mod_params = &iwlagn_mod_params, | ||
850 | .base_params = &iwl6000_base_params, | ||
851 | .bt_params = &iwl6000_bt_params, | ||
852 | .need_dc_calib = true, | ||
853 | /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */ | ||
854 | .scan_tx_antennas[IEEE80211_BAND_2GHZ] = ANT_A, | ||
855 | }; | ||
856 | |||
813 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); | 857 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); |
814 | MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX)); | 858 | MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX)); |
815 | MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); | 859 | MODULE_FIRMWARE(IWL6000G2A_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX)); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 080121d3a3ae..a6dce616ee3c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -4822,11 +4822,21 @@ static DEFINE_PCI_DEVICE_TABLE(iwl_hw_card_ids) = { | |||
4822 | {IWL_PCI_DEVICE(0x0084, 0x1216, iwl1000_bg_cfg)}, | 4822 | {IWL_PCI_DEVICE(0x0084, 0x1216, iwl1000_bg_cfg)}, |
4823 | {IWL_PCI_DEVICE(0x0084, 0x1316, iwl1000_bg_cfg)}, | 4823 | {IWL_PCI_DEVICE(0x0084, 0x1316, iwl1000_bg_cfg)}, |
4824 | 4824 | ||
4825 | /* 100 Series WiFi */ | ||
4825 | {IWL_PCI_DEVICE(0x08AE, 0x1005, iwl100_bgn_cfg)}, | 4826 | {IWL_PCI_DEVICE(0x08AE, 0x1005, iwl100_bgn_cfg)}, |
4826 | {IWL_PCI_DEVICE(0x08AF, 0x1015, iwl100_bgn_cfg)}, | 4827 | {IWL_PCI_DEVICE(0x08AF, 0x1015, iwl100_bgn_cfg)}, |
4827 | {IWL_PCI_DEVICE(0x08AE, 0x1025, iwl100_bgn_cfg)}, | 4828 | {IWL_PCI_DEVICE(0x08AE, 0x1025, iwl100_bgn_cfg)}, |
4828 | {IWL_PCI_DEVICE(0x08AE, 0x1007, iwl100_bg_cfg)}, | 4829 | {IWL_PCI_DEVICE(0x08AE, 0x1007, iwl100_bg_cfg)}, |
4829 | {IWL_PCI_DEVICE(0x08AE, 0x1017, iwl100_bg_cfg)}, | 4830 | {IWL_PCI_DEVICE(0x08AE, 0x1017, iwl100_bg_cfg)}, |
4831 | |||
4832 | /* 130 Series WiFi */ | ||
4833 | {IWL_PCI_DEVICE(0x0896, 0x5005, iwl130_bgn_cfg)}, | ||
4834 | {IWL_PCI_DEVICE(0x0896, 0x5007, iwl130_bg_cfg)}, | ||
4835 | {IWL_PCI_DEVICE(0x0897, 0x5015, iwl130_bgn_cfg)}, | ||
4836 | {IWL_PCI_DEVICE(0x0897, 0x5017, iwl130_bg_cfg)}, | ||
4837 | {IWL_PCI_DEVICE(0x0896, 0x5025, iwl130_bgn_cfg)}, | ||
4838 | {IWL_PCI_DEVICE(0x0896, 0x5027, iwl130_bg_cfg)}, | ||
4839 | |||
4830 | #endif /* CONFIG_IWL5000 */ | 4840 | #endif /* CONFIG_IWL5000 */ |
4831 | 4841 | ||
4832 | {0} | 4842 | {0} |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.h b/drivers/net/wireless/iwlwifi/iwl-agn.h index d5dc824ebbfb..eb3812a35862 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.h +++ b/drivers/net/wireless/iwlwifi/iwl-agn.h | |||
@@ -94,6 +94,8 @@ extern struct iwl_cfg iwl1000_bgn_cfg; | |||
94 | extern struct iwl_cfg iwl1000_bg_cfg; | 94 | extern struct iwl_cfg iwl1000_bg_cfg; |
95 | extern struct iwl_cfg iwl100_bgn_cfg; | 95 | extern struct iwl_cfg iwl100_bgn_cfg; |
96 | extern struct iwl_cfg iwl100_bg_cfg; | 96 | extern struct iwl_cfg iwl100_bg_cfg; |
97 | extern struct iwl_cfg iwl130_bgn_cfg; | ||
98 | extern struct iwl_cfg iwl130_bg_cfg; | ||
97 | 99 | ||
98 | extern struct iwl_mod_params iwlagn_mod_params; | 100 | extern struct iwl_mod_params iwlagn_mod_params; |
99 | extern struct iwl_hcmd_ops iwlagn_hcmd; | 101 | extern struct iwl_hcmd_ops iwlagn_hcmd; |