aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-09-22 12:01:55 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2010-10-07 18:48:53 -0400
commit7314c2b377afaf367f2966bd9ea67bf83350e29b (patch)
treeb8959c69d787d79a192d6ffd8df5e49efb76ba21
parent15a6321d1c0f8db561932cd99e1b9897981da71f (diff)
iwlagn: rename iwl_commit_rxon
iwl_commit_rxon really should be named iwlagn_commit_rxon, so rename it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.h3
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h1
5 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 834c2f9c15d7..09db9407aa54 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -2216,7 +2216,7 @@ static void iwl4965_cancel_deferred_work(struct iwl_priv *priv)
2216 2216
2217static struct iwl_hcmd_ops iwl4965_hcmd = { 2217static struct iwl_hcmd_ops iwl4965_hcmd = {
2218 .rxon_assoc = iwl4965_send_rxon_assoc, 2218 .rxon_assoc = iwl4965_send_rxon_assoc,
2219 .commit_rxon = iwl_commit_rxon, 2219 .commit_rxon = iwlagn_commit_rxon,
2220 .set_rxon_chain = iwl_set_rxon_chain, 2220 .set_rxon_chain = iwl_set_rxon_chain,
2221 .send_bt_config = iwl_send_bt_config, 2221 .send_bt_config = iwl_send_bt_config,
2222}; 2222};
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c
index 9ca6c91eaae6..901452ee623a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c
@@ -360,7 +360,7 @@ static int iwlagn_set_pan_params(struct iwl_priv *priv)
360 360
361struct iwl_hcmd_ops iwlagn_hcmd = { 361struct iwl_hcmd_ops iwlagn_hcmd = {
362 .rxon_assoc = iwlagn_send_rxon_assoc, 362 .rxon_assoc = iwlagn_send_rxon_assoc,
363 .commit_rxon = iwl_commit_rxon, 363 .commit_rxon = iwlagn_commit_rxon,
364 .set_rxon_chain = iwl_set_rxon_chain, 364 .set_rxon_chain = iwl_set_rxon_chain,
365 .set_tx_ant = iwlagn_send_tx_ant_config, 365 .set_tx_ant = iwlagn_send_tx_ant_config,
366 .send_bt_config = iwl_send_bt_config, 366 .send_bt_config = iwl_send_bt_config,
@@ -369,7 +369,7 @@ struct iwl_hcmd_ops iwlagn_hcmd = {
369 369
370struct iwl_hcmd_ops iwlagn_bt_hcmd = { 370struct iwl_hcmd_ops iwlagn_bt_hcmd = {
371 .rxon_assoc = iwlagn_send_rxon_assoc, 371 .rxon_assoc = iwlagn_send_rxon_assoc,
372 .commit_rxon = iwl_commit_rxon, 372 .commit_rxon = iwlagn_commit_rxon,
373 .set_rxon_chain = iwl_set_rxon_chain, 373 .set_rxon_chain = iwl_set_rxon_chain,
374 .set_tx_ant = iwlagn_send_tx_ant_config, 374 .set_tx_ant = iwlagn_send_tx_ant_config,
375 .send_bt_config = iwlagn_send_advance_bt_config, 375 .send_bt_config = iwlagn_send_advance_bt_config,
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index a6dce616ee3c..b59ce92730c7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -91,14 +91,14 @@ static int iwlagn_ant_coupling;
91static bool iwlagn_bt_ch_announce = 1; 91static bool iwlagn_bt_ch_announce = 1;
92 92
93/** 93/**
94 * iwl_commit_rxon - commit staging_rxon to hardware 94 * iwlagn_commit_rxon - commit staging_rxon to hardware
95 * 95 *
96 * The RXON command in staging_rxon is committed to the hardware and 96 * The RXON command in staging_rxon is committed to the hardware and
97 * the active_rxon structure is updated with the new data. This 97 * the active_rxon structure is updated with the new data. This
98 * function correctly transitions out of the RXON_ASSOC_MSK state if 98 * function correctly transitions out of the RXON_ASSOC_MSK state if
99 * a HW tune is required based on the RXON structure changes. 99 * a HW tune is required based on the RXON structure changes.
100 */ 100 */
101int iwl_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx) 101int iwlagn_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
102{ 102{
103 /* cast away the const for active_rxon in this function */ 103 /* cast away the const for active_rxon in this function */
104 struct iwl_rxon_cmd *active_rxon = (void *)&ctx->active; 104 struct iwl_rxon_cmd *active_rxon = (void *)&ctx->active;
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.h b/drivers/net/wireless/iwlwifi/iwl-agn.h
index eb3812a35862..2a1c83bda919 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.h
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.h
@@ -129,6 +129,9 @@ void iwlagn_txq_set_sched(struct iwl_priv *priv, u32 mask);
129void iwl_free_tfds_in_queue(struct iwl_priv *priv, 129void iwl_free_tfds_in_queue(struct iwl_priv *priv,
130 int sta_id, int tid, int freed); 130 int sta_id, int tid, int freed);
131 131
132/* RXON */
133int iwlagn_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx);
134
132/* uCode */ 135/* uCode */
133int iwlagn_load_ucode(struct iwl_priv *priv); 136int iwlagn_load_ucode(struct iwl_priv *priv);
134void iwlagn_rx_calib_result(struct iwl_priv *priv, 137void iwlagn_rx_calib_result(struct iwl_priv *priv,
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index 6228b1c2ec96..d6d5bb0f0eb0 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -432,7 +432,6 @@ void iwl_bss_info_changed(struct ieee80211_hw *hw,
432 struct ieee80211_vif *vif, 432 struct ieee80211_vif *vif,
433 struct ieee80211_bss_conf *bss_conf, 433 struct ieee80211_bss_conf *bss_conf,
434 u32 changes); 434 u32 changes);
435int iwl_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx);
436int iwl_mac_add_interface(struct ieee80211_hw *hw, 435int iwl_mac_add_interface(struct ieee80211_hw *hw,
437 struct ieee80211_vif *vif); 436 struct ieee80211_vif *vif);
438void iwl_mac_remove_interface(struct ieee80211_hw *hw, 437void iwl_mac_remove_interface(struct ieee80211_hw *hw,