summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/cnss2/debug.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/drivers/net/wireless/cnss2/debug.c b/drivers/net/wireless/cnss2/debug.c
index 577cbb4482b3..e4db712d1db7 100644
--- a/drivers/net/wireless/cnss2/debug.c
+++ b/drivers/net/wireless/cnss2/debug.c
@@ -114,12 +114,33 @@ static int cnss_stats_show_state(struct seq_file *s,
return 0;
}
+static int cnss_stats_show_capability(struct seq_file *s,
+ struct cnss_plat_data *plat_priv)
+{
+ if (test_bit(CNSS_FW_READY, &plat_priv->driver_state)) {
+ seq_puts(s, "\n<---------- FW Capability ----------->\n");
+ seq_printf(s, "Chip ID: 0x%x\n",
+ plat_priv->chip_info.chip_id);
+ seq_printf(s, "Chip family: 0x%x\n",
+ plat_priv->chip_info.chip_family);
+ seq_printf(s, "Board ID: 0x%x\n",
+ plat_priv->board_info.board_id);
+ seq_printf(s, "SOC Info: 0x%x\n",
+ plat_priv->soc_info.soc_id);
+ seq_printf(s, "Firmware Version: 0x%x\n",
+ plat_priv->fw_version_info.fw_version);
+ seq_printf(s, "Firmware Build Timestamp: %s\n",
+ plat_priv->fw_version_info.fw_build_timestamp);
+ }
+ return 0;
+}
+
static int cnss_stats_show(struct seq_file *s, void *data)
{
struct cnss_plat_data *plat_priv = s->private;
cnss_stats_show_state(s, plat_priv);
-
+ cnss_stats_show_capability(s, plat_priv);
return 0;
}