aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2010-04-27 17:00:28 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-05-10 18:08:48 -0400
commit6e5c800e75fad95f2a12d45d9b548b23834a13ff (patch)
tree21b7e2cdac0ecdd9b3c2c4d3e2987a4fb402b938 /drivers
parent4e7033ef491a8447247e77b20626cbc197a2eb83 (diff)
iwlwifi: use .cfg to enable/disable continuous ucode trace
Instead of checking device type for enable/disable continuous ucode trace function; put it in .cfg for better control and more flexibilities. 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')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-1000.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c7
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-6000.c7
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h1
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c3
6 files changed, 20 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c
index fb59af2d41c..f9f8a567593 100644
--- a/drivers/net/wireless/iwlwifi/iwl-1000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-1000.c
@@ -260,6 +260,7 @@ struct iwl_cfg iwl1000_bgn_cfg = {
260 .chain_noise_scale = 1000, 260 .chain_noise_scale = 1000,
261 .monitor_recover_period = IWL_MONITORING_PERIOD, 261 .monitor_recover_period = IWL_MONITORING_PERIOD,
262 .max_event_log_size = 128, 262 .max_event_log_size = 128,
263 .ucode_tracing = true,
263}; 264};
264 265
265struct iwl_cfg iwl1000_bg_cfg = { 266struct iwl_cfg iwl1000_bg_cfg = {
@@ -289,6 +290,7 @@ struct iwl_cfg iwl1000_bg_cfg = {
289 .chain_noise_scale = 1000, 290 .chain_noise_scale = 1000,
290 .monitor_recover_period = IWL_MONITORING_PERIOD, 291 .monitor_recover_period = IWL_MONITORING_PERIOD,
291 .max_event_log_size = 128, 292 .max_event_log_size = 128,
293 .ucode_tracing = true,
292}; 294};
293 295
294MODULE_FIRMWARE(IWL1000_MODULE_FIRMWARE(IWL1000_UCODE_API_MAX)); 296MODULE_FIRMWARE(IWL1000_MODULE_FIRMWARE(IWL1000_UCODE_API_MAX));
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 460aea3240c..a756fd4838d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -2263,7 +2263,7 @@ struct iwl_cfg iwl4965_agn_cfg = {
2263 .temperature_kelvin = true, 2263 .temperature_kelvin = true,
2264 .max_event_log_size = 512, 2264 .max_event_log_size = 512,
2265 .tx_power_by_driver = true, 2265 .tx_power_by_driver = true,
2266 2266 .ucode_tracing = true,
2267 /* 2267 /*
2268 * Force use of chains B and C for scan RX on 5 GHz band 2268 * Force use of chains B and C for scan RX on 5 GHz band
2269 * because the device has off-channel reception on chain A. 2269 * because the device has off-channel reception on chain A.
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 115d3ea1142..c32db495682 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -466,6 +466,7 @@ struct iwl_cfg iwl5300_agn_cfg = {
466 .chain_noise_scale = 1000, 466 .chain_noise_scale = 1000,
467 .monitor_recover_period = IWL_MONITORING_PERIOD, 467 .monitor_recover_period = IWL_MONITORING_PERIOD,
468 .max_event_log_size = 512, 468 .max_event_log_size = 512,
469 .ucode_tracing = true,
469}; 470};
470 471
471struct iwl_cfg iwl5100_bgn_cfg = { 472struct iwl_cfg iwl5100_bgn_cfg = {
@@ -494,6 +495,7 @@ struct iwl_cfg iwl5100_bgn_cfg = {
494 .chain_noise_scale = 1000, 495 .chain_noise_scale = 1000,
495 .monitor_recover_period = IWL_MONITORING_PERIOD, 496 .monitor_recover_period = IWL_MONITORING_PERIOD,
496 .max_event_log_size = 512, 497 .max_event_log_size = 512,
498 .ucode_tracing = true,
497}; 499};
498 500
499struct iwl_cfg iwl5100_abg_cfg = { 501struct iwl_cfg iwl5100_abg_cfg = {
@@ -520,6 +522,7 @@ struct iwl_cfg iwl5100_abg_cfg = {
520 .chain_noise_scale = 1000, 522 .chain_noise_scale = 1000,
521 .monitor_recover_period = IWL_MONITORING_PERIOD, 523 .monitor_recover_period = IWL_MONITORING_PERIOD,
522 .max_event_log_size = 512, 524 .max_event_log_size = 512,
525 .ucode_tracing = true,
523}; 526};
524 527
525struct iwl_cfg iwl5100_agn_cfg = { 528struct iwl_cfg iwl5100_agn_cfg = {
@@ -548,6 +551,7 @@ struct iwl_cfg iwl5100_agn_cfg = {
548 .chain_noise_scale = 1000, 551 .chain_noise_scale = 1000,
549 .monitor_recover_period = IWL_MONITORING_PERIOD, 552 .monitor_recover_period = IWL_MONITORING_PERIOD,
550 .max_event_log_size = 512, 553 .max_event_log_size = 512,
554 .ucode_tracing = true,
551}; 555};
552 556
553struct iwl_cfg iwl5350_agn_cfg = { 557struct iwl_cfg iwl5350_agn_cfg = {
@@ -576,6 +580,7 @@ struct iwl_cfg iwl5350_agn_cfg = {
576 .chain_noise_scale = 1000, 580 .chain_noise_scale = 1000,
577 .monitor_recover_period = IWL_MONITORING_PERIOD, 581 .monitor_recover_period = IWL_MONITORING_PERIOD,
578 .max_event_log_size = 512, 582 .max_event_log_size = 512,
583 .ucode_tracing = true,
579}; 584};
580 585
581struct iwl_cfg iwl5150_agn_cfg = { 586struct iwl_cfg iwl5150_agn_cfg = {
@@ -604,6 +609,7 @@ struct iwl_cfg iwl5150_agn_cfg = {
604 .chain_noise_scale = 1000, 609 .chain_noise_scale = 1000,
605 .monitor_recover_period = IWL_MONITORING_PERIOD, 610 .monitor_recover_period = IWL_MONITORING_PERIOD,
606 .max_event_log_size = 512, 611 .max_event_log_size = 512,
612 .ucode_tracing = true,
607}; 613};
608 614
609struct iwl_cfg iwl5150_abg_cfg = { 615struct iwl_cfg iwl5150_abg_cfg = {
@@ -630,6 +636,7 @@ struct iwl_cfg iwl5150_abg_cfg = {
630 .chain_noise_scale = 1000, 636 .chain_noise_scale = 1000,
631 .monitor_recover_period = IWL_MONITORING_PERIOD, 637 .monitor_recover_period = IWL_MONITORING_PERIOD,
632 .max_event_log_size = 512, 638 .max_event_log_size = 512,
639 .ucode_tracing = true,
633}; 640};
634 641
635MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); 642MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX));
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c
index f0570871fbb..7cd45fe9b77 100644
--- a/drivers/net/wireless/iwlwifi/iwl-6000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-6000.c
@@ -442,6 +442,7 @@ struct iwl_cfg iwl6000g2a_2agn_cfg = {
442 .chain_noise_scale = 1000, 442 .chain_noise_scale = 1000,
443 .monitor_recover_period = IWL_MONITORING_PERIOD, 443 .monitor_recover_period = IWL_MONITORING_PERIOD,
444 .max_event_log_size = 512, 444 .max_event_log_size = 512,
445 .ucode_tracing = true,
445}; 446};
446 447
447/* 448/*
@@ -479,6 +480,7 @@ struct iwl_cfg iwl6000i_2agn_cfg = {
479 .chain_noise_scale = 1000, 480 .chain_noise_scale = 1000,
480 .monitor_recover_period = IWL_MONITORING_PERIOD, 481 .monitor_recover_period = IWL_MONITORING_PERIOD,
481 .max_event_log_size = 1024, 482 .max_event_log_size = 1024,
483 .ucode_tracing = true,
482}; 484};
483 485
484struct iwl_cfg iwl6000i_2abg_cfg = { 486struct iwl_cfg iwl6000i_2abg_cfg = {
@@ -511,6 +513,7 @@ struct iwl_cfg iwl6000i_2abg_cfg = {
511 .chain_noise_scale = 1000, 513 .chain_noise_scale = 1000,
512 .monitor_recover_period = IWL_MONITORING_PERIOD, 514 .monitor_recover_period = IWL_MONITORING_PERIOD,
513 .max_event_log_size = 1024, 515 .max_event_log_size = 1024,
516 .ucode_tracing = true,
514}; 517};
515 518
516struct iwl_cfg iwl6000i_2bg_cfg = { 519struct iwl_cfg iwl6000i_2bg_cfg = {
@@ -543,6 +546,7 @@ struct iwl_cfg iwl6000i_2bg_cfg = {
543 .chain_noise_scale = 1000, 546 .chain_noise_scale = 1000,
544 .monitor_recover_period = IWL_MONITORING_PERIOD, 547 .monitor_recover_period = IWL_MONITORING_PERIOD,
545 .max_event_log_size = 1024, 548 .max_event_log_size = 1024,
549 .ucode_tracing = true,
546}; 550};
547 551
548struct iwl_cfg iwl6050_2agn_cfg = { 552struct iwl_cfg iwl6050_2agn_cfg = {
@@ -577,6 +581,7 @@ struct iwl_cfg iwl6050_2agn_cfg = {
577 .chain_noise_scale = 1500, 581 .chain_noise_scale = 1500,
578 .monitor_recover_period = IWL_MONITORING_PERIOD, 582 .monitor_recover_period = IWL_MONITORING_PERIOD,
579 .max_event_log_size = 1024, 583 .max_event_log_size = 1024,
584 .ucode_tracing = true,
580}; 585};
581 586
582struct iwl_cfg iwl6050_2abg_cfg = { 587struct iwl_cfg iwl6050_2abg_cfg = {
@@ -609,6 +614,7 @@ struct iwl_cfg iwl6050_2abg_cfg = {
609 .chain_noise_scale = 1500, 614 .chain_noise_scale = 1500,
610 .monitor_recover_period = IWL_MONITORING_PERIOD, 615 .monitor_recover_period = IWL_MONITORING_PERIOD,
611 .max_event_log_size = 1024, 616 .max_event_log_size = 1024,
617 .ucode_tracing = true,
612}; 618};
613 619
614struct iwl_cfg iwl6000_3agn_cfg = { 620struct iwl_cfg iwl6000_3agn_cfg = {
@@ -643,6 +649,7 @@ struct iwl_cfg iwl6000_3agn_cfg = {
643 .chain_noise_scale = 1000, 649 .chain_noise_scale = 1000,
644 .monitor_recover_period = IWL_MONITORING_PERIOD, 650 .monitor_recover_period = IWL_MONITORING_PERIOD,
645 .max_event_log_size = 1024, 651 .max_event_log_size = 1024,
652 .ucode_tracing = true,
646}; 653};
647 654
648MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX)); 655MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index 60d26e4e6ed..5034dc0037a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -320,6 +320,7 @@ struct iwl_cfg {
320 bool temperature_kelvin; 320 bool temperature_kelvin;
321 u32 max_event_log_size; 321 u32 max_event_log_size;
322 const bool tx_power_by_driver; 322 const bool tx_power_by_driver;
323 const bool ucode_tracing;
323 u8 scan_antennas[IEEE80211_NUM_BANDS]; 324 u8 scan_antennas[IEEE80211_NUM_BANDS];
324}; 325};
325 326
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index 0faadf3a8b8..59355fae1f5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -1640,8 +1640,9 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name)
1640 if ((priv->hw_rev & CSR_HW_REV_TYPE_MSK) != CSR_HW_REV_TYPE_3945) { 1640 if ((priv->hw_rev & CSR_HW_REV_TYPE_MSK) != CSR_HW_REV_TYPE_3945) {
1641 DEBUGFS_ADD_FILE(sensitivity, dir_debug, S_IRUSR); 1641 DEBUGFS_ADD_FILE(sensitivity, dir_debug, S_IRUSR);
1642 DEBUGFS_ADD_FILE(chain_noise, dir_debug, S_IRUSR); 1642 DEBUGFS_ADD_FILE(chain_noise, dir_debug, S_IRUSR);
1643 DEBUGFS_ADD_FILE(ucode_tracing, dir_debug, S_IWUSR | S_IRUSR);
1644 } 1643 }
1644 if (priv->cfg->ucode_tracing)
1645 DEBUGFS_ADD_FILE(ucode_tracing, dir_debug, S_IWUSR | S_IRUSR);
1645 DEBUGFS_ADD_FILE(rxon_flags, dir_debug, S_IWUSR); 1646 DEBUGFS_ADD_FILE(rxon_flags, dir_debug, S_IWUSR);
1646 DEBUGFS_ADD_FILE(rxon_filter_flags, dir_debug, S_IWUSR); 1647 DEBUGFS_ADD_FILE(rxon_filter_flags, dir_debug, S_IWUSR);
1647 DEBUGFS_ADD_BOOL(disable_sensitivity, dir_rf, &priv->disable_sens_cal); 1648 DEBUGFS_ADD_BOOL(disable_sensitivity, dir_rf, &priv->disable_sens_cal);