rtw88: refine tx_pwr_tbl debugfs to show channel and bandwidth
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
This commit is contained in:
parent
1379e62026
commit
157289376e
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user