diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-15 01:54:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:48:06 -0400 |
commit | 445c2dff409ef9de5d2f964d20917ab238fd266f (patch) | |
tree | fb4c9b7d31cd274a2a116aebd360ca1fedb27e43 /drivers/net/wireless/iwlwifi/iwl-calib.c | |
parent | da6833cb05cd76f4367fa7e4a783bf358c096faf (diff) |
iwlwifi: add debugfs to disable/enable run time calibration
This patch adds functionality to debugfs to enable or disable chain
noise or sensitivity calibrations.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-calib.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-calib.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-calib.c b/drivers/net/wireless/iwlwifi/iwl-calib.c index 1289d4c91abe..beb9716165c3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-calib.c +++ b/drivers/net/wireless/iwlwifi/iwl-calib.c | |||
@@ -426,6 +426,9 @@ void iwl_init_sensitivity(struct iwl_priv *priv) | |||
426 | struct iwl_sensitivity_data *data = NULL; | 426 | struct iwl_sensitivity_data *data = NULL; |
427 | const struct iwl_sensitivity_ranges *ranges = priv->hw_params.sens; | 427 | const struct iwl_sensitivity_ranges *ranges = priv->hw_params.sens; |
428 | 428 | ||
429 | if (priv->disable_sens_cal) | ||
430 | return; | ||
431 | |||
429 | IWL_DEBUG_CALIB("Start iwl_init_sensitivity\n"); | 432 | IWL_DEBUG_CALIB("Start iwl_init_sensitivity\n"); |
430 | 433 | ||
431 | /* Clear driver's sensitivity algo data */ | 434 | /* Clear driver's sensitivity algo data */ |
@@ -486,6 +489,9 @@ void iwl_sensitivity_calibration(struct iwl_priv *priv, | |||
486 | unsigned long flags; | 489 | unsigned long flags; |
487 | struct statistics_general_data statis; | 490 | struct statistics_general_data statis; |
488 | 491 | ||
492 | if (priv->disable_sens_cal) | ||
493 | return; | ||
494 | |||
489 | data = &(priv->sensitivity_data); | 495 | data = &(priv->sensitivity_data); |
490 | 496 | ||
491 | if (!iwl_is_associated(priv)) { | 497 | if (!iwl_is_associated(priv)) { |
@@ -608,6 +614,9 @@ void iwl_chain_noise_calibration(struct iwl_priv *priv, | |||
608 | unsigned long flags; | 614 | unsigned long flags; |
609 | struct statistics_rx_non_phy *rx_info = &(stat_resp->rx.general); | 615 | struct statistics_rx_non_phy *rx_info = &(stat_resp->rx.general); |
610 | 616 | ||
617 | if (priv->disable_chain_noise_cal) | ||
618 | return; | ||
619 | |||
611 | data = &(priv->chain_noise_data); | 620 | data = &(priv->chain_noise_data); |
612 | 621 | ||
613 | /* Accumulate just the first 20 beacons after the first association, | 622 | /* Accumulate just the first 20 beacons after the first association, |