rtw89: packet offload handler to avoid warning
authorPo Hao Huang <phhuang@realtek.com>
Fri, 1 Apr 2022 05:50:41 +0000 (13:50 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 6 Apr 2022 08:56:33 +0000 (11:56 +0300)
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
drivers/net/wireless/realtek/rtw89/mac.c

index 6a2ba97..34e14a5 100644 (file)
@@ -3498,12 +3498,18 @@ rtw89_mac_c2h_bcn_cnt(struct rtw89_dev *rtwdev, struct sk_buff *c2h, u32 len)
 {
 }
 
+static void
+rtw89_mac_c2h_pkt_ofld_rsp(struct rtw89_dev *rtwdev, struct sk_buff *c2h,
+                          u32 len)
+{
+}
+
 static
 void (* const rtw89_mac_c2h_ofld_handler[])(struct rtw89_dev *rtwdev,
                                            struct sk_buff *c2h, u32 len) = {
        [RTW89_MAC_C2H_FUNC_EFUSE_DUMP] = NULL,
        [RTW89_MAC_C2H_FUNC_READ_RSP] = NULL,
-       [RTW89_MAC_C2H_FUNC_PKT_OFLD_RSP] = NULL,
+       [RTW89_MAC_C2H_FUNC_PKT_OFLD_RSP] = rtw89_mac_c2h_pkt_ofld_rsp,
        [RTW89_MAC_C2H_FUNC_BCN_RESEND] = NULL,
        [RTW89_MAC_C2H_FUNC_MACID_PAUSE] = rtw89_mac_c2h_macid_pause,
        [RTW89_MAC_C2H_FUNC_SCANOFLD_RSP] = rtw89_mac_c2h_scanofld_rsp,