rtw88: refine tx_pwr_tbl debugfs to show channel and bandwidth
Ping-Ke Shih
maintainerPATCH 1/1 rtw88: refine tx_pwr_tbl debugfs to show channel and bandwidth
From: Zong-Zhe Yang <[email protected]>
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 <[email protected]>
Signed-off-by Ping-Ke Shih <[email protected]>
--- drivers/net/wireless/realtek/rtw88/debug.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/wireless/realtek/rtw88/debug.c +2 -0
@@ -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" );
Signature · 1 line
2.25.1
Quoted 8 lines · Ping-Ke Shih
From: Zong-Zhe Yang <[email protected]>
Show channel and bandwidth in debugfs
tx_pwr_tblto 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 <[email protected]>Signed-off-by Ping-Ke Shih <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
157289376e29 rtw88: refine tx_pwr_tbl debugfs to show channel and bandwidth
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches