]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: fw: set RACK bit every 4 H2C command for WiFi 6 chips only
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 6 Jan 2026 03:09:11 +0000 (11:09 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 9 Jan 2026 05:50:21 +0000 (13:50 +0800)
RACK is to ask firmware send received ACK to driver when a H2C command
is received. This is necessary for WiFi 6 chips only.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260106030911.15528-11-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c

index 03659f07de8c23121801559cbc21bef55484f7bf..f09387e089a241268b3d72b1ffae22f8bb12633d 100644 (file)
@@ -1541,11 +1541,12 @@ void rtw89_h2c_pkt_set_hdr(struct rtw89_dev *rtwdev, struct sk_buff *skb,
                           u8 type, u8 cat, u8 class, u8 func,
                           bool rack, bool dack, u32 len)
 {
+       const struct rtw89_chip_info *chip = rtwdev->chip;
        struct fwcmd_hdr *hdr;
 
        hdr = (struct fwcmd_hdr *)skb_push(skb, 8);
 
-       if (!(rtwdev->fw.h2c_seq % 4))
+       if (chip->chip_gen == RTW89_CHIP_AX && !(rtwdev->fw.h2c_seq % 4))
                rack = true;
        hdr->hdr0 = cpu_to_le32(FIELD_PREP(H2C_HDR_DEL_TYPE, type) |
                                FIELD_PREP(H2C_HDR_CAT, cat) |