aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2011-07-08 11:46:21 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-11 15:02:06 -0400
commit0a49b2c2a6bf2f774675e472afe68951900596fb (patch)
tree504838c20be456539934c87ad9500be5e4085793 /drivers/net/wireless
parent909fc3cba374560ada33a7dc3ab242d0f1d2a135 (diff)
iwlagn: use bt handler for 2030 and 135 series devices
For bt combo devices, need to use bt enabled handlers and functions Reported-by: Don Fry <donald.h.fry@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-2000.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c
index b2b054f6cd6..21b68b2839c 100644
--- a/drivers/net/wireless/iwlwifi/iwl-2000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-2000.c
@@ -168,6 +168,27 @@ static int iwl2000_hw_set_hw_params(struct iwl_priv *priv)
168static struct iwl_lib_ops iwl2000_lib = { 168static struct iwl_lib_ops iwl2000_lib = {
169 .set_hw_params = iwl2000_hw_set_hw_params, 169 .set_hw_params = iwl2000_hw_set_hw_params,
170 .rx_handler_setup = iwlagn_rx_handler_setup, 170 .rx_handler_setup = iwlagn_rx_handler_setup,
171 .setup_deferred_work = iwlagn_setup_deferred_work,
172 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
173 .nic_config = iwl2000_nic_config,
174 .eeprom_ops = {
175 .regulatory_bands = {
176 EEPROM_REG_BAND_1_CHANNELS,
177 EEPROM_REG_BAND_2_CHANNELS,
178 EEPROM_REG_BAND_3_CHANNELS,
179 EEPROM_REG_BAND_4_CHANNELS,
180 EEPROM_REG_BAND_5_CHANNELS,
181 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
182 EEPROM_REGULATORY_BAND_NO_HT40,
183 },
184 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
185 },
186 .temperature = iwlagn_temperature,
187};
188
189static struct iwl_lib_ops iwl2030_lib = {
190 .set_hw_params = iwl2000_hw_set_hw_params,
191 .rx_handler_setup = iwlagn_bt_rx_handler_setup,
171 .setup_deferred_work = iwlagn_bt_setup_deferred_work, 192 .setup_deferred_work = iwlagn_bt_setup_deferred_work,
172 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work, 193 .cancel_deferred_work = iwlagn_bt_cancel_deferred_work,
173 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr, 194 .is_valid_rtc_data_addr = iwlagn_hw_valid_rtc_data_addr,
@@ -193,7 +214,7 @@ static const struct iwl_ops iwl2000_ops = {
193}; 214};
194 215
195static const struct iwl_ops iwl2030_ops = { 216static const struct iwl_ops iwl2030_ops = {
196 .lib = &iwl2000_lib, 217 .lib = &iwl2030_lib,
197 .utils = &iwlagn_hcmd_utils, 218 .utils = &iwlagn_hcmd_utils,
198}; 219};
199 220
@@ -203,7 +224,7 @@ static const struct iwl_ops iwl105_ops = {
203}; 224};
204 225
205static const struct iwl_ops iwl135_ops = { 226static const struct iwl_ops iwl135_ops = {
206 .lib = &iwl2000_lib, 227 .lib = &iwl2030_lib,
207 .utils = &iwlagn_hcmd_utils, 228 .utils = &iwlagn_hcmd_utils,
208}; 229};
209 230