diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/dvm/debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/debugfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/iwlwifi/dvm/debugfs.c index 769a08bca86f..5b9533eef54d 100644 --- a/drivers/net/wireless/iwlwifi/dvm/debugfs.c +++ b/drivers/net/wireless/iwlwifi/dvm/debugfs.c | |||
@@ -305,7 +305,7 @@ static ssize_t iwl_dbgfs_nvm_read(struct file *file, | |||
305 | int pos = 0, ofs = 0, buf_size = 0; | 305 | int pos = 0, ofs = 0, buf_size = 0; |
306 | const u8 *ptr; | 306 | const u8 *ptr; |
307 | char *buf; | 307 | char *buf; |
308 | u16 eeprom_ver; | 308 | u16 nvm_ver; |
309 | size_t eeprom_len = priv->eeprom_blob_size; | 309 | size_t eeprom_len = priv->eeprom_blob_size; |
310 | buf_size = 4 * eeprom_len + 256; | 310 | buf_size = 4 * eeprom_len + 256; |
311 | 311 | ||
@@ -321,9 +321,9 @@ static ssize_t iwl_dbgfs_nvm_read(struct file *file, | |||
321 | if (!buf) | 321 | if (!buf) |
322 | return -ENOMEM; | 322 | return -ENOMEM; |
323 | 323 | ||
324 | eeprom_ver = priv->eeprom_data->eeprom_version; | 324 | nvm_ver = priv->nvm_data->nvm_version; |
325 | pos += scnprintf(buf + pos, buf_size - pos, | 325 | pos += scnprintf(buf + pos, buf_size - pos, |
326 | "NVM version: 0x%x\n", eeprom_ver); | 326 | "NVM version: 0x%x\n", nvm_ver); |
327 | for (ofs = 0 ; ofs < eeprom_len ; ofs += 16) { | 327 | for (ofs = 0 ; ofs < eeprom_len ; ofs += 16) { |
328 | pos += scnprintf(buf + pos, buf_size - pos, "0x%.4x ", ofs); | 328 | pos += scnprintf(buf + pos, buf_size - pos, "0x%.4x ", ofs); |
329 | hex_dump_to_buffer(ptr + ofs, 16 , 16, 2, buf + pos, | 329 | hex_dump_to_buffer(ptr + ofs, 16 , 16, 2, buf + pos, |
@@ -1333,17 +1333,17 @@ static ssize_t iwl_dbgfs_ucode_tx_stats_read(struct file *file, | |||
1333 | if (tx->tx_power.ant_a || tx->tx_power.ant_b || tx->tx_power.ant_c) { | 1333 | if (tx->tx_power.ant_a || tx->tx_power.ant_b || tx->tx_power.ant_c) { |
1334 | pos += scnprintf(buf + pos, bufsz - pos, | 1334 | pos += scnprintf(buf + pos, bufsz - pos, |
1335 | "tx power: (1/2 dB step)\n"); | 1335 | "tx power: (1/2 dB step)\n"); |
1336 | if ((priv->eeprom_data->valid_tx_ant & ANT_A) && | 1336 | if ((priv->nvm_data->valid_tx_ant & ANT_A) && |
1337 | tx->tx_power.ant_a) | 1337 | tx->tx_power.ant_a) |
1338 | pos += scnprintf(buf + pos, bufsz - pos, | 1338 | pos += scnprintf(buf + pos, bufsz - pos, |
1339 | fmt_hex, "antenna A:", | 1339 | fmt_hex, "antenna A:", |
1340 | tx->tx_power.ant_a); | 1340 | tx->tx_power.ant_a); |
1341 | if ((priv->eeprom_data->valid_tx_ant & ANT_B) && | 1341 | if ((priv->nvm_data->valid_tx_ant & ANT_B) && |
1342 | tx->tx_power.ant_b) | 1342 | tx->tx_power.ant_b) |
1343 | pos += scnprintf(buf + pos, bufsz - pos, | 1343 | pos += scnprintf(buf + pos, bufsz - pos, |
1344 | fmt_hex, "antenna B:", | 1344 | fmt_hex, "antenna B:", |
1345 | tx->tx_power.ant_b); | 1345 | tx->tx_power.ant_b); |
1346 | if ((priv->eeprom_data->valid_tx_ant & ANT_C) && | 1346 | if ((priv->nvm_data->valid_tx_ant & ANT_C) && |
1347 | tx->tx_power.ant_c) | 1347 | tx->tx_power.ant_c) |
1348 | pos += scnprintf(buf + pos, bufsz - pos, | 1348 | pos += scnprintf(buf + pos, bufsz - pos, |
1349 | fmt_hex, "antenna C:", | 1349 | fmt_hex, "antenna C:", |