diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-04-19 19:52:57 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-04-30 11:39:44 -0400 |
commit | c3f6e9cff950c312d409e5767365aeb2475b2ab7 (patch) | |
tree | 9e62afe76207ab71e1878f88b369283cba74c657 /drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c | |
parent | e43e85c40d83f0a7a6ff5631d1009d142b72dbca (diff) |
iwlagn: make rxon_assoc static function
Move rxon_assoc to static function from ops
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c index 861cc93957a9..49dd03f9feda 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c | |||
@@ -37,54 +37,6 @@ | |||
37 | #include "iwl-io.h" | 37 | #include "iwl-io.h" |
38 | #include "iwl-agn.h" | 38 | #include "iwl-agn.h" |
39 | 39 | ||
40 | int iwlagn_send_rxon_assoc(struct iwl_priv *priv, | ||
41 | struct iwl_rxon_context *ctx) | ||
42 | { | ||
43 | int ret = 0; | ||
44 | struct iwl5000_rxon_assoc_cmd rxon_assoc; | ||
45 | const struct iwl_rxon_cmd *rxon1 = &ctx->staging; | ||
46 | const struct iwl_rxon_cmd *rxon2 = &ctx->active; | ||
47 | |||
48 | if ((rxon1->flags == rxon2->flags) && | ||
49 | (rxon1->filter_flags == rxon2->filter_flags) && | ||
50 | (rxon1->cck_basic_rates == rxon2->cck_basic_rates) && | ||
51 | (rxon1->ofdm_ht_single_stream_basic_rates == | ||
52 | rxon2->ofdm_ht_single_stream_basic_rates) && | ||
53 | (rxon1->ofdm_ht_dual_stream_basic_rates == | ||
54 | rxon2->ofdm_ht_dual_stream_basic_rates) && | ||
55 | (rxon1->ofdm_ht_triple_stream_basic_rates == | ||
56 | rxon2->ofdm_ht_triple_stream_basic_rates) && | ||
57 | (rxon1->acquisition_data == rxon2->acquisition_data) && | ||
58 | (rxon1->rx_chain == rxon2->rx_chain) && | ||
59 | (rxon1->ofdm_basic_rates == rxon2->ofdm_basic_rates)) { | ||
60 | IWL_DEBUG_INFO(priv, "Using current RXON_ASSOC. Not resending.\n"); | ||
61 | return 0; | ||
62 | } | ||
63 | |||
64 | rxon_assoc.flags = ctx->staging.flags; | ||
65 | rxon_assoc.filter_flags = ctx->staging.filter_flags; | ||
66 | rxon_assoc.ofdm_basic_rates = ctx->staging.ofdm_basic_rates; | ||
67 | rxon_assoc.cck_basic_rates = ctx->staging.cck_basic_rates; | ||
68 | rxon_assoc.reserved1 = 0; | ||
69 | rxon_assoc.reserved2 = 0; | ||
70 | rxon_assoc.reserved3 = 0; | ||
71 | rxon_assoc.ofdm_ht_single_stream_basic_rates = | ||
72 | ctx->staging.ofdm_ht_single_stream_basic_rates; | ||
73 | rxon_assoc.ofdm_ht_dual_stream_basic_rates = | ||
74 | ctx->staging.ofdm_ht_dual_stream_basic_rates; | ||
75 | rxon_assoc.rx_chain_select_flags = ctx->staging.rx_chain; | ||
76 | rxon_assoc.ofdm_ht_triple_stream_basic_rates = | ||
77 | ctx->staging.ofdm_ht_triple_stream_basic_rates; | ||
78 | rxon_assoc.acquisition_data = ctx->staging.acquisition_data; | ||
79 | |||
80 | ret = iwl_send_cmd_pdu_async(priv, ctx->rxon_assoc_cmd, | ||
81 | sizeof(rxon_assoc), &rxon_assoc, NULL); | ||
82 | if (ret) | ||
83 | return ret; | ||
84 | |||
85 | return ret; | ||
86 | } | ||
87 | |||
88 | int iwlagn_send_tx_ant_config(struct iwl_priv *priv, u8 valid_tx_ant) | 40 | int iwlagn_send_tx_ant_config(struct iwl_priv *priv, u8 valid_tx_ant) |
89 | { | 41 | { |
90 | struct iwl_tx_ant_config_cmd tx_ant_cmd = { | 42 | struct iwl_tx_ant_config_cmd tx_ant_cmd = { |
@@ -364,7 +316,6 @@ static int iwlagn_set_pan_params(struct iwl_priv *priv) | |||
364 | } | 316 | } |
365 | 317 | ||
366 | struct iwl_hcmd_ops iwlagn_hcmd = { | 318 | struct iwl_hcmd_ops iwlagn_hcmd = { |
367 | .rxon_assoc = iwlagn_send_rxon_assoc, | ||
368 | .commit_rxon = iwlagn_commit_rxon, | 319 | .commit_rxon = iwlagn_commit_rxon, |
369 | .set_rxon_chain = iwlagn_set_rxon_chain, | 320 | .set_rxon_chain = iwlagn_set_rxon_chain, |
370 | .set_tx_ant = iwlagn_send_tx_ant_config, | 321 | .set_tx_ant = iwlagn_send_tx_ant_config, |
@@ -373,7 +324,6 @@ struct iwl_hcmd_ops iwlagn_hcmd = { | |||
373 | }; | 324 | }; |
374 | 325 | ||
375 | struct iwl_hcmd_ops iwlagn_bt_hcmd = { | 326 | struct iwl_hcmd_ops iwlagn_bt_hcmd = { |
376 | .rxon_assoc = iwlagn_send_rxon_assoc, | ||
377 | .commit_rxon = iwlagn_commit_rxon, | 327 | .commit_rxon = iwlagn_commit_rxon, |
378 | .set_rxon_chain = iwlagn_set_rxon_chain, | 328 | .set_rxon_chain = iwlagn_set_rxon_chain, |
379 | .set_tx_ant = iwlagn_send_tx_ant_config, | 329 | .set_tx_ant = iwlagn_send_tx_ant_config, |