diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-04-09 20:46:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-12 15:06:09 -0400 |
commit | 9e295116bb1f7300e5cdb87a41ce85b1efe79ec2 (patch) | |
tree | d6890b3d08df3371329e443ed8c23f1b8128de66 /drivers/net/wireless/iwlwifi/iwl-debugfs.c | |
parent | 7c5ba4a830cbb730770129b0004e2a06e47dbac5 (diff) |
iwlwifi: move hw_params into priv
The hw_params are mostly values that are
derived from the actual hardware config.
As such, while it is possible that MVM
will require similar ones, it makes more
sense -- at least for now -- to put them
into the DVM struct.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index c674009b799c..eaf5e66e603c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -1541,17 +1541,17 @@ static ssize_t iwl_dbgfs_ucode_tx_stats_read(struct file *file, | |||
1541 | if (tx->tx_power.ant_a || tx->tx_power.ant_b || tx->tx_power.ant_c) { | 1541 | if (tx->tx_power.ant_a || tx->tx_power.ant_b || tx->tx_power.ant_c) { |
1542 | pos += scnprintf(buf + pos, bufsz - pos, | 1542 | pos += scnprintf(buf + pos, bufsz - pos, |
1543 | "tx power: (1/2 dB step)\n"); | 1543 | "tx power: (1/2 dB step)\n"); |
1544 | if ((hw_params(priv).valid_tx_ant & ANT_A) && | 1544 | if ((priv->hw_params.valid_tx_ant & ANT_A) && |
1545 | tx->tx_power.ant_a) | 1545 | tx->tx_power.ant_a) |
1546 | pos += scnprintf(buf + pos, bufsz - pos, | 1546 | pos += scnprintf(buf + pos, bufsz - pos, |
1547 | fmt_hex, "antenna A:", | 1547 | fmt_hex, "antenna A:", |
1548 | tx->tx_power.ant_a); | 1548 | tx->tx_power.ant_a); |
1549 | if ((hw_params(priv).valid_tx_ant & ANT_B) && | 1549 | if ((priv->hw_params.valid_tx_ant & ANT_B) && |
1550 | tx->tx_power.ant_b) | 1550 | tx->tx_power.ant_b) |
1551 | pos += scnprintf(buf + pos, bufsz - pos, | 1551 | pos += scnprintf(buf + pos, bufsz - pos, |
1552 | fmt_hex, "antenna B:", | 1552 | fmt_hex, "antenna B:", |
1553 | tx->tx_power.ant_b); | 1553 | tx->tx_power.ant_b); |
1554 | if ((hw_params(priv).valid_tx_ant & ANT_C) && | 1554 | if ((priv->hw_params.valid_tx_ant & ANT_C) && |
1555 | tx->tx_power.ant_c) | 1555 | tx->tx_power.ant_c) |
1556 | pos += scnprintf(buf + pos, bufsz - pos, | 1556 | pos += scnprintf(buf + pos, bufsz - pos, |
1557 | fmt_hex, "antenna C:", | 1557 | fmt_hex, "antenna C:", |
@@ -2405,7 +2405,7 @@ static ssize_t iwl_dbgfs_protection_mode_read(struct file *file, | |||
2405 | if (cfg(priv)->ht_params) | 2405 | if (cfg(priv)->ht_params) |
2406 | pos += scnprintf(buf + pos, bufsz - pos, | 2406 | pos += scnprintf(buf + pos, bufsz - pos, |
2407 | "use %s for aggregation\n", | 2407 | "use %s for aggregation\n", |
2408 | (hw_params(priv).use_rts_for_aggregation) ? | 2408 | (priv->hw_params.use_rts_for_aggregation) ? |
2409 | "rts/cts" : "cts-to-self"); | 2409 | "rts/cts" : "cts-to-self"); |
2410 | else | 2410 | else |
2411 | pos += scnprintf(buf + pos, bufsz - pos, "N/A"); | 2411 | pos += scnprintf(buf + pos, bufsz - pos, "N/A"); |
@@ -2432,9 +2432,9 @@ static ssize_t iwl_dbgfs_protection_mode_write(struct file *file, | |||
2432 | if (sscanf(buf, "%d", &rts) != 1) | 2432 | if (sscanf(buf, "%d", &rts) != 1) |
2433 | return -EINVAL; | 2433 | return -EINVAL; |
2434 | if (rts) | 2434 | if (rts) |
2435 | hw_params(priv).use_rts_for_aggregation = true; | 2435 | priv->hw_params.use_rts_for_aggregation = true; |
2436 | else | 2436 | else |
2437 | hw_params(priv).use_rts_for_aggregation = false; | 2437 | priv->hw_params.use_rts_for_aggregation = false; |
2438 | return count; | 2438 | return count; |
2439 | } | 2439 | } |
2440 | 2440 | ||