]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: rtw89: fw: update role_maintain H2C command for roles operating on band 1
authorPo-Hao Huang <phhuang@realtek.com>
Thu, 27 Feb 2025 13:12:26 +0000 (21:12 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 5 Mar 2025 11:46:28 +0000 (19:46 +0800)
Add new fields band and port ID to make chips operating on the band and
port ID other than 0, so that multiple vif(s) can be working at the
same time.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250227131228.8457-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c

index 3e4a3200358a14b4a3333f08603e18712a95e080..1965a62746c2fd859bc7a28c4513175e186788d5 100644 (file)
@@ -3934,7 +3934,10 @@ int rtw89_fw_h2c_role_maintain(struct rtw89_dev *rtwdev,
                  le32_encode_bits(self_role, RTW89_H2C_ROLE_MAINTAIN_W0_SELF_ROLE) |
                  le32_encode_bits(upd_mode, RTW89_H2C_ROLE_MAINTAIN_W0_UPD_MODE) |
                  le32_encode_bits(rtwvif_link->wifi_role,
-                                  RTW89_H2C_ROLE_MAINTAIN_W0_WIFI_ROLE);
+                                  RTW89_H2C_ROLE_MAINTAIN_W0_WIFI_ROLE) |
+                 le32_encode_bits(rtwvif_link->mac_idx,
+                                  RTW89_H2C_ROLE_MAINTAIN_W0_BAND) |
+                 le32_encode_bits(rtwvif_link->port, RTW89_H2C_ROLE_MAINTAIN_W0_PORT);
 
        rtw89_h2c_pkt_set_hdr(rtwdev, skb, FWCMD_TYPE_H2C,
                              H2C_CAT_MAC, H2C_CL_MAC_MEDIA_RPT,