diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c')
| -rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c | 59 | 
1 files changed, 1 insertions, 58 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c index 41543ad4cb8..b12c72d63cc 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c @@ -2,7 +2,7 @@   *   * GPL LICENSE SUMMARY   * - * Copyright(c) 2008 - 2010 Intel Corporation. All rights reserved. + * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of version 2 of the GNU General Public License as @@ -37,54 +37,6 @@  #include "iwl-io.h"  #include "iwl-agn.h" -int iwlagn_send_rxon_assoc(struct iwl_priv *priv, -			   struct iwl_rxon_context *ctx) -{ -	int ret = 0; -	struct iwl5000_rxon_assoc_cmd rxon_assoc; -	const struct iwl_rxon_cmd *rxon1 = &ctx->staging; -	const struct iwl_rxon_cmd *rxon2 = &ctx->active; - -	if ((rxon1->flags == rxon2->flags) && -	    (rxon1->filter_flags == rxon2->filter_flags) && -	    (rxon1->cck_basic_rates == rxon2->cck_basic_rates) && -	    (rxon1->ofdm_ht_single_stream_basic_rates == -	     rxon2->ofdm_ht_single_stream_basic_rates) && -	    (rxon1->ofdm_ht_dual_stream_basic_rates == -	     rxon2->ofdm_ht_dual_stream_basic_rates) && -	    (rxon1->ofdm_ht_triple_stream_basic_rates == -	     rxon2->ofdm_ht_triple_stream_basic_rates) && -	    (rxon1->acquisition_data == rxon2->acquisition_data) && -	    (rxon1->rx_chain == rxon2->rx_chain) && -	    (rxon1->ofdm_basic_rates == rxon2->ofdm_basic_rates)) { -		IWL_DEBUG_INFO(priv, "Using current RXON_ASSOC.  Not resending.\n"); -		return 0; -	} - -	rxon_assoc.flags = ctx->staging.flags; -	rxon_assoc.filter_flags = ctx->staging.filter_flags; -	rxon_assoc.ofdm_basic_rates = ctx->staging.ofdm_basic_rates; -	rxon_assoc.cck_basic_rates = ctx->staging.cck_basic_rates; -	rxon_assoc.reserved1 = 0; -	rxon_assoc.reserved2 = 0; -	rxon_assoc.reserved3 = 0; -	rxon_assoc.ofdm_ht_single_stream_basic_rates = -	    ctx->staging.ofdm_ht_single_stream_basic_rates; -	rxon_assoc.ofdm_ht_dual_stream_basic_rates = -	    ctx->staging.ofdm_ht_dual_stream_basic_rates; -	rxon_assoc.rx_chain_select_flags = ctx->staging.rx_chain; -	rxon_assoc.ofdm_ht_triple_stream_basic_rates = -		 ctx->staging.ofdm_ht_triple_stream_basic_rates; -	rxon_assoc.acquisition_data = ctx->staging.acquisition_data; - -	ret = iwl_send_cmd_pdu_async(priv, ctx->rxon_assoc_cmd, -				     sizeof(rxon_assoc), &rxon_assoc, NULL); -	if (ret) -		return ret; - -	return ret; -} -  int iwlagn_send_tx_ant_config(struct iwl_priv *priv, u8 valid_tx_ant)  {  	struct iwl_tx_ant_config_cmd tx_ant_cmd = { @@ -102,12 +54,6 @@ int iwlagn_send_tx_ant_config(struct iwl_priv *priv, u8 valid_tx_ant)  	}  } -/* Currently this is the superset of everything */ -static u16 iwlagn_get_hcmd_size(u8 cmd_id, u16 len) -{ -	return len; -} -  static u16 iwlagn_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd, u8 *data)  {  	u16 size = (u16)sizeof(struct iwl_addsta_cmd); @@ -364,7 +310,6 @@ static int iwlagn_set_pan_params(struct iwl_priv *priv)  }  struct iwl_hcmd_ops iwlagn_hcmd = { -	.rxon_assoc = iwlagn_send_rxon_assoc,  	.commit_rxon = iwlagn_commit_rxon,  	.set_rxon_chain = iwlagn_set_rxon_chain,  	.set_tx_ant = iwlagn_send_tx_ant_config, @@ -373,7 +318,6 @@ struct iwl_hcmd_ops iwlagn_hcmd = {  };  struct iwl_hcmd_ops iwlagn_bt_hcmd = { -	.rxon_assoc = iwlagn_send_rxon_assoc,  	.commit_rxon = iwlagn_commit_rxon,  	.set_rxon_chain = iwlagn_set_rxon_chain,  	.set_tx_ant = iwlagn_send_tx_ant_config, @@ -382,7 +326,6 @@ struct iwl_hcmd_ops iwlagn_bt_hcmd = {  };  struct iwl_hcmd_utils_ops iwlagn_hcmd_utils = { -	.get_hcmd_size = iwlagn_get_hcmd_size,  	.build_addsta_hcmd = iwlagn_build_addsta_hcmd,  	.gain_computation = iwlagn_gain_computation,  	.chain_noise_reset = iwlagn_chain_noise_reset,  |