49 lines
2.3 KiB
Diff
49 lines
2.3 KiB
Diff
Backport of the following upstream commit...
|
|
|
|
commit 6c3872e1d52290dcd506473028867cacc6b7393d
|
|
Author: Trieu 'Andrew' Nguyen <trieux.t.nguyen@intel.com>
|
|
Date: Mon Feb 8 13:53:05 2010 -0800
|
|
|
|
iwlwifi: Adjusting PLCP error threshold for 1000 NIC
|
|
|
|
While testing the station with the NIC 1000 family, it is found that
|
|
the plcp error can easily exceed 50 value in 100mSecs. This creates
|
|
unneccessary radio reset/tuning. This patch raises the PLCP error
|
|
threshold of the NIC 1000 from 50 to 200 error count.
|
|
|
|
Signed-off-by: Trieu 'Andrew' Nguyen <trieux.t.nguyen@intel.com>
|
|
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
|
|
|
|
diff -up linux-2.6.33.noarch/drivers/net/wireless/iwlwifi/iwl-1000.c.orig linux-2.6.33.noarch/drivers/net/wireless/iwlwifi/iwl-1000.c
|
|
--- linux-2.6.33.noarch/drivers/net/wireless/iwlwifi/iwl-1000.c.orig 2010-04-13 13:44:14.000000000 -0400
|
|
+++ linux-2.6.33.noarch/drivers/net/wireless/iwlwifi/iwl-1000.c 2010-04-13 13:45:51.000000000 -0400
|
|
@@ -174,7 +174,7 @@ struct iwl_cfg iwl1000_bgn_cfg = {
|
|
.chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
|
|
.support_ct_kill_exit = true,
|
|
.sm_ps_mode = WLAN_HT_CAP_SM_PS_DISABLED,
|
|
- .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
|
|
+ .plcp_delta_threshold = IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF,
|
|
};
|
|
|
|
struct iwl_cfg iwl1000_bg_cfg = {
|
|
@@ -201,7 +201,7 @@ struct iwl_cfg iwl1000_bg_cfg = {
|
|
.led_compensation = 51,
|
|
.chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
|
|
.support_ct_kill_exit = true,
|
|
- .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
|
|
+ .plcp_delta_threshold = IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF,
|
|
};
|
|
|
|
MODULE_FIRMWARE(IWL1000_MODULE_FIRMWARE(IWL1000_UCODE_API_MAX));
|
|
diff -up linux-2.6.33.noarch/drivers/net/wireless/iwlwifi/iwl-dev.h.orig linux-2.6.33.noarch/drivers/net/wireless/iwlwifi/iwl-dev.h
|
|
--- linux-2.6.33.noarch/drivers/net/wireless/iwlwifi/iwl-dev.h.orig 2010-04-13 13:44:14.000000000 -0400
|
|
+++ linux-2.6.33.noarch/drivers/net/wireless/iwlwifi/iwl-dev.h 2010-04-13 13:45:06.000000000 -0400
|
|
@@ -991,6 +991,7 @@ struct iwl_switch_rxon {
|
|
#define IWL_MAX_PLCP_ERR_THRESHOLD_MIN (0)
|
|
#define IWL_MAX_PLCP_ERR_THRESHOLD_DEF (50)
|
|
#define IWL_MAX_PLCP_ERR_LONG_THRESHOLD_DEF (100)
|
|
+#define IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF (200)
|
|
#define IWL_MAX_PLCP_ERR_THRESHOLD_MAX (255)
|
|
|
|
enum iwl_reset {
|