mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
wifi: rtw89: Configure scan band when mlo_dbcc_mode changes
Previously only the first band is used for scanning. With MLO, update scan parameters accordingly by so we can choose to scan from either band. C2H event return value reflects current scanning band, mask it out so we don't treat correct return value as fail. Signed-off-by: Po-Hao Huang <phhuang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20250428112456.13165-6-pkshih@realtek.com
This commit is contained in:
parent
6d9e16a961
commit
667231dfea
|
|
@ -5753,7 +5753,7 @@ int rtw89_fw_h2c_scan_offload_be(struct rtw89_dev *rtwdev,
|
|||
RTW89_H2C_SCANOFLD_BE_OPCH_W2_PKTS_CTRL) |
|
||||
le32_encode_bits(0,
|
||||
RTW89_H2C_SCANOFLD_BE_OPCH_W2_SW_DEF) |
|
||||
le32_encode_bits(2,
|
||||
le32_encode_bits(rtw89_is_mlo_1_1(rtwdev) ? 1 : 2,
|
||||
RTW89_H2C_SCANOFLD_BE_OPCH_W2_SS);
|
||||
|
||||
opch->w3 = le32_encode_bits(RTW89_SCANOFLD_PKT_NONE,
|
||||
|
|
|
|||
|
|
@ -3562,6 +3562,7 @@ struct rtw89_c2h_done_ack {
|
|||
#define RTW89_C2H_DONE_ACK_W2_CLASS GENMASK(7, 2)
|
||||
#define RTW89_C2H_DONE_ACK_W2_FUNC GENMASK(15, 8)
|
||||
#define RTW89_C2H_DONE_ACK_W2_H2C_RETURN GENMASK(23, 16)
|
||||
#define RTW89_C2H_SCAN_DONE_ACK_RETURN GENMASK(5, 0)
|
||||
#define RTW89_C2H_DONE_ACK_W2_H2C_SEQ GENMASK(31, 24)
|
||||
|
||||
#define RTW89_GET_MAC_C2H_REV_ACK_CAT(c2h) \
|
||||
|
|
|
|||
|
|
@ -5118,12 +5118,14 @@ rtw89_mac_c2h_done_ack(struct rtw89_dev *rtwdev, struct sk_buff *skb_c2h, u32 le
|
|||
return;
|
||||
case H2C_FUNC_ADD_SCANOFLD_CH:
|
||||
cond = RTW89_SCANOFLD_WAIT_COND_ADD_CH;
|
||||
h2c_return &= RTW89_C2H_SCAN_DONE_ACK_RETURN;
|
||||
break;
|
||||
case H2C_FUNC_SCANOFLD:
|
||||
cond = RTW89_SCANOFLD_WAIT_COND_START;
|
||||
break;
|
||||
case H2C_FUNC_SCANOFLD_BE:
|
||||
cond = RTW89_SCANOFLD_BE_WAIT_COND_START;
|
||||
h2c_return &= RTW89_C2H_SCAN_DONE_ACK_RETURN;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user