diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-6000.c')
| -rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 37 | 
1 files changed, 5 insertions, 32 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 905eb57f7ca..6045457cc72 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c @@ -46,7 +46,6 @@  #include "iwl-helpers.h"  #include "iwl-agn-hw.h"  #include "iwl-6000-hw.h" -#include "iwl-agn-debugfs.h"  /* Highest firmware API version supported */  #define IWL6000_UCODE_API_MAX 4 @@ -80,7 +79,7 @@ static void iwl6000_set_ct_threshold(struct iwl_priv *priv)  static void iwl6050_additional_nic_config(struct iwl_priv *priv)  {  	/* Indicate calibration version to uCode. */ -	if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6) +	if (iwlagn_eeprom_calib_version(priv) >= 6)  		iwl_set_bit(priv, CSR_GP_DRIVER_REG,  				CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);  } @@ -88,7 +87,7 @@ static void iwl6050_additional_nic_config(struct iwl_priv *priv)  static void iwl6150_additional_nic_config(struct iwl_priv *priv)  {  	/* Indicate calibration version to uCode. */ -	if (priv->cfg->ops->lib->eeprom_ops.calib_version(priv) >= 6) +	if (iwlagn_eeprom_calib_version(priv) >= 6)  		iwl_set_bit(priv, CSR_GP_DRIVER_REG,  				CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6);  	iwl_set_bit(priv, CSR_GP_DRIVER_REG, @@ -154,10 +153,10 @@ static struct iwl_sensitivity_ranges iwl6000_sensitivity = {  static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)  { -	if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && -	    priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) +	if (iwlagn_mod_params.num_of_queues >= IWL_MIN_NUM_QUEUES && +	    iwlagn_mod_params.num_of_queues <= IWLAGN_NUM_QUEUES)  		priv->cfg->base_params->num_of_queues = -			priv->cfg->mod_params->num_of_queues; +			iwlagn_mod_params.num_of_queues;  	priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues;  	priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; @@ -305,22 +304,12 @@ static struct iwl_lib_ops iwl6000_lib = {  			EEPROM_6000_REG_BAND_24_HT40_CHANNELS,  			EEPROM_REG_BAND_52_HT40_CHANNELS  		}, -		.acquire_semaphore = iwlcore_eeprom_acquire_semaphore, -		.release_semaphore = iwlcore_eeprom_release_semaphore, -		.calib_version	= iwlagn_eeprom_calib_version,  		.query_addr = iwlagn_eeprom_query_addr,  		.update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,  	},  	.temp_ops = {  		.temperature = iwlagn_temperature,  	 }, -	.debugfs_ops = { -		.rx_stats_read = iwl_ucode_rx_stats_read, -		.tx_stats_read = iwl_ucode_tx_stats_read, -		.general_stats_read = iwl_ucode_general_stats_read, -		.bt_stats_read = iwl_ucode_bt_stats_read, -		.reply_tx_error = iwl_reply_tx_error_read, -	},  	.txfifo_flush = iwlagn_txfifo_flush,  	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,  }; @@ -354,22 +343,12 @@ static struct iwl_lib_ops iwl6030_lib = {  			EEPROM_6000_REG_BAND_24_HT40_CHANNELS,  			EEPROM_REG_BAND_52_HT40_CHANNELS  		}, -		.acquire_semaphore = iwlcore_eeprom_acquire_semaphore, -		.release_semaphore = iwlcore_eeprom_release_semaphore, -		.calib_version	= iwlagn_eeprom_calib_version,  		.query_addr = iwlagn_eeprom_query_addr,  		.update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,  	},  	.temp_ops = {  		.temperature = iwlagn_temperature,  	 }, -	.debugfs_ops = { -		.rx_stats_read = iwl_ucode_rx_stats_read, -		.tx_stats_read = iwl_ucode_tx_stats_read, -		.general_stats_read = iwl_ucode_general_stats_read, -		.bt_stats_read = iwl_ucode_bt_stats_read, -		.reply_tx_error = iwl_reply_tx_error_read, -	},  	.txfifo_flush = iwlagn_txfifo_flush,  	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,  }; @@ -482,7 +461,6 @@ static struct iwl_bt_params iwl6000_bt_params = {  	.eeprom_ver = EEPROM_6005_EEPROM_VERSION,		\  	.eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION,	\  	.ops = &iwl6000_ops,					\ -	.mod_params = &iwlagn_mod_params,			\  	.base_params = &iwl6000_g2_base_params,			\  	.need_dc_calib = true,					\  	.need_temp_offset_calib = true,				\ @@ -511,7 +489,6 @@ struct iwl_cfg iwl6005_2bg_cfg = {  	.eeprom_ver = EEPROM_6030_EEPROM_VERSION,		\  	.eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION,	\  	.ops = &iwl6030_ops,					\ -	.mod_params = &iwlagn_mod_params,			\  	.base_params = &iwl6000_g2_base_params,			\  	.bt_params = &iwl6000_bt_params,			\  	.need_dc_calib = true,					\ @@ -593,7 +570,6 @@ struct iwl_cfg iwl130_bg_cfg = {  	.eeprom_ver = EEPROM_6000_EEPROM_VERSION,		\  	.eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,	\  	.ops = &iwl6000_ops,					\ -	.mod_params = &iwlagn_mod_params,			\  	.base_params = &iwl6000_base_params,			\  	.pa_type = IWL_PA_INTERNAL,				\  	.led_mode = IWL_LED_BLINK @@ -623,7 +599,6 @@ struct iwl_cfg iwl6000i_2bg_cfg = {  	.ops = &iwl6050_ops,					\  	.eeprom_ver = EEPROM_6050_EEPROM_VERSION,		\  	.eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION,	\ -	.mod_params = &iwlagn_mod_params,			\  	.base_params = &iwl6050_base_params,			\  	.need_dc_calib = true,					\  	.led_mode = IWL_LED_BLINK,				\ @@ -648,7 +623,6 @@ struct iwl_cfg iwl6150_bgn_cfg = {  	.eeprom_ver = EEPROM_6150_EEPROM_VERSION,  	.eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION,  	.ops = &iwl6150_ops, -	.mod_params = &iwlagn_mod_params,  	.base_params = &iwl6050_base_params,  	.ht_params = &iwl6000_ht_params,  	.need_dc_calib = true, @@ -664,7 +638,6 @@ struct iwl_cfg iwl6000_3agn_cfg = {  	.eeprom_ver = EEPROM_6000_EEPROM_VERSION,  	.eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION,  	.ops = &iwl6000_ops, -	.mod_params = &iwlagn_mod_params,  	.base_params = &iwl6000_base_params,  	.ht_params = &iwl6000_ht_params,  	.need_dc_calib = true,  |