diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-06-18 02:25:00 +0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-06-26 01:52:47 +0400 |
commit | 680788aca3dcc24b932eb7a4219ab921ac5bf2d0 (patch) | |
tree | f896dc83bd04df3c2fd001c844e4a6132b78fda3 /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | 178d1596073e81927a24221dba6c55ae0048a207 (diff) | |
download | linux-680788aca3dcc24b932eb7a4219ab921ac5bf2d0.tar.xz |
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-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 93d513e14186..a07310fefcf2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c @@ -406,6 +406,11 @@ static bool iwl3945_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; + } memcpy(¤t_stat, pkt->u.raw, sizeof(struct iwl3945_notif_statistics)); /* |