diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index e0b31a2a1dac..265ad01a443f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -1642,6 +1642,18 @@ static ssize_t iwl_dbgfs_protection_mode_write(struct file *file, | |||
1642 | return count; | 1642 | return count; |
1643 | } | 1643 | } |
1644 | 1644 | ||
1645 | static ssize_t iwl_dbgfs_reply_tx_error_read(struct file *file, | ||
1646 | char __user *user_buf, | ||
1647 | size_t count, loff_t *ppos) | ||
1648 | { | ||
1649 | struct iwl_priv *priv = file->private_data; | ||
1650 | |||
1651 | if (priv->cfg->ops->lib->debugfs_ops.reply_tx_error) | ||
1652 | return priv->cfg->ops->lib->debugfs_ops.reply_tx_error( | ||
1653 | file, user_buf, count, ppos); | ||
1654 | else | ||
1655 | return -ENODATA; | ||
1656 | } | ||
1645 | DEBUGFS_READ_FILE_OPS(rx_statistics); | 1657 | DEBUGFS_READ_FILE_OPS(rx_statistics); |
1646 | DEBUGFS_READ_FILE_OPS(tx_statistics); | 1658 | DEBUGFS_READ_FILE_OPS(tx_statistics); |
1647 | DEBUGFS_READ_WRITE_FILE_OPS(traffic_log); | 1659 | DEBUGFS_READ_WRITE_FILE_OPS(traffic_log); |
@@ -1668,6 +1680,7 @@ DEBUGFS_READ_FILE_OPS(ucode_bt_stats); | |||
1668 | DEBUGFS_WRITE_FILE_OPS(monitor_period); | 1680 | DEBUGFS_WRITE_FILE_OPS(monitor_period); |
1669 | DEBUGFS_READ_FILE_OPS(bt_traffic); | 1681 | DEBUGFS_READ_FILE_OPS(bt_traffic); |
1670 | DEBUGFS_READ_WRITE_FILE_OPS(protection_mode); | 1682 | DEBUGFS_READ_WRITE_FILE_OPS(protection_mode); |
1683 | DEBUGFS_READ_FILE_OPS(reply_tx_error); | ||
1671 | 1684 | ||
1672 | /* | 1685 | /* |
1673 | * Create the debugfs files and directories | 1686 | * Create the debugfs files and directories |
@@ -1738,6 +1751,7 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name) | |||
1738 | DEBUGFS_ADD_FILE(ucode_tracing, dir_debug, S_IWUSR | S_IRUSR); | 1751 | DEBUGFS_ADD_FILE(ucode_tracing, dir_debug, S_IWUSR | S_IRUSR); |
1739 | if (priv->cfg->bt_statistics) | 1752 | if (priv->cfg->bt_statistics) |
1740 | DEBUGFS_ADD_FILE(ucode_bt_stats, dir_debug, S_IRUSR); | 1753 | DEBUGFS_ADD_FILE(ucode_bt_stats, dir_debug, S_IRUSR); |
1754 | DEBUGFS_ADD_FILE(reply_tx_error, dir_debug, S_IRUSR); | ||
1741 | DEBUGFS_ADD_FILE(rxon_flags, dir_debug, S_IWUSR); | 1755 | DEBUGFS_ADD_FILE(rxon_flags, dir_debug, S_IWUSR); |
1742 | DEBUGFS_ADD_FILE(rxon_filter_flags, dir_debug, S_IWUSR); | 1756 | DEBUGFS_ADD_FILE(rxon_filter_flags, dir_debug, S_IWUSR); |
1743 | DEBUGFS_ADD_FILE(monitor_period, dir_debug, S_IWUSR); | 1757 | DEBUGFS_ADD_FILE(monitor_period, dir_debug, S_IWUSR); |