diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index dd502e82e410..b6740c33b519 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -1546,15 +1546,18 @@ static ssize_t iwl_dbgfs_ucode_tx_stats_read(struct file *file, | |||
1546 | if (tx->tx_power.ant_a || tx->tx_power.ant_b || tx->tx_power.ant_c) { | 1546 | if (tx->tx_power.ant_a || tx->tx_power.ant_b || tx->tx_power.ant_c) { |
1547 | pos += scnprintf(buf + pos, bufsz - pos, | 1547 | pos += scnprintf(buf + pos, bufsz - pos, |
1548 | "tx power: (1/2 dB step)\n"); | 1548 | "tx power: (1/2 dB step)\n"); |
1549 | if ((cfg(priv)->valid_tx_ant & ANT_A) && tx->tx_power.ant_a) | 1549 | if ((hw_params(priv).valid_tx_ant & ANT_A) && |
1550 | tx->tx_power.ant_a) | ||
1550 | pos += scnprintf(buf + pos, bufsz - pos, | 1551 | pos += scnprintf(buf + pos, bufsz - pos, |
1551 | fmt_hex, "antenna A:", | 1552 | fmt_hex, "antenna A:", |
1552 | tx->tx_power.ant_a); | 1553 | tx->tx_power.ant_a); |
1553 | if ((cfg(priv)->valid_tx_ant & ANT_B) && tx->tx_power.ant_b) | 1554 | if ((hw_params(priv).valid_tx_ant & ANT_B) && |
1555 | tx->tx_power.ant_b) | ||
1554 | pos += scnprintf(buf + pos, bufsz - pos, | 1556 | pos += scnprintf(buf + pos, bufsz - pos, |
1555 | fmt_hex, "antenna B:", | 1557 | fmt_hex, "antenna B:", |
1556 | tx->tx_power.ant_b); | 1558 | tx->tx_power.ant_b); |
1557 | if ((cfg(priv)->valid_tx_ant & ANT_C) && tx->tx_power.ant_c) | 1559 | if ((hw_params(priv).valid_tx_ant & ANT_C) && |
1560 | tx->tx_power.ant_c) | ||
1558 | pos += scnprintf(buf + pos, bufsz - pos, | 1561 | pos += scnprintf(buf + pos, bufsz - pos, |
1559 | fmt_hex, "antenna C:", | 1562 | fmt_hex, "antenna C:", |
1560 | tx->tx_power.ant_c); | 1563 | tx->tx_power.ant_c); |