aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index cee3d12eb383..7d9ffc1575de 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -1430,10 +1430,10 @@ static ssize_t iwl_dbgfs_plcp_delta_write(struct file *file,
1430 return -EFAULT; 1430 return -EFAULT;
1431 if (sscanf(buf, "%d", &plcp) != 1) 1431 if (sscanf(buf, "%d", &plcp) != 1)
1432 return -EINVAL; 1432 return -EINVAL;
1433 if ((plcp <= IWL_MAX_PLCP_ERR_THRESHOLD_MIN) || 1433 if ((plcp < IWL_MAX_PLCP_ERR_THRESHOLD_MIN) ||
1434 (plcp > IWL_MAX_PLCP_ERR_THRESHOLD_MAX)) 1434 (plcp > IWL_MAX_PLCP_ERR_THRESHOLD_MAX))
1435 priv->cfg->plcp_delta_threshold = 1435 priv->cfg->plcp_delta_threshold =
1436 IWL_MAX_PLCP_ERR_THRESHOLD_DEF; 1436 IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE;
1437 else 1437 else
1438 priv->cfg->plcp_delta_threshold = plcp; 1438 priv->cfg->plcp_delta_threshold = plcp;
1439 return count; 1439 return count;