aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 7391c63fb024..33a8f13ffe0a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -3008,9 +3008,17 @@ static void iwl_bg_run_time_calib_work(struct work_struct *work)
3008 } 3008 }
3009 3009
3010 if (priv->start_calib) { 3010 if (priv->start_calib) {
3011 iwl_chain_noise_calibration(priv, &priv->_agn.statistics); 3011 if (priv->cfg->bt_statistics) {
3012 3012 iwl_chain_noise_calibration(priv,
3013 iwl_sensitivity_calibration(priv, &priv->_agn.statistics); 3013 (void *)&priv->_agn.statistics_bt);
3014 iwl_sensitivity_calibration(priv,
3015 (void *)&priv->_agn.statistics_bt);
3016 } else {
3017 iwl_chain_noise_calibration(priv,
3018 (void *)&priv->_agn.statistics);
3019 iwl_sensitivity_calibration(priv,
3020 (void *)&priv->_agn.statistics);
3021 }
3014 } 3022 }
3015 3023
3016 mutex_unlock(&priv->mutex); 3024 mutex_unlock(&priv->mutex);