diff mbox series

rtw88: refine tx_pwr_tbl debugfs to show channel and bandwidth

Message ID 20211129020626.6384-1-pkshih@realtek.com
State New
Headers show
Series rtw88: refine tx_pwr_tbl debugfs to show channel and bandwidth | expand

Commit Message

Ping-Ke Shih Nov. 29, 2021, 2:06 a.m. UTC
From: Zong-Zhe Yang <kevin_yang@realtek.com>

Show channel and bandwidth in debugfs tx_pwr_tbl to make it easier
to understand which tx power table is shown currently, and to reduce
additional checks through other ways.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
 drivers/net/wireless/realtek/rtw88/debug.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Kalle Valo Dec. 8, 2021, 6:28 p.m. UTC | #1
Ping-Ke Shih <pkshih@realtek.com> wrote:

> From: Zong-Zhe Yang <kevin_yang@realtek.com>
> 
> Show channel and bandwidth in debugfs tx_pwr_tbl to make it easier
> to understand which tx power table is shown currently, and to reduce
> additional checks through other ways.
> 
> Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

Patch applied to wireless-drivers-next.git, thanks.

157289376e29 rtw88: refine tx_pwr_tbl debugfs to show channel and bandwidth
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtw88/debug.c b/drivers/net/wireless/realtek/rtw88/debug.c
index 2eb832246ad32..b863c74b51e6c 100644
--- a/drivers/net/wireless/realtek/rtw88/debug.c
+++ b/drivers/net/wireless/realtek/rtw88/debug.c
@@ -631,6 +631,8 @@  static int rtw_debugfs_get_tx_pwr_tbl(struct seq_file *m, void *v)
 	u8 ch = hal->current_channel;
 	u8 regd = rtw_regd_get(rtwdev);
 
+	seq_printf(m, "channel: %u\n", ch);
+	seq_printf(m, "bandwidth: %u\n", bw);
 	seq_printf(m, "regulatory: %s\n", rtw_get_regd_string(regd));
 	seq_printf(m, "%-4s %-10s %-3s%6s %-4s %4s (%-4s %-4s) %-4s\n",
 		   "path", "rate", "pwr", "", "base", "", "byr", "lmt", "rem");