diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 1ad4ff6bfff7..7b578d41101f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -704,7 +704,7 @@ static ssize_t iwl_dbgfs_thermal_throttling_read(struct file *file, | |||
704 | size_t count, loff_t *ppos) | 704 | size_t count, loff_t *ppos) |
705 | { | 705 | { |
706 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; | 706 | struct iwl_priv *priv = (struct iwl_priv *)file->private_data; |
707 | struct iwl_tt_mgmt *tt = &priv->power_data.tt; | 707 | struct iwl_tt_mgmt *tt = &priv->thermal_throttle; |
708 | struct iwl_tt_restriction *restriction; | 708 | struct iwl_tt_restriction *restriction; |
709 | char buf[100]; | 709 | char buf[100]; |
710 | int pos = 0; | 710 | int pos = 0; |
@@ -713,12 +713,11 @@ static ssize_t iwl_dbgfs_thermal_throttling_read(struct file *file, | |||
713 | 713 | ||
714 | pos += scnprintf(buf + pos, bufsz - pos, | 714 | pos += scnprintf(buf + pos, bufsz - pos, |
715 | "Thermal Throttling Mode: %s\n", | 715 | "Thermal Throttling Mode: %s\n", |
716 | (priv->power_data.adv_tt) | 716 | tt->advanced_tt ? "Advance" : "Legacy"); |
717 | ? "Advance" : "Legacy"); | ||
718 | pos += scnprintf(buf + pos, bufsz - pos, | 717 | pos += scnprintf(buf + pos, bufsz - pos, |
719 | "Thermal Throttling State: %d\n", | 718 | "Thermal Throttling State: %d\n", |
720 | tt->state); | 719 | tt->state); |
721 | if (priv->power_data.adv_tt) { | 720 | if (tt->advanced_tt) { |
722 | restriction = tt->restriction + tt->state; | 721 | restriction = tt->restriction + tt->state; |
723 | pos += scnprintf(buf + pos, bufsz - pos, | 722 | pos += scnprintf(buf + pos, bufsz - pos, |
724 | "Tx mode: %d\n", | 723 | "Tx mode: %d\n", |