iwlwifi: clean up alive_start routine
This patch cleans up alive_start routine. It removes 4965 from the common code and moves the run time calibration reset into a common code. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
84df9d3130
commit
4a4a9e81ae
@@ -786,3 +786,21 @@ void iwl_chain_noise_calibration(struct iwl_priv *priv,
|
||||
}
|
||||
EXPORT_SYMBOL(iwl_chain_noise_calibration);
|
||||
|
||||
|
||||
void iwl_reset_run_time_calib(struct iwl_priv *priv)
|
||||
{
|
||||
int i;
|
||||
memset(&(priv->sensitivity_data), 0,
|
||||
sizeof(struct iwl_sensitivity_data));
|
||||
memset(&(priv->chain_noise_data), 0,
|
||||
sizeof(struct iwl_chain_noise_data));
|
||||
for (i = 0; i < NUM_RX_CHAINS; i++)
|
||||
priv->chain_noise_data.delta_gain_code[i] =
|
||||
CHAIN_NOISE_DELTA_GAIN_INIT_VAL;
|
||||
|
||||
/* Ask for statistics now, the uCode will send notification
|
||||
* periodically after association */
|
||||
iwl_send_statistics_request(priv, CMD_ASYNC);
|
||||
}
|
||||
EXPORT_SYMBOL(iwl_reset_run_time_calib);
|
||||
|
||||
|
Reference in New Issue
Block a user