]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: mac: add dummy handler of MAC C2H event class 27
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 6 Jun 2025 02:03:00 +0000 (10:03 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 10 Jun 2025 02:05:34 +0000 (10:05 +0800)
The newer firmware add new C2H event class 27, which is to report WiFi
role status. Since rtw89 doesn't use the status yet, add a dummy handler
to avoid warning:

  rtw89_8922ae 0000:03:00.0: MAC c2h class 27 func 0 not support

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250606020302.16873-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/mac.h

index 9f0e30e7500927ae57fa13c6f72c87693e42d3ed..4bd5e2728ce5ce0546198336558cb5c41603b927 100644 (file)
@@ -5717,6 +5717,7 @@ void rtw89_mac_c2h_handle(struct rtw89_dev *rtwdev, struct sk_buff *skb,
                        handler = rtw89_mac_c2h_ap_handler[func];
                break;
        case RTW89_MAC_C2H_CLASS_FWDBG:
+       case RTW89_MAC_C2H_CLASS_ROLE:
                return;
        default:
                rtw89_info(rtwdev, "MAC c2h class %d not support\n", class);
index 8013c852d5bedb8fec567fd1581f61b74f360506..c1cbc53b16a7b17fd82539c394402dda5252e487 100644 (file)
@@ -469,6 +469,7 @@ enum rtw89_mac_c2h_class {
        RTW89_MAC_C2H_CLASS_MLO = 0xc,
        RTW89_MAC_C2H_CLASS_MRC = 0xe,
        RTW89_MAC_C2H_CLASS_AP = 0x18,
+       RTW89_MAC_C2H_CLASS_ROLE = 0x1b,
        RTW89_MAC_C2H_CLASS_MAX,
 };