Commit f84ac08d authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by Reinette Chatre

iwlwifi: move calibration from iwlcore to iwlagn

All the calibrations are "agn" only functions, move from iwlcore to
iwlagn.
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
parent f3aebeee
obj-$(CONFIG_IWLWIFI) += iwlcore.o obj-$(CONFIG_IWLWIFI) += iwlcore.o
iwlcore-objs := iwl-core.o iwl-eeprom.o iwl-hcmd.o iwl-power.o iwlcore-objs := iwl-core.o iwl-eeprom.o iwl-hcmd.o iwl-power.o
iwlcore-objs += iwl-rx.o iwl-tx.o iwl-sta.o iwl-calib.o iwlcore-objs += iwl-rx.o iwl-tx.o iwl-sta.o
iwlcore-objs += iwl-scan.o iwl-led.o iwlcore-objs += iwl-scan.o iwl-led.o
iwlcore-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-debugfs.o iwlcore-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-debugfs.o
iwlcore-$(CONFIG_IWLWIFI_DEVICE_TRACING) += iwl-devtrace.o iwlcore-$(CONFIG_IWLWIFI_DEVICE_TRACING) += iwl-devtrace.o
...@@ -11,7 +11,7 @@ CFLAGS_iwl-devtrace.o := -I$(src) ...@@ -11,7 +11,7 @@ CFLAGS_iwl-devtrace.o := -I$(src)
obj-$(CONFIG_IWLAGN) += iwlagn.o obj-$(CONFIG_IWLAGN) += iwlagn.o
iwlagn-objs := iwl-agn.o iwl-agn-rs.o iwl-agn-led.o iwl-agn-ict.o iwlagn-objs := iwl-agn.o iwl-agn-rs.o iwl-agn-led.o iwl-agn-ict.o
iwlagn-objs += iwl-agn-ucode.o iwl-agn-hcmd.o iwl-agn-tx.o iwlagn-objs += iwl-agn-ucode.o iwl-agn-hcmd.o iwl-agn-tx.o
iwlagn-objs += iwl-agn-lib.o iwl-agn-rx.o iwlagn-objs += iwl-agn-lib.o iwl-agn-rx.o iwl-agn-calib.o
iwlagn-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-agn-debugfs.o iwlagn-$(CONFIG_IWLWIFI_DEBUGFS) += iwl-agn-debugfs.o
iwlagn-$(CONFIG_IWL4965) += iwl-4965.o iwlagn-$(CONFIG_IWL4965) += iwl-4965.o
......
...@@ -106,7 +106,6 @@ int iwl_send_calib_results(struct iwl_priv *priv) ...@@ -106,7 +106,6 @@ int iwl_send_calib_results(struct iwl_priv *priv)
IWL_ERR(priv, "Error %d iteration %d\n", ret, i); IWL_ERR(priv, "Error %d iteration %d\n", ret, i);
return ret; return ret;
} }
EXPORT_SYMBOL(iwl_send_calib_results);
int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len) int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len)
{ {
...@@ -121,7 +120,6 @@ int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len) ...@@ -121,7 +120,6 @@ int iwl_calib_set(struct iwl_calib_result *res, const u8 *buf, int len)
memcpy(res->buf, buf, len); memcpy(res->buf, buf, len);
return 0; return 0;
} }
EXPORT_SYMBOL(iwl_calib_set);
void iwl_calib_free_results(struct iwl_priv *priv) void iwl_calib_free_results(struct iwl_priv *priv)
{ {
...@@ -133,7 +131,6 @@ void iwl_calib_free_results(struct iwl_priv *priv) ...@@ -133,7 +131,6 @@ void iwl_calib_free_results(struct iwl_priv *priv)
priv->calib_results[i].buf_len = 0; priv->calib_results[i].buf_len = 0;
} }
} }
EXPORT_SYMBOL(iwl_calib_free_results);
/***************************************************************************** /*****************************************************************************
* RUNTIME calibrations framework * RUNTIME calibrations framework
...@@ -533,7 +530,6 @@ void iwl_init_sensitivity(struct iwl_priv *priv) ...@@ -533,7 +530,6 @@ void iwl_init_sensitivity(struct iwl_priv *priv)
ret |= iwl_sensitivity_write(priv); ret |= iwl_sensitivity_write(priv);
IWL_DEBUG_CALIB(priv, "<<return 0x%X\n", ret); IWL_DEBUG_CALIB(priv, "<<return 0x%X\n", ret);
} }
EXPORT_SYMBOL(iwl_init_sensitivity);
void iwl_sensitivity_calibration(struct iwl_priv *priv, void iwl_sensitivity_calibration(struct iwl_priv *priv,
struct iwl_notif_statistics *resp) struct iwl_notif_statistics *resp)
...@@ -639,7 +635,6 @@ void iwl_sensitivity_calibration(struct iwl_priv *priv, ...@@ -639,7 +635,6 @@ void iwl_sensitivity_calibration(struct iwl_priv *priv,
iwl_sens_energy_cck(priv, norm_fa_cck, rx_enable_time, &statis); iwl_sens_energy_cck(priv, norm_fa_cck, rx_enable_time, &statis);
iwl_sensitivity_write(priv); iwl_sensitivity_write(priv);
} }
EXPORT_SYMBOL(iwl_sensitivity_calibration);
static inline u8 find_first_chain(u8 mask) static inline u8 find_first_chain(u8 mask)
{ {
...@@ -897,8 +892,6 @@ void iwl_chain_noise_calibration(struct iwl_priv *priv, ...@@ -897,8 +892,6 @@ void iwl_chain_noise_calibration(struct iwl_priv *priv,
data->state = IWL_CHAIN_NOISE_DONE; data->state = IWL_CHAIN_NOISE_DONE;
iwl_power_update_mode(priv, false); iwl_power_update_mode(priv, false);
} }
EXPORT_SYMBOL(iwl_chain_noise_calibration);
void iwl_reset_run_time_calib(struct iwl_priv *priv) void iwl_reset_run_time_calib(struct iwl_priv *priv)
{ {
...@@ -915,5 +908,3 @@ void iwl_reset_run_time_calib(struct iwl_priv *priv) ...@@ -915,5 +908,3 @@ void iwl_reset_run_time_calib(struct iwl_priv *priv)
* periodically after association */ * periodically after association */
iwl_send_statistics_request(priv, CMD_ASYNC, true); iwl_send_statistics_request(priv, CMD_ASYNC, true);
} }
EXPORT_SYMBOL(iwl_reset_run_time_calib);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment