wifi: rtw89: fw: update role_maintain H2C command for roles operating on band 1

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
This commit is contained in:
Po-Hao Huang 2025-02-27 21:12:26 +08:00 committed by Ping-Ke Shih
parent 385eff211e
commit b521af1dcd

View 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,