aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2010-06-14 20:09:55 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-06-21 13:47:32 -0400
commitf84ac08db25f60a6973cac1a90f392b286054e2f (patch)
treec2364ec183ec12b8a9948a2481a6f5a35bbe13a6 /drivers
parentf3aebeeebc9a18aa548f8c1da18f6cda28d8b732 (diff)
iwlwifi: move calibration from iwlcore to iwlagn
All the calibrations are "agn" only functions, move from iwlcore to iwlagn. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/Makefile4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-calib.c (renamed from drivers/net/wireless/iwlwifi/iwl-calib.c)9
2 files changed, 2 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/Makefile b/drivers/net/wireless/iwlwifi/Makefile
index 9084c5262fa8..728bb858ba97 100644
--- a/drivers/net/wireless/iwlwifi/Makefile
+++ b/drivers/net/wireless/iwlwifi/Makefile
@@ -1,6 +1,6 @@
1obj-$(CONFIG_IWLWIFI) += iwlcore.o 1obj-$(CONFIG_IWLWIFI) += iwlcore.o
2iwlcore-objs := iwl-core.o iwl-eeprom.o iwl-hcmd.o iwl-power.o 2iwlcore-objs := iwl-core.o iwl-eeprom.o iwl-hcmd.o iwl-power.o
3iwlcore-objs += iwl-rx.o iwl-tx.o iwl-sta.o iwl-calib.o 3iwlcore-objs += iwl-rx.o iwl-tx.o iwl-sta.o
4iwlcore-objs += iwl-scan.o iwl-led.o 4iwlcore-objs += iwl-scan.o iwl-led.o
5iwlcore-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-debugfs.o 5iwlcore-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-debugfs.o
6iwlcore-$(CONFIG_IWLWIFI_DEVICE_TRACING) += iwl-devtrace.o 6iwlcore-$(CONFIG_IWLWIFI_DEVICE_TRACING) += iwl-devtrace.o
@@ -11,7 +11,7 @@ CFLAGS_iwl-devtrace.o := -I$(src)
11obj-$(CONFIG_IWLAGN) += iwlagn.o 11obj-$(CONFIG_IWLAGN) += iwlagn.o
12iwlagn-objs := iwl-agn.o iwl-agn-rs.o iwl-agn-led.o iwl-agn-ict.o 12iwlagn-objs := iwl-agn.o iwl-agn-rs.o iwl-agn-led.o iwl-agn-ict.o
13iwlagn-objs += iwl-agn-ucode.o iwl-agn-hcmd.o iwl-agn-tx.o 13iwlagn-objs += iwl-agn-ucode.o iwl-agn-hcmd.o iwl-agn-tx.o
14iwlagn-objs += iwl-agn-lib.o iwl-agn-rx.o 14iwlagn-objs += iwl-agn-lib.o iwl-agn-rx.o iwl-agn-calib.o
15iwlagn-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-agn-debugfs.o 15iwlagn-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-agn-debugfs.o
16 16
17iwlagn-$(CONFIG_IWL4965) += iwl-4965.o 17iwlagn-$(CONFIG_IWL4965) += iwl-4965.o
diff --git a/drivers/net/wireless/iwlwifi/iwl-calib.c b/drivers/net/wireless/iwlwifi/iwl-agn-calib.c
index 22fa947e8756..d03b5e57759f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-calib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-calib.c
@@ -106,7 +106,6 @@ err:
106 IWL_ERR(priv, "Error %d iteration %d\n", ret, i); 106 IWL_ERR(priv, "Error %d iteration %d\n", ret, i);
107 return ret; 107 return ret;
108} 108}
109EXPORT_SYMBOL(iwl_send_calib_results);
110 109
111int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len) 110int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len)
112{ 111{
@@ -121,7 +120,6 @@ int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len)
121 memcpy(res->buf, buf, len); 120 memcpy(res->buf, buf, len);
122 return 0; 121 return 0;
123} 122}
124EXPORT_SYMBOL(iwl_calib_set);
125 123
126void iwl_calib_free_results(struct iwl_priv *priv) 124void iwl_calib_free_results(struct iwl_priv *priv)
127{ 125{
@@ -133,7 +131,6 @@ void iwl_calib_free_results(struct iwl_priv *priv)
133 priv->calib_results[i].buf_len = 0; 131 priv->calib_results[i].buf_len = 0;
134 } 132 }
135} 133}
136EXPORT_SYMBOL(iwl_calib_free_results);
137 134
138/***************************************************************************** 135/*****************************************************************************
139 * RUNTIME calibrations framework 136 * RUNTIME calibrations framework
@@ -533,7 +530,6 @@ void iwl_init_sensitivity(struct iwl_priv *priv)
533 ret |= iwl_sensitivity_write(priv); 530 ret |= iwl_sensitivity_write(priv);
534 IWL_DEBUG_CALIB(priv, "<<return 0x%X\n", ret); 531 IWL_DEBUG_CALIB(priv, "<<return 0x%X\n", ret);
535} 532}
536EXPORT_SYMBOL(iwl_init_sensitivity);
537 533
538void iwl_sensitivity_calibration(struct iwl_priv *priv, 534void iwl_sensitivity_calibration(struct iwl_priv *priv,
539 struct iwl_notif_statistics *resp) 535 struct iwl_notif_statistics *resp)
@@ -639,7 +635,6 @@ void iwl_sensitivity_calibration(struct iwl_priv *priv,
639 iwl_sens_energy_cck(priv, norm_fa_cck, rx_enable_time, &statis); 635 iwl_sens_energy_cck(priv, norm_fa_cck, rx_enable_time, &statis);
640 iwl_sensitivity_write(priv); 636 iwl_sensitivity_write(priv);
641} 637}
642EXPORT_SYMBOL(iwl_sensitivity_calibration);
643 638
644static inline u8 find_first_chain(u8 mask) 639static inline u8 find_first_chain(u8 mask)
645{ 640{
@@ -897,8 +892,6 @@ void iwl_chain_noise_calibration(struct iwl_priv *priv,
897 data->state = IWL_CHAIN_NOISE_DONE; 892 data->state = IWL_CHAIN_NOISE_DONE;
898 iwl_power_update_mode(priv, false); 893 iwl_power_update_mode(priv, false);
899} 894}
900EXPORT_SYMBOL(iwl_chain_noise_calibration);
901
902 895
903void iwl_reset_run_time_calib(struct iwl_priv *priv) 896void iwl_reset_run_time_calib(struct iwl_priv *priv)
904{ 897{
@@ -915,5 +908,3 @@ void iwl_reset_run_time_calib(struct iwl_priv *priv)
915 * periodically after association */ 908 * periodically after association */
916 iwl_send_statistics_request(priv, CMD_ASYNC, true); 909 iwl_send_statistics_request(priv, CMD_ASYNC, true);
917} 910}
918EXPORT_SYMBOL(iwl_reset_run_time_calib);
919