projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1379e62
)
rtw88: refine tx_pwr_tbl debugfs to show channel and bandwidth
author
Zong-Zhe Yang
<kevin_yang@realtek.com>
Mon, 29 Nov 2021 02:06:26 +0000
(10:06 +0800)
committer
Kalle Valo
<kvalo@kernel.org>
Wed, 8 Dec 2021 18:28:39 +0000
(20:28 +0200)
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>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link:
https://lore.kernel.org/r/20211129020626.6384-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/debug.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw88/debug.c
b/drivers/net/wireless/realtek/rtw88/debug.c
index 2eb832246ad3242ca765c80984bf1620d76c982f..b863c74b51e6cefaf2ae7aa9eedf15cfef463880 100644
(file)
--- 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");