Skip to content

Commit 2b8219e

Browse files
Po Hao HuangKalle Valo
authored andcommitted
rtw89: packet offload handler to avoid warning
Add a dummy function for packet offload to eliminate warning message "c2h class 1 func 2 not support". This c2h is for debug purpose and its presence itself can do the work, so further parsing won't be required for now. 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://lore.kernel.org/r/20220401055043.12512-3-pkshih@realtek.com
1 parent ee20d53 commit 2b8219e

File tree

1 file changed

+7
-1
lines changed
  • drivers/net/wireless/realtek/rtw89

1 file changed

+7
-1
lines changed

drivers/net/wireless/realtek/rtw89/mac.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3498,12 +3498,18 @@ rtw89_mac_c2h_bcn_cnt(struct rtw89_dev *rtwdev, struct sk_buff *c2h, u32 len)
34983498
{
34993499
}
35003500

3501+
static void
3502+
rtw89_mac_c2h_pkt_ofld_rsp(struct rtw89_dev *rtwdev, struct sk_buff *c2h,
3503+
u32 len)
3504+
{
3505+
}
3506+
35013507
static
35023508
void (* const rtw89_mac_c2h_ofld_handler[])(struct rtw89_dev *rtwdev,
35033509
struct sk_buff *c2h, u32 len) = {
35043510
[RTW89_MAC_C2H_FUNC_EFUSE_DUMP] = NULL,
35053511
[RTW89_MAC_C2H_FUNC_READ_RSP] = NULL,
3506-
[RTW89_MAC_C2H_FUNC_PKT_OFLD_RSP] = NULL,
3512+
[RTW89_MAC_C2H_FUNC_PKT_OFLD_RSP] = rtw89_mac_c2h_pkt_ofld_rsp,
35073513
[RTW89_MAC_C2H_FUNC_BCN_RESEND] = NULL,
35083514
[RTW89_MAC_C2H_FUNC_MACID_PAUSE] = rtw89_mac_c2h_macid_pause,
35093515
[RTW89_MAC_C2H_FUNC_SCANOFLD_RSP] = rtw89_mac_c2h_scanofld_rsp,

0 commit comments

Comments
 (0)