wifi: mt76: handle possible mt76_rx_token_consume failures
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 13 Jan 2023 10:58:47 +0000 (11:58 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 16 Jan 2023 15:27:16 +0000 (17:27 +0200)
commite5c3ac895750b39ef53b84ff4814617ecd69d556
tree2cf3095fd0dd2e75250442cf03952f26e9132018
parent1132d1c834d6185c89aef07c860fc143a6f2db93
wifi: mt76: handle possible mt76_rx_token_consume failures

Take into account possible error conditions of mt76_rx_token_consume
routine in mt7915_mmio_wed_init_rx_buf() and mt76_dma_add_buf()

Fixes: cd372b8c99c5 ("wifi: mt76: add WED RX support to mt76_dma_{add,get}_buf")
Fixes: 4f831d18d12d ("wifi: mt76: mt7915: enable WED RX support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 96f134dc19645be4994e89a2f68fa89309becbee)
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230113105848.34642-2-nbd@nbd.name
drivers/net/wireless/mediatek/mt76/dma.c
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
drivers/net/wireless/mediatek/mt76/tx.c