wifi: rtw89: add BW info for both TX and RX in phy_info
authorEric Huang <echuang@realtek.com>
Fri, 21 Oct 2022 09:16:01 +0000 (17:16 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 1 Nov 2022 09:25:28 +0000 (11:25 +0200)
commit25f49617b5c9c9afa829030f14606be6351d4771
tree0a63906bc46f69ce3d678d3b27e266af8a2170f9
parente69ae29e00cec66609bd555398aa4f59f2a9ae84
wifi: rtw89: add BW info for both TX and RX in phy_info

In order to debug performance issue intuitively, add bandwidth information
into debugfs entry phy_info. After applying this patch, it looks like:

 TX rate [0]: HE 2SS MCS-11 GI:0.8 BW:80 (hw_rate=0x19b) ==> agg_wait=1 (3500)
 RX rate [0]: HE 2SS MCS-9 GI:0.8 BW:80  (hw_rate=0x199)

Signed-off-by: Eric Huang <echuang@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/20221021091601.39884-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/debug.c