linux/drivers/net/wireless
Felix Fietkau 953519b352 wifi: mt76: dma: fix a regression in adding rx buffers
When adding WED support, mt76_dma_add_buf was accidentally changed to set
the skip_buf0 flag for tx buffers on the wrong queue descriptor entry.
Additionally, there is a rxwi leak when rx buffer allocation fails.

Fix this and make the code more readable by adding a separate function for
adding rx buffers.

Reported-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Tested-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Link: https://lore.kernel.org/r/CABXGCsMEnQd=gYKTd1knRsWuxCb=Etv5nAre%2BXJS_s5FgVteYA@mail.gmail.com/
Reported-by: Mike Lothian <mike@fireburn.co.uk>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216829
Reported-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/lkml/20230112171706.294550-1-angelogioacchino.delregno@collabora.com/
Fixes: cd372b8c99 ("wifi: mt76: add WED RX support to mt76_dma_{add,get}_buf")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230113105848.34642-3-nbd@nbd.name
2023-01-16 17:27:17 +02:00
..
admtek
ath wifi: ath9k: use proper statements in conditionals 2022-12-20 15:02:37 +02:00
atmel
broadcom wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices 2023-01-16 13:26:55 +02:00
cisco
intel Including fixes from bpf, wifi, and netfilter. 2023-01-05 12:40:50 -08:00
intersil treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
marvell treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
mediatek wifi: mt76: dma: fix a regression in adding rx buffers 2023-01-16 17:27:17 +02:00
microchip treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
purelifi
quantenna
ralink
realtek
rsi
silabs
st
ti
zydas
Kconfig
mac80211_hwsim.c
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid 2023-01-16 13:27:54 +02:00
virt_wifi.c
wl3501_cs.c
wl3501.h