Felix Fietkau 5b509e8038 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 <[email protected]>
Tested-by: Mikhail Gavrilov <[email protected]>
Fixes: cd372b8c99c5 ("wifi: mt76: add WED RX support to mt76_dma_{add,get}_buf")
Signed-off-by: Felix Fietkau <[email protected]>
2022-12-22 16:17:39 +01:00
2022-12-10 13:11:04 +01:00
2021-04-14 09:12:11 +02:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2021-04-17 11:19:58 +02:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2020-06-16 22:05:14 +02:00
2019-08-22 09:26:30 +02:00
2022-12-10 13:11:04 +01:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%