summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChia-Yuan Li <leo.li@realtek.com>2026-07-14 15:48:11 +0800
committerPing-Ke Shih <pkshih@realtek.com>2026-07-17 11:44:37 +0800
commit730dbda6dc70d29180eb2a7e9fa36823838bb042 (patch)
tree7e0ede4157b2b06baedab8a1205cde4dc13e7bc1 /include
parent73aecc221e7df482b2dcf1a643e840ffce1b83c3 (diff)
wifi: rtw89: fw: use MAC source for IO offload delay command
The udelay/mdelay helpers set the command source to RTW89_FW_CMD_OFLD_SRC_OTHER (4), which does not fit the two-bit field RTW89_H2C_CMD_OFLD_W0_SRC (GENMASK(1, 0)). The le32_encode_bits() masks it down to 0 (RTW89_FW_CMD_OFLD_SRC_BB), and compiler throws __field_overflow() error. Fortunately it still works because firmware ignores the source field for a delay command. Use RTW89_FW_CMD_OFLD_SRC_MAC as the vendor driver does, and drop the unused RTW89_FW_CMD_OFLD_SRC_OTHER enumerator. Reported-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Closes: https://github.com/morrownr/rtw89/issues/111 Fixes: ae3d327515f2 ("wifi: rtw89: add IO offload support via firmware") Signed-off-by: Chia-Yuan Li <leo.li@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20260714074811.30124-1-pkshih@realtek.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions