Commit 0b4ee9fb authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss2: Add code to show firmware capability as part of debug stats"

parents 47f2e05c 0f01b878
......@@ -136,12 +136,36 @@ 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",
seq_printf(s, "Board ID: 0x%x\n",
seq_printf(s, "SOC Info: 0x%x\n", plat_priv->soc_info.soc_id);
seq_printf(s, "Firmware Version: 0x%x\n",
seq_printf(s, "Firmware Build Timestamp: %s\n",
seq_printf(s, "Firmware Build ID: %s\n",
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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment