wifi: rtw89: fix potential wrong mapping for pkt-offload
authorChin-Yen Lee <timlee@realtek.com>
Mon, 23 Jan 2023 06:53:56 +0000 (14:53 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 17:17:34 +0000 (19:17 +0200)
commitb8e8ff842b1bfe7602409fc71ee812db871ccce6
tree558f0d807685a2bffe5c87065c1c0767c41fecb1
parentd881d0a13c3843d213da23cde99bb73f27e53d1e
wifi: rtw89: fix potential wrong mapping for pkt-offload

When driver fails to send H2C to firmware for pkt-offload, we should not
update the pkt_list of driver, and need to release allocated pkt index to
avoid wrong mapping between driver and firmware.

Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230123065401.14174-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c