mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
wifi: rtw89: debug: add FW log component for scan
This allows scan related logs when FW log debug mode is on. Signed-off-by: Po-Hao Huang <phhuang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://msgid.link/20240126063356.17857-3-pkshih@realtek.com
This commit is contained in:
parent
b5d7020134
commit
ac54faf507
|
|
@ -1829,10 +1829,14 @@ int rtw89_fw_h2c_init_ba_cam_users(struct rtw89_dev *rtwdev, u8 users,
|
|||
int rtw89_fw_h2c_fw_log(struct rtw89_dev *rtwdev, bool enable)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
u32 comp = enable ? BIT(RTW89_FW_LOG_COMP_INIT) | BIT(RTW89_FW_LOG_COMP_TASK) |
|
||||
BIT(RTW89_FW_LOG_COMP_PS) | BIT(RTW89_FW_LOG_COMP_ERROR) : 0;
|
||||
u32 comp = 0;
|
||||
int ret;
|
||||
|
||||
if (enable)
|
||||
comp = BIT(RTW89_FW_LOG_COMP_INIT) | BIT(RTW89_FW_LOG_COMP_TASK) |
|
||||
BIT(RTW89_FW_LOG_COMP_PS) | BIT(RTW89_FW_LOG_COMP_ERROR) |
|
||||
BIT(RTW89_FW_LOG_COMP_SCAN);
|
||||
|
||||
skb = rtw89_fw_h2c_alloc_skb_with_hdr(rtwdev, H2C_LOG_CFG_LEN);
|
||||
if (!skb) {
|
||||
rtw89_err(rtwdev, "failed to alloc skb for fw log cfg\n");
|
||||
|
|
|
|||
|
|
@ -149,6 +149,7 @@ enum rtw89_fw_log_comp {
|
|||
RTW89_FW_LOG_COMP_TWT,
|
||||
RTW89_FW_LOG_COMP_RF,
|
||||
RTW89_FW_LOG_COMP_MCC = 20,
|
||||
RTW89_FW_LOG_COMP_SCAN = 28,
|
||||
};
|
||||
|
||||
enum rtw89_pkt_offload_op {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user