diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-04-03 11:14:41 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-04-08 11:02:03 -0400 |
commit | 703bc583cb98a24eeedd297ee59dfa12852897d1 (patch) | |
tree | 73b3ec80076189fe0b643c7d4477b69af3273d10 | |
parent | ae89726a02049e8f61bb3c8bf5dbf1fc06527a07 (diff) |
iwlagn: sensitivity and chain noise done by driver
_agn driver should perform both sensitivity and chain noise calib.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 16 |
6 files changed, 6 insertions, 30 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index 5a7281047a13..d1d7852f0ee4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -245,8 +245,6 @@ static struct iwl_base_params iwl1000_base_params = { | |||
245 | .wd_timeout = IWL_DEF_WD_TIMEOUT, | 245 | .wd_timeout = IWL_DEF_WD_TIMEOUT, |
246 | .max_event_log_size = 128, | 246 | .max_event_log_size = 128, |
247 | .ucode_tracing = true, | 247 | .ucode_tracing = true, |
248 | .sensitivity_calib_by_driver = true, | ||
249 | .chain_noise_calib_by_driver = true, | ||
250 | }; | 248 | }; |
251 | static struct iwl_ht_params iwl1000_ht_params = { | 249 | static struct iwl_ht_params iwl1000_ht_params = { |
252 | .ht_greenfield_support = true, | 250 | .ht_greenfield_support = true, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index 9daf888b733c..805b0394850e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -354,8 +354,6 @@ static struct iwl_base_params iwl2000_base_params = { | |||
354 | .wd_timeout = IWL_DEF_WD_TIMEOUT, | 354 | .wd_timeout = IWL_DEF_WD_TIMEOUT, |
355 | .max_event_log_size = 512, | 355 | .max_event_log_size = 512, |
356 | .ucode_tracing = true, | 356 | .ucode_tracing = true, |
357 | .sensitivity_calib_by_driver = true, | ||
358 | .chain_noise_calib_by_driver = true, | ||
359 | .shadow_reg_enable = true, | 357 | .shadow_reg_enable = true, |
360 | }; | 358 | }; |
361 | 359 | ||
@@ -376,8 +374,6 @@ static struct iwl_base_params iwl2030_base_params = { | |||
376 | .wd_timeout = IWL_LONG_WD_TIMEOUT, | 374 | .wd_timeout = IWL_LONG_WD_TIMEOUT, |
377 | .max_event_log_size = 512, | 375 | .max_event_log_size = 512, |
378 | .ucode_tracing = true, | 376 | .ucode_tracing = true, |
379 | .sensitivity_calib_by_driver = true, | ||
380 | .chain_noise_calib_by_driver = true, | ||
381 | .shadow_reg_enable = true, | 377 | .shadow_reg_enable = true, |
382 | }; | 378 | }; |
383 | 379 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 8106423a2c84..357137f08632 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -471,8 +471,6 @@ static struct iwl_base_params iwl5000_base_params = { | |||
471 | .wd_timeout = IWL_LONG_WD_TIMEOUT, | 471 | .wd_timeout = IWL_LONG_WD_TIMEOUT, |
472 | .max_event_log_size = 512, | 472 | .max_event_log_size = 512, |
473 | .ucode_tracing = true, | 473 | .ucode_tracing = true, |
474 | .sensitivity_calib_by_driver = true, | ||
475 | .chain_noise_calib_by_driver = true, | ||
476 | }; | 474 | }; |
477 | static struct iwl_ht_params iwl5000_ht_params = { | 475 | static struct iwl_ht_params iwl5000_ht_params = { |
478 | .ht_greenfield_support = true, | 476 | .ht_greenfield_support = true, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 7f0715eb0593..8847b2113978 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -443,8 +443,6 @@ static struct iwl_base_params iwl6000_base_params = { | |||
443 | .wd_timeout = IWL_DEF_WD_TIMEOUT, | 443 | .wd_timeout = IWL_DEF_WD_TIMEOUT, |
444 | .max_event_log_size = 512, | 444 | .max_event_log_size = 512, |
445 | .ucode_tracing = true, | 445 | .ucode_tracing = true, |
446 | .sensitivity_calib_by_driver = true, | ||
447 | .chain_noise_calib_by_driver = true, | ||
448 | .shadow_reg_enable = true, | 446 | .shadow_reg_enable = true, |
449 | }; | 447 | }; |
450 | 448 | ||
@@ -464,8 +462,6 @@ static struct iwl_base_params iwl6050_base_params = { | |||
464 | .wd_timeout = IWL_DEF_WD_TIMEOUT, | 462 | .wd_timeout = IWL_DEF_WD_TIMEOUT, |
465 | .max_event_log_size = 1024, | 463 | .max_event_log_size = 1024, |
466 | .ucode_tracing = true, | 464 | .ucode_tracing = true, |
467 | .sensitivity_calib_by_driver = true, | ||
468 | .chain_noise_calib_by_driver = true, | ||
469 | .shadow_reg_enable = true, | 465 | .shadow_reg_enable = true, |
470 | }; | 466 | }; |
471 | static struct iwl_base_params iwl6000_g2_base_params = { | 467 | static struct iwl_base_params iwl6000_g2_base_params = { |
@@ -484,8 +480,6 @@ static struct iwl_base_params iwl6000_g2_base_params = { | |||
484 | .wd_timeout = IWL_LONG_WD_TIMEOUT, | 480 | .wd_timeout = IWL_LONG_WD_TIMEOUT, |
485 | .max_event_log_size = 512, | 481 | .max_event_log_size = 512, |
486 | .ucode_tracing = true, | 482 | .ucode_tracing = true, |
487 | .sensitivity_calib_by_driver = true, | ||
488 | .chain_noise_calib_by_driver = true, | ||
489 | .shadow_reg_enable = true, | 483 | .shadow_reg_enable = true, |
490 | }; | 484 | }; |
491 | 485 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 98dc544f112c..57763c013ca9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -251,10 +251,6 @@ struct iwl_mod_params { | |||
251 | * @temperature_kelvin: temperature report by uCode in kelvin | 251 | * @temperature_kelvin: temperature report by uCode in kelvin |
252 | * @max_event_log_size: size of event log buffer size for ucode event logging | 252 | * @max_event_log_size: size of event log buffer size for ucode event logging |
253 | * @ucode_tracing: support ucode continuous tracing | 253 | * @ucode_tracing: support ucode continuous tracing |
254 | * @sensitivity_calib_by_driver: driver has the capability to perform | ||
255 | * sensitivity calibration operation | ||
256 | * @chain_noise_calib_by_driver: driver has the capability to perform | ||
257 | * chain noise calibration operation | ||
258 | * @shadow_reg_enable: HW shadhow register bit | 254 | * @shadow_reg_enable: HW shadhow register bit |
259 | */ | 255 | */ |
260 | struct iwl_base_params { | 256 | struct iwl_base_params { |
@@ -277,8 +273,6 @@ struct iwl_base_params { | |||
277 | bool temperature_kelvin; | 273 | bool temperature_kelvin; |
278 | u32 max_event_log_size; | 274 | u32 max_event_log_size; |
279 | const bool ucode_tracing; | 275 | const bool ucode_tracing; |
280 | const bool sensitivity_calib_by_driver; | ||
281 | const bool chain_noise_calib_by_driver; | ||
282 | const bool shadow_reg_enable; | 276 | const bool shadow_reg_enable; |
283 | }; | 277 | }; |
284 | /* | 278 | /* |
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 9b1f9621b630..c02f06901f8c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -1747,10 +1747,8 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name) | |||
1747 | DEBUGFS_ADD_FILE(txfifo_flush, dir_debug, S_IWUSR); | 1747 | DEBUGFS_ADD_FILE(txfifo_flush, dir_debug, S_IWUSR); |
1748 | DEBUGFS_ADD_FILE(protection_mode, dir_debug, S_IWUSR | S_IRUSR); | 1748 | DEBUGFS_ADD_FILE(protection_mode, dir_debug, S_IWUSR | S_IRUSR); |
1749 | 1749 | ||
1750 | if (priv->cfg->base_params->sensitivity_calib_by_driver) | 1750 | DEBUGFS_ADD_FILE(sensitivity, dir_debug, S_IRUSR); |
1751 | DEBUGFS_ADD_FILE(sensitivity, dir_debug, S_IRUSR); | 1751 | DEBUGFS_ADD_FILE(chain_noise, dir_debug, S_IRUSR); |
1752 | if (priv->cfg->base_params->chain_noise_calib_by_driver) | ||
1753 | DEBUGFS_ADD_FILE(chain_noise, dir_debug, S_IRUSR); | ||
1754 | if (priv->cfg->base_params->ucode_tracing) | 1752 | if (priv->cfg->base_params->ucode_tracing) |
1755 | DEBUGFS_ADD_FILE(ucode_tracing, dir_debug, S_IWUSR | S_IRUSR); | 1753 | DEBUGFS_ADD_FILE(ucode_tracing, dir_debug, S_IWUSR | S_IRUSR); |
1756 | if (iwl_bt_statistics(priv)) | 1754 | if (iwl_bt_statistics(priv)) |
@@ -1761,12 +1759,10 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name) | |||
1761 | DEBUGFS_ADD_FILE(wd_timeout, dir_debug, S_IWUSR); | 1759 | DEBUGFS_ADD_FILE(wd_timeout, dir_debug, S_IWUSR); |
1762 | if (iwl_advanced_bt_coexist(priv)) | 1760 | if (iwl_advanced_bt_coexist(priv)) |
1763 | DEBUGFS_ADD_FILE(bt_traffic, dir_debug, S_IRUSR); | 1761 | DEBUGFS_ADD_FILE(bt_traffic, dir_debug, S_IRUSR); |
1764 | if (priv->cfg->base_params->sensitivity_calib_by_driver) | 1762 | DEBUGFS_ADD_BOOL(disable_sensitivity, dir_rf, |
1765 | DEBUGFS_ADD_BOOL(disable_sensitivity, dir_rf, | 1763 | &priv->disable_sens_cal); |
1766 | &priv->disable_sens_cal); | 1764 | DEBUGFS_ADD_BOOL(disable_chain_noise, dir_rf, |
1767 | if (priv->cfg->base_params->chain_noise_calib_by_driver) | 1765 | &priv->disable_chain_noise_cal); |
1768 | DEBUGFS_ADD_BOOL(disable_chain_noise, dir_rf, | ||
1769 | &priv->disable_chain_noise_cal); | ||
1770 | return 0; | 1766 | return 0; |
1771 | 1767 | ||
1772 | err: | 1768 | err: |