aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2008-04-24 14:55:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-07 15:02:22 -0400
commitd4789efe5627858c212753bbac4316198f819486 (patch)
tree2b83cff15a6d613d9bd3cb54ab1c8943fab88996 /drivers/net/wireless
parenta395b92024d9b8f9403c06f9ea8d425f1883d7d8 (diff)
iwlwifi: move hw_rx_handler_setup to iwl-4965.c
This patch moves hw_rx_handler_setup to iwl-4965.c Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@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-4965.c3
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.h1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c2
4 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index b1b7363bfdd4..258777366d29 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -4065,7 +4065,7 @@ int iwl4965_mac_ampdu_action(struct ieee80211_hw *hw,
4065#endif /* CONFIG_IWL4965_HT */ 4065#endif /* CONFIG_IWL4965_HT */
4066 4066
4067/* Set up 4965-specific Rx frame reply handlers */ 4067/* Set up 4965-specific Rx frame reply handlers */
4068void iwl4965_hw_rx_handler_setup(struct iwl_priv *priv) 4068static void iwl4965_rx_handler_setup(struct iwl_priv *priv)
4069{ 4069{
4070 /* Legacy Rx frames */ 4070 /* Legacy Rx frames */
4071 priv->rx_handlers[REPLY_RX] = iwl4965_rx_reply_rx; 4071 priv->rx_handlers[REPLY_RX] = iwl4965_rx_reply_rx;
@@ -4119,6 +4119,7 @@ static struct iwl_lib_ops iwl4965_lib = {
4119 .free_shared_mem = iwl4965_free_shared_mem, 4119 .free_shared_mem = iwl4965_free_shared_mem,
4120 .txq_update_byte_cnt_tbl = iwl4965_txq_update_byte_cnt_tbl, 4120 .txq_update_byte_cnt_tbl = iwl4965_txq_update_byte_cnt_tbl,
4121 .hw_nic_init = iwl4965_hw_nic_init, 4121 .hw_nic_init = iwl4965_hw_nic_init,
4122 .rx_handler_setup = iwl4965_rx_handler_setup,
4122 .is_valid_rtc_data_addr = iwl4965_hw_valid_rtc_data_addr, 4123 .is_valid_rtc_data_addr = iwl4965_hw_valid_rtc_data_addr,
4123 .alive_notify = iwl4965_alive_notify, 4124 .alive_notify = iwl4965_alive_notify,
4124 .load_ucode = iwl4965_load_bsm, 4125 .load_ucode = iwl4965_load_bsm,
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h
index 3b7306475531..7b7c6207c936 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.h
@@ -693,7 +693,6 @@ extern u8 iwl4965_sync_station(struct iwl_priv *priv, int sta_id,
693 * iwl4965_mac_ <-- mac80211 callback 693 * iwl4965_mac_ <-- mac80211 callback
694 * 694 *
695 ****************************************************************************/ 695 ****************************************************************************/
696extern void iwl4965_hw_rx_handler_setup(struct iwl_priv *priv);
697extern void iwl4965_hw_setup_deferred_work(struct iwl_priv *priv); 696extern void iwl4965_hw_setup_deferred_work(struct iwl_priv *priv);
698extern void iwl4965_hw_cancel_deferred_work(struct iwl_priv *priv); 697extern void iwl4965_hw_cancel_deferred_work(struct iwl_priv *priv);
699extern int iwl4965_hw_rxq_stop(struct iwl_priv *priv); 698extern int iwl4965_hw_rxq_stop(struct iwl_priv *priv);
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index 8196ef7303af..fc0c2765f136 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -105,6 +105,8 @@ struct iwl_lib_ops {
105 void (*txq_update_byte_cnt_tbl)(struct iwl_priv *priv, 105 void (*txq_update_byte_cnt_tbl)(struct iwl_priv *priv,
106 struct iwl4965_tx_queue *txq, 106 struct iwl4965_tx_queue *txq,
107 u16 byte_cnt); 107 u16 byte_cnt);
108 /* setup Rx handler */
109 void (*rx_handler_setup)(struct iwl_priv *priv);
108 /* nic init */ 110 /* nic init */
109 int (*hw_nic_init)(struct iwl_priv *priv); 111 int (*hw_nic_init)(struct iwl_priv *priv);
110 /* alive notification */ 112 /* alive notification */
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 011f6114c338..fbd82d80cad0 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -3237,7 +3237,7 @@ static void iwl4965_setup_rx_handlers(struct iwl_priv *priv)
3237 priv->rx_handlers[REPLY_TX] = iwl4965_rx_reply_tx; 3237 priv->rx_handlers[REPLY_TX] = iwl4965_rx_reply_tx;
3238 3238
3239 /* Set up hardware specific Rx handlers */ 3239 /* Set up hardware specific Rx handlers */
3240 iwl4965_hw_rx_handler_setup(priv); 3240 priv->cfg->ops->lib->rx_handler_setup(priv);
3241} 3241}
3242 3242
3243/** 3243/**