diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-06-17 15:25:00 -0700 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-06-25 14:52:47 -0700 |
commit | 680788aca3dcc24b932eb7a4219ab921ac5bf2d0 (patch) | |
tree | f896dc83bd04df3c2fd001c844e4a6132b78fda3 /drivers/net/wireless/iwlwifi/iwl-agn-rx.c | |
parent | 178d1596073e81927a24221dba6c55ae0048a207 (diff) | |
download | kernel_samsung_smdk4412-680788aca3dcc24b932eb7a4219ab921ac5bf2d0.zip kernel_samsung_smdk4412-680788aca3dcc24b932eb7a4219ab921ac5bf2d0.tar.gz kernel_samsung_smdk4412-680788aca3dcc24b932eb7a4219ab921ac5bf2d0.tar.bz2 |
iwlwifi: add a mechanism to disable plcp error checking
For some devices, especially the upcoming new devices, the plcp error
rate is different. Before the correct error rate can be determine, also
for the debugging purpose; add the mechanism to disable plcp error checking
which cause radio reset happen.
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/net/wireless/iwlwifi/iwl-agn-rx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c index ad2bead..d54edc3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c @@ -166,6 +166,12 @@ bool iwl_good_plcp_health(struct iwl_priv *priv, unsigned int plcp_msec; unsigned long plcp_received_jiffies; + if (priv->cfg->plcp_delta_threshold == + IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE) { + IWL_DEBUG_RADIO(priv, "plcp_err check disabled\n"); + return rc; + } + /* * check for plcp_err and trigger radio reset if it exceeds * the plcp error threshold plcp_delta. |