wifi: rtw88: usb: send Zero length packets if necessary
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 10 Feb 2023 11:16:31 +0000 (12:16 +0100)
committerKalle Valo <kvalo@kernel.org>
Wed, 15 Feb 2023 07:50:21 +0000 (09:50 +0200)
commit07ce9fa6ab0e5e4cb5516a1f7c754ab2758fe5cd
tree4645eeb7a26af901aece6e6e9710cc7d3731187a
parent7869b834fb07c79933229840c98b02bbb7bd0d75
wifi: rtw88: usb: send Zero length packets if necessary

Zero length packets are necessary when sending URBs with size
multiple of bulkout_size, otherwise the hardware just stalls.

Fixes: a82dfd33d1237 ("wifi: rtw88: Add common USB chip support")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230210111632.1985205-3-s.hauer@pengutronix.de
drivers/net/wireless/realtek/rtw88/usb.c