wifi: rtw89: phy: add dummy C2H handler to avoid warning message
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 14 Oct 2022 06:02:36 +0000 (14:02 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 19 Oct 2022 05:57:51 +0000 (08:57 +0300)
The C2H class 2 function 3 is to report retry count of low rate, but driver
doesn't implement yet, so add a dummy case to avoid message:

  rtw89_8852be 0000:03:00.0: c2h class 2 not support

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221014060237.29050-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.c
drivers/net/wireless/realtek/rtw89/phy.h

index d3f47379e443282ed06a54c098a09fa61aede1f0..35a0d190434a3289322306acd2fcdead19afb3bc 100644 (file)
@@ -2276,6 +2276,10 @@ void rtw89_phy_c2h_handle(struct rtw89_dev *rtwdev, struct sk_buff *skb,
                if (func < RTW89_PHY_C2H_FUNC_RA_MAX)
                        handler = rtw89_phy_c2h_ra_handler[func];
                break;
+       case RTW89_PHY_C2H_CLASS_DM:
+               if (func == RTW89_PHY_C2H_DM_FUNC_LOWRT_RTY)
+                       return;
+               fallthrough;
        default:
                rtw89_info(rtwdev, "c2h class %d not support\n", class);
                return;
index 1e122b1498ba12c74290dd8a9e4244c6dc70a8e9..995c13f6f906c4cbf426b0f5086686578e0f6402 100644 (file)
@@ -114,6 +114,15 @@ enum rtw89_phy_c2h_ra_func {
        RTW89_PHY_C2H_FUNC_RA_MAX,
 };
 
+enum rtw89_phy_c2h_dm_func {
+       RTW89_PHY_C2H_DM_FUNC_FW_TEST,
+       RTW89_PHY_C2H_DM_FUNC_FW_TRIG_TX_RPT,
+       RTW89_PHY_C2H_DM_FUNC_SIGB,
+       RTW89_PHY_C2H_DM_FUNC_LOWRT_RTY,
+       RTW89_PHY_C2H_DM_FUNC_MCC_DIG,
+       RTW89_PHY_C2H_DM_FUNC_NUM,
+};
+
 enum rtw89_phy_c2h_class {
        RTW89_PHY_C2H_CLASS_RUA,
        RTW89_PHY_C2H_CLASS_RA,