aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2010-03-16 15:37:28 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-03-25 14:20:18 -0400
commit510cb791ab32a6296e45ebc425a011551bed7bd1 (patch)
treed5534b46c76c1fde52cb75bca55e027a55e35ef8
parent0b5af201b25334f7b9c991b2800693dd4cb4b5f7 (diff)
iwlwifi: remove non-exist extern functions and structures
After re-structure the agn files layout and move all the agn shared functions out from iwl-5000.c, all those functions and data structures do not need to be declare "extern" from iwl-5000.c in iwl-dev.h. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h39
3 files changed, 4 insertions, 42 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 6c09b2477b9..aaf7e51e681 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -65,7 +65,7 @@
65#define IWL5150_MODULE_FIRMWARE(api) _IWL5150_MODULE_FIRMWARE(api) 65#define IWL5150_MODULE_FIRMWARE(api) _IWL5150_MODULE_FIRMWARE(api)
66 66
67/* NIC configuration for 5000 series */ 67/* NIC configuration for 5000 series */
68void iwl5000_nic_config(struct iwl_priv *priv) 68static void iwl5000_nic_config(struct iwl_priv *priv)
69{ 69{
70 unsigned long flags; 70 unsigned long flags;
71 u16 radio_cfg; 71 u16 radio_cfg;
@@ -164,7 +164,7 @@ static void iwl5000_set_ct_threshold(struct iwl_priv *priv)
164 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD_LEGACY; 164 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD_LEGACY;
165} 165}
166 166
167int iwl5000_hw_set_hw_params(struct iwl_priv *priv) 167static int iwl5000_hw_set_hw_params(struct iwl_priv *priv)
168{ 168{
169 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && 169 if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES &&
170 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) 170 priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES)
@@ -266,7 +266,7 @@ static int iwl5000_hw_channel_switch(struct iwl_priv *priv, u16 channel)
266 return iwl_send_cmd_sync(priv, &hcmd); 266 return iwl_send_cmd_sync(priv, &hcmd);
267} 267}
268 268
269struct iwl_lib_ops iwl5000_lib = { 269static struct iwl_lib_ops iwl5000_lib = {
270 .set_hw_params = iwl5000_hw_set_hw_params, 270 .set_hw_params = iwl5000_hw_set_hw_params,
271 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl, 271 .txq_update_byte_cnt_tbl = iwlagn_txq_update_byte_cnt_tbl,
272 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl, 272 .txq_inval_byte_cnt_tbl = iwlagn_txq_inval_byte_cnt_tbl,
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c
index a0e3c110613..6e331f502e1 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c
@@ -35,6 +35,7 @@
35#include "iwl-dev.h" 35#include "iwl-dev.h"
36#include "iwl-core.h" 36#include "iwl-core.h"
37#include "iwl-io.h" 37#include "iwl-io.h"
38#include "iwl-agn.h"
38 39
39static int iwlagn_send_rxon_assoc(struct iwl_priv *priv) 40static int iwlagn_send_rxon_assoc(struct iwl_priv *priv)
40{ 41{
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index c2e97cd98f1..07d865fd57e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -68,45 +68,6 @@ extern struct iwl_cfg iwl1000_bg_cfg;
68 68
69struct iwl_tx_queue; 69struct iwl_tx_queue;
70 70
71/* shared structures from iwl-5000.c */
72extern struct iwl_mod_params iwl50_mod_params;
73extern struct iwl_ucode_ops iwl5000_ucode;
74extern struct iwl_lib_ops iwl5000_lib;
75extern struct iwl_hcmd_ops iwl5000_hcmd;
76extern struct iwl_hcmd_utils_ops iwl5000_hcmd_utils;
77
78/* shared functions from iwl-5000.c */
79extern u16 iwl5000_get_hcmd_size(u8 cmd_id, u16 len);
80extern u16 iwl5000_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd,
81 u8 *data);
82extern void iwl5000_rts_tx_cmd_flag(struct ieee80211_tx_info *info,
83 __le32 *tx_flags);
84extern int iwl5000_calc_rssi(struct iwl_priv *priv,
85 struct iwl_rx_phy_res *rx_resp);
86extern void iwl5000_nic_config(struct iwl_priv *priv);
87extern u16 iwl5000_eeprom_calib_version(struct iwl_priv *priv);
88extern const u8 *iwl5000_eeprom_query_addr(const struct iwl_priv *priv,
89 size_t offset);
90extern void iwl5000_txq_update_byte_cnt_tbl(struct iwl_priv *priv,
91 struct iwl_tx_queue *txq,
92 u16 byte_cnt);
93extern void iwl5000_txq_inval_byte_cnt_tbl(struct iwl_priv *priv,
94 struct iwl_tx_queue *txq);
95extern int iwl5000_load_ucode(struct iwl_priv *priv);
96extern void iwl5000_init_alive_start(struct iwl_priv *priv);
97extern int iwl5000_alive_notify(struct iwl_priv *priv);
98extern int iwl5000_hw_set_hw_params(struct iwl_priv *priv);
99extern int iwl5000_txq_agg_enable(struct iwl_priv *priv, int txq_id,
100 int tx_fifo, int sta_id, int tid, u16 ssn_idx);
101extern int iwl5000_txq_agg_disable(struct iwl_priv *priv, u16 txq_id,
102 u16 ssn_idx, u8 tx_fifo);
103extern void iwl5000_txq_set_sched(struct iwl_priv *priv, u32 mask);
104extern void iwl5000_setup_deferred_work(struct iwl_priv *priv);
105extern void iwl5000_rx_handler_setup(struct iwl_priv *priv);
106extern int iwl5000_hw_valid_rtc_data_addr(u32 addr);
107extern int iwl5000_send_tx_power(struct iwl_priv *priv);
108extern void iwl5000_temperature(struct iwl_priv *priv);
109
110/* CT-KILL constants */ 71/* CT-KILL constants */
111#define CT_KILL_THRESHOLD_LEGACY 110 /* in Celsius */ 72#define CT_KILL_THRESHOLD_LEGACY 110 /* in Celsius */
112#define CT_KILL_THRESHOLD 114 /* in Celsius */ 73#define CT_KILL_THRESHOLD 114 /* in Celsius */