mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
wifi: rtw89: fw: set RACK bit every 4 H2C command for WiFi 6 chips only
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
This commit is contained in:
parent
483539d891
commit
5fbc19b0f6
|
|
@ -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) |
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user